Package org.omegat.core.spellchecker
Interface ISpellChecker
- All Known Implementing Classes:
AbstractSpellChecker,SpellCheckerDummy
public interface ISpellChecker
Interface for access to a spell checker.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Destroy internal cache and free memory.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 the word.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.
-
Method Details
-
initialize
boolean initialize()Initialize a spell checker for a current project. -
destroy
void destroy()Destroy internal cache and free memory. -
saveWordLists
void saveWordLists()Save the word lists to disk. -
isCorrect
Check the word. If it is ignored or learned (valid), returns true. Otherwise, false. -
suggest
return a list of strings as suggestions. -
learnWord
Add a word to the list of correct words. -
ignoreWord
Add a word to the list of ignored words. -
getMisspelledTokens
Get a list of misspelled tokens from the given text. -
isIgnoredWord
Determine if the given word is on the ignored list. -
isLearnedWord
Determine if the given word is on the learned list.
-