Package org.omegat.core.spellchecker
Class SpellCheckerLangToolHunspell
- java.lang.Object
-
- org.omegat.core.spellchecker.SpellCheckerLangToolHunspell
-
- All Implemented Interfaces:
ISpellCheckerProvider
public class SpellCheckerLangToolHunspell extends java.lang.Object implements ISpellCheckerProvider
A thin wrapper around the LanguageTool Hunspell implementation (which itself wraps native libs)
-
-
Constructor Summary
Constructors Constructor Description SpellCheckerLangToolHunspell(java.lang.String dictBasename)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 wordsjava.util.List<java.lang.String>
suggest(java.lang.String word)
return a list of strings as suggestions
-
-
-
Method Detail
-
isCorrect
public boolean isCorrect(java.lang.String word)
Description copied from interface:ISpellCheckerProvider
Check is word correct.- Specified by:
isCorrect
in interfaceISpellCheckerProvider
-
suggest
public java.util.List<java.lang.String> suggest(java.lang.String word)
Description copied from interface:ISpellCheckerProvider
return a list of strings as suggestions- Specified by:
suggest
in interfaceISpellCheckerProvider
-
learnWord
public void learnWord(java.lang.String word)
Description copied from interface:ISpellCheckerProvider
Add a word to the list of correct words- Specified by:
learnWord
in interfaceISpellCheckerProvider
-
destroy
public void destroy()
Description copied from interface:ISpellCheckerProvider
Destroy checker.- Specified by:
destroy
in interfaceISpellCheckerProvider
-
-