OpenOfficeSpellDictionarypublic interface SpellDictionary
| Modifier and Type | Method | Description |
|---|---|---|
void |
addWord(java.lang.String word) |
Add a word permanently to the dictionary.
|
java.util.List<java.lang.String> |
getSuggestions(java.lang.String word) |
Returns a list of String that are the suggestions to any word.
|
boolean |
isCorrect(java.lang.String word) |
Returns true if the word is correctly spelled against the dictionary.
|
void addWord(java.lang.String word)
throws SpellDictionaryException
word - a word to add.SpellDictionaryExceptionboolean isCorrect(java.lang.String word)
word - a word to check.java.util.List<java.lang.String> getSuggestions(java.lang.String word)
word - the word that we want to get a list of spelling suggestions for.