Package org.omegat.core.spellchecker
Class SpellCheckerDummy
java.lang.Object
org.omegat.core.spellchecker.SpellCheckerDummy
- All Implemented Interfaces:
ISpellChecker,ISpellCheckerProvider
Stub spellchecker which used when other spellcheckers can't be loaded, or
dictionary not exists.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Destroy checker.getMisspelledTokens(String text) Get a list of misspelled tokens from the given text.voidignoreWord(String word) Add a word to the list of ignored words.booleanInitialize a spell checker for a current project.booleanCheck is word correct.booleanisIgnoredWord(String word) Determine if the given word is on the ignored list.booleanisLearnedWord(String word) Determine if the given word is on the learned list.voidAdd a word to the list of correct words.voidSave the word lists to disk.return a list of strings as suggestions.
-
Constructor Details
-
SpellCheckerDummy
public SpellCheckerDummy()
-
-
Method Details
-
initialize
public boolean initialize()Description copied from interface:ISpellCheckerInitialize a spell checker for a current project.- Specified by:
initializein interfaceISpellChecker
-
destroy
public void destroy()Description copied from interface:ISpellCheckerProviderDestroy checker.- Specified by:
destroyin interfaceISpellChecker- Specified by:
destroyin interfaceISpellCheckerProvider
-
saveWordLists
public void saveWordLists()Description copied from interface:ISpellCheckerSave the word lists to disk.- Specified by:
saveWordListsin interfaceISpellChecker
-
isCorrect
Description copied from interface:ISpellCheckerProviderCheck is word correct.- Specified by:
isCorrectin interfaceISpellChecker- Specified by:
isCorrectin interfaceISpellCheckerProvider
-
suggest
Description copied from interface:ISpellCheckerProviderreturn a list of strings as suggestions.- Specified by:
suggestin interfaceISpellChecker- Specified by:
suggestin interfaceISpellCheckerProvider
-
learnWord
Description copied from interface:ISpellCheckerProviderAdd a word to the list of correct words.- Specified by:
learnWordin interfaceISpellChecker- Specified by:
learnWordin interfaceISpellCheckerProvider
-
ignoreWord
Description copied from interface:ISpellCheckerAdd a word to the list of ignored words.- Specified by:
ignoreWordin interfaceISpellChecker
-
getMisspelledTokens
Description copied from interface:ISpellCheckerGet a list of misspelled tokens from the given text.- Specified by:
getMisspelledTokensin interfaceISpellChecker
-
isIgnoredWord
Description copied from interface:ISpellCheckerDetermine if the given word is on the ignored list.- Specified by:
isIgnoredWordin interfaceISpellChecker
-
isLearnedWord
Description copied from interface:ISpellCheckerDetermine if the given word is on the learned list.- Specified by:
isLearnedWordin interfaceISpellChecker
-