Package org.omegat.core.spellchecker
Interface ISpellChecker
- 
- All Known Implementing Classes:
- SpellChecker
 
 public interface ISpellCheckerInterface for access to spell checker.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddestroy()Destroy internal cache and free memory.java.util.List<Token>getMisspelledTokens(java.lang.String text)Get a list of misspelled tokens from the given textvoidignoreWord(java.lang.String word)Add a word to the list of ignored wordsvoidinitialize()Initialize spell checker for current project.booleanisCorrect(java.lang.String word)Check the word.booleanisIgnoredWord(java.lang.String word)Determine if the given word is on the ignored listbooleanisLearnedWord(java.lang.String word)Determine if the given word is on the learned listvoidlearnWord(java.lang.String word)Add a word to the list of correct wordsvoidsaveWordLists()Save the word lists to diskjava.util.List<java.lang.String>suggest(java.lang.String word)return a list of strings as suggestions
 
- 
- 
- 
Method Detail- 
initializevoid initialize() Initialize spell checker for current project.
 - 
destroyvoid destroy() Destroy internal cache and free memory.
 - 
saveWordListsvoid saveWordLists() Save the word lists to disk
 - 
isCorrectboolean isCorrect(java.lang.String word) Check the word. If it is ignored or learned (valid), returns true. Otherwise false.
 - 
suggestjava.util.List<java.lang.String> suggest(java.lang.String word) return a list of strings as suggestions
 - 
learnWordvoid learnWord(java.lang.String word) Add a word to the list of correct words
 - 
ignoreWordvoid ignoreWord(java.lang.String word) Add a word to the list of ignored words
 - 
getMisspelledTokensjava.util.List<Token> getMisspelledTokens(java.lang.String text) Get a list of misspelled tokens from the given text
 - 
isIgnoredWordboolean isIgnoredWord(java.lang.String word) Determine if the given word is on the ignored list
 - 
isLearnedWordboolean isLearnedWord(java.lang.String word) Determine if the given word is on the learned list
 
- 
 
-