Package org.apache.lucene.analysis.hunspell
A Java implementation of Hunspell stemming and
spell-checking algorithms (
Hunspell
), and a stemming
TokenFilter (HunspellStemFilter
) based on it.
For dictionaries, see e.g. LibreOffice repository or Titus Wormer's collection (UTF)
-
Interface Summary Interface Description DictEntries An object representing homonym dictionary entries. -
Class Summary Class Description Dictionary In-memory structure for the dictionary (.dic) and affix (.aff) data of a hunspell dictionary.Hunspell A spell checker based on Hunspell dictionaries.HunspellStemFilter TokenFilter that uses hunspell affix rules and words to stem tokens.HunspellStemFilterFactory TokenFilterFactory that creates instances ofHunspellStemFilter
. -
Enum Summary Enum Description TimeoutPolicy A strategy determining what to do when Hunspell API calls take too much time -
Exception Summary Exception Description SuggestionTimeoutException An exception thrown whenHunspell.suggest(java.lang.String)
call takes too long, ifTimeoutPolicy.THROW_EXCEPTION
is used.