Interface HunspellDictionary

All Superinterfaces:
AutoCloseable, Closeable
All Known Implementing Classes:
DumontsHunspellDictionary

public interface HunspellDictionary extends Closeable
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(String word)
    Add word to the run-time dictionary
    boolean
    Indicate resource is closed.
    boolean
    spell(String word)
    Spellcheck the word
    Search suggestions for the word

    Methods inherited from interface java.io.Closeable

    close
  • Method Details

    • spell

      boolean spell(String word)
      Spellcheck the word
      Parameters:
      word - the word to check
      Returns:
      true if the word is spelled correctly
    • add

      void add(String word)
      Add word to the run-time dictionary
      Parameters:
      word - the word to add
    • suggest

      List<String> suggest(String word)
      Search suggestions for the word
      Parameters:
      word - the word to get suggestions for
      Returns:
      the list of suggestions
    • isClosed

      boolean isClosed()
      Indicate resource is closed.
      Returns:
      true when closed, otherwise false.