Interface DictionarySuggester

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface DictionarySuggester
Generates suggestions by traversing dictionary entries.
  • Method Details

    • suggest

      List<String> suggest(Hunspell hunspell, SuggestibleEntryCache suggestibleEntryCache, String lowerCase, WordCase wordCase, Set<Suggestion> suggestions)
      Parameters:
      hunspell - spell checker configured for suggestion generation
      suggestibleEntryCache - optional cache from Suggester.withSuggestibleEntryCache() or null
      lowerCase - the lower-case misspelled word
      wordCase - case of the misspelled word before lower-casing
      suggestions - suggestions already found by earlier phases
      Returns:
      raw suggestions to add