getAWordRange
selectAWord
These new methods are necessary to select a word along with its right whitespace, which is a reasonably common scenario.