public class DumontsHunspellDictionary extends Object implements HunspellDictionary
| Constructor and Description |
|---|
DumontsHunspellDictionary(Path dictionary,
Path affix) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(String word)
Add word to the run-time dictionary
|
void |
close() |
boolean |
isClosed()
Indicate resource is closed.
|
boolean |
spell(String word)
Spellcheck the word
|
List<String> |
suggest(String word)
Search suggestions for the word
|
public boolean spell(String word)
HunspellDictionaryspell in interface HunspellDictionaryword - the word to checkpublic void add(String word)
HunspellDictionaryadd in interface HunspellDictionaryword - the word to addpublic List<String> suggest(String word)
HunspellDictionarysuggest in interface HunspellDictionaryword - the word to get suggestions forpublic boolean isClosed()
HunspellDictionaryisClosed in interface HunspellDictionarypublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOException