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)
HunspellDictionary
spell
in interface HunspellDictionary
word
- the word to checkpublic void add(String word)
HunspellDictionary
add
in interface HunspellDictionary
word
- the word to addpublic List<String> suggest(String word)
HunspellDictionary
suggest
in interface HunspellDictionary
word
- the word to get suggestions forpublic boolean isClosed()
HunspellDictionary
isClosed
in interface HunspellDictionary
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException