Finds the word at a given cursor position in text.
The text to search in
The cursor position
The word and its position, or null if not found
Finds the word at a given cursor position in text.