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.
Generates suggestions by traversing dictionary entries.
-
Method Summary
Modifier and TypeMethodDescriptionsuggest(Hunspell hunspell, SuggestibleEntryCache suggestibleEntryCache, String lowerCase, WordCase wordCase, Set<Suggestion> suggestions)
-
Method Details
-
suggest
List<String> suggest(Hunspell hunspell, SuggestibleEntryCache suggestibleEntryCache, String lowerCase, WordCase wordCase, Set<Suggestion> suggestions) - Parameters:
hunspell- spell checker configured for suggestion generationsuggestibleEntryCache- optional cache fromSuggester.withSuggestibleEntryCache()ornulllowerCase- the lower-case misspelled wordwordCase- case of the misspelled word before lower-casingsuggestions- suggestions already found by earlier phases- Returns:
- raw suggestions to add
-