public class SpellCheckerLangToolHunspell extends java.lang.Object implements ISpellCheckerProvider
Constructor and Description |
---|
SpellCheckerLangToolHunspell(java.lang.String dictBasename) |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroy checker.
|
boolean |
isCorrect(java.lang.String word)
Check is word correct.
|
void |
learnWord(java.lang.String word)
Add a word to the list of correct words
|
java.util.List<java.lang.String> |
suggest(java.lang.String word)
return a list of strings as suggestions
|
public SpellCheckerLangToolHunspell(java.lang.String dictBasename) throws java.lang.Throwable
java.lang.Throwable
public boolean isCorrect(java.lang.String word)
ISpellCheckerProvider
isCorrect
in interface ISpellCheckerProvider
public java.util.List<java.lang.String> suggest(java.lang.String word)
ISpellCheckerProvider
suggest
in interface ISpellCheckerProvider
public void learnWord(java.lang.String word)
ISpellCheckerProvider
learnWord
in interface ISpellCheckerProvider
public void destroy()
ISpellCheckerProvider
destroy
in interface ISpellCheckerProvider