public interface ISpellChecker
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroy internal cache and free memory.
|
java.util.List<Token> |
getMisspelledTokens(java.lang.String text)
Get a list of misspelled tokens from the given text
|
void |
ignoreWord(java.lang.String word)
Add a word to the list of ignored words
|
void |
initialize()
Initialize spell checker for current project.
|
boolean |
isCorrect(java.lang.String word)
Check the word.
|
boolean |
isIgnoredWord(java.lang.String word)
Determine if the given word is on the ignored list
|
boolean |
isLearnedWord(java.lang.String word)
Determine if the given word is on the learned list
|
void |
learnWord(java.lang.String word)
Add a word to the list of correct words
|
void |
saveWordLists()
Save the word lists to disk
|
java.util.List<java.lang.String> |
suggest(java.lang.String word)
return a list of strings as suggestions
|
void initialize()
void destroy()
void saveWordLists()
boolean isCorrect(java.lang.String word)
java.util.List<java.lang.String> suggest(java.lang.String word)
void learnWord(java.lang.String word)
void ignoreWord(java.lang.String word)
java.util.List<Token> getMisspelledTokens(java.lang.String text)
boolean isIgnoredWord(java.lang.String word)
boolean isLearnedWord(java.lang.String word)