Class DumontsHunspellDictionary
java.lang.Object
org.languagetool.rules.spelling.hunspell.DumontsHunspellDictionary
- All Implemented Interfaces:
Closeable,AutoCloseable,HunspellDictionary
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
hunspell
private final dumonts.hunspell.Hunspell hunspell -
closed
private boolean closed
-
-
Constructor Details
-
DumontsHunspellDictionary
-
-
Method Details
-
spell
Description copied from interface:HunspellDictionarySpellcheck the word- Specified by:
spellin interfaceHunspellDictionary- Parameters:
word- the word to check- Returns:
- true if the word is spelled correctly
-
add
Description copied from interface:HunspellDictionaryAdd word to the run-time dictionary- Specified by:
addin interfaceHunspellDictionary- Parameters:
word- the word to add
-
suggest
Description copied from interface:HunspellDictionarySearch suggestions for the word- Specified by:
suggestin interfaceHunspellDictionary- Parameters:
word- the word to get suggestions for- Returns:
- the list of suggestions
-
isClosed
public boolean isClosed()Description copied from interface:HunspellDictionaryIndicate resource is closed.- Specified by:
isClosedin interfaceHunspellDictionary- Returns:
- true when closed, otherwise false.
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-