Spell check
You can enable your search logic to include spell-check, which suggests alternate words or expressions to replace the original user query. Spell-check suggestions are determined by a score. The score is calculated based on:
-
First, the Damerau-Levenshtein transformation distance from the original word
-
Second, the frequency of terms in your corpus.
The transformation distance is the number of changes (replace a letter, add a letter, transpose a letter, delete a letter) required to transform word A to word B. Each change represents a distance. The greater the transformation distance, the larger the difference between two words.