Interface ISpellChecker

All Known Implementing Classes:
AbstractSpellChecker, SpellCheckerDummy

public interface ISpellChecker
Interface for access to a spell checker.
  • 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

      boolean isCorrect(String word)
      Check the word. If it is ignored or learned (valid), returns true. Otherwise, false.
    • suggest

      List<String> suggest(String word)
      return a list of strings as suggestions.
    • learnWord

      void learnWord(String word)
      Add a word to the list of correct words.
    • ignoreWord

      void ignoreWord(String word)
      Add a word to the list of ignored words.
    • getMisspelledTokens

      List<Token> getMisspelledTokens(String text)
      Get a list of misspelled tokens from the given text.
    • isIgnoredWord

      boolean isIgnoredWord(String word)
      Determine if the given word is on the ignored list.
    • isLearnedWord

      boolean isLearnedWord(String word)
      Determine if the given word is on the learned list.