Package org.omegat.core.spellchecker
Class SpellCheckerJMySpell
- java.lang.Object
-
- org.omegat.core.spellchecker.SpellCheckerJMySpell
-
- All Implemented Interfaces:
ISpellCheckerProvider
public class SpellCheckerJMySpell extends java.lang.Object implements ISpellCheckerProvider
JMySpell spell checker implementation.
-
-
Constructor Summary
Constructors Constructor Description SpellCheckerJMySpell(java.lang.String dictionaryName, java.lang.String affixName)
-
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
-
destroy
public void destroy()
Description copied from interface:ISpellCheckerProvider
Destroy checker.- Specified by:
destroy
in interfaceISpellCheckerProvider
-
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
-
-