# Package org.apache.lucene.search.spell

package org.apache.lucene.search.spell
Suggest alternate spellings for words. Also see the spell checker Wiki page.

Class
Description
CombineSuggestion
A suggestion generated by combining one or more original query terms
Dictionary
A simple interface representing a Dictionary.
DirectSpellChecker
Simple automaton-based spellchecker.
DirectSpellChecker.ScoreTerm
Holds a spelling correction for internal usage inside `DirectSpellChecker`.
HighFrequencyDictionary
HighFrequencyDictionary: terms taken from the given field of a Lucene index, which appear in a number of documents above a given threshold.
JaroWinklerDistance
Similarity measure for short strings such as person names.
LevenshteinDistance
Levenshtein edit distance class.
LuceneDictionary
Lucene Dictionary: terms taken from the given field of a Lucene index.
LuceneLevenshteinDistance
Damerau-Levenshtein (optimal string alignment) implemented in a consistent way as Lucene's FuzzyTermsEnum with the transpositions option enabled.
NGramDistance
N-Gram version of edit distance based on paper by Grzegorz Kondrak, "N-gram similarity and distance".
PlainTextDictionary
Dictionary represented by a text file.
SpellChecker
Spell Checker class (Main class).
(initially inspired by the David Spencer code).
StringDistance
Interface for string distances.
SuggestMode
Set of strategies for suggesting related terms
SuggestWord
SuggestWord, used in suggestSimilar method in SpellChecker class.
SuggestWordFrequencyComparator
Frequency first, then score.
SuggestWordQueue
Sorts SuggestWord instances
SuggestWordScoreComparator
Score first, then frequency
WordBreakSpellChecker
A spell checker whose sole function is to offer suggestions by combining multiple terms into one word and/or breaking terms into multiple words.
WordBreakSpellChecker.BreakSuggestionSortMethod
Determines the order to list word break suggestions