public class SpellCheckerJMySpell extends java.lang.Object implements ISpellCheckerProvider
Constructor and Description |
---|
SpellCheckerJMySpell(java.lang.String dictionaryName,
java.lang.String affixName) |
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 SpellCheckerJMySpell(java.lang.String dictionaryName, java.lang.String affixName) throws java.lang.Exception
java.lang.Exception
public void destroy()
ISpellCheckerProvider
destroy
in interface ISpellCheckerProvider
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