checkWordSegment
Run spell check on a specific word segment. This will remove any existing spell check spans for the word and add a new one if misspelled.
The lookup always runs, but the document is only decorated while checking is enabled.
Return
true if the word is misspelled, false otherwise
Parameters
segment
The word segment to check