selectWord
Return
the left and right caret position to select the word at the given caret position
Parameters
position
The start position, which must be in the range 0 .. text.length (inclusive)
the left and right caret position to select the word at the given caret position
The start position, which must be in the range 0 .. text.length (inclusive)