Module spell

Source
Expand description

Contains the relevant code for performing dictionary lookups and spellchecking (i.e. fuzzy dictionary lookups).

Structs§

FstDictionary
An immutable dictionary allowing for very fast spellchecking.
FuzzyMatchResult
MergedDictionary
A simple wrapper over Dictionary that allows one to merge multiple dictionaries without copying.
MutableDictionary
A basic dictionary that allows words to be added after instantiating. This is useful for user and file dictionaries that may change at runtime.
WordId
An identifier for a particular word.

Traits§

Dictionary
An in-memory database that contains everything necessary to parse and analyze English text.

Functions§

suggest_correct_spelling
Get the closest matches in the provided Dictionary and rank them Implementation is left up to the underlying dictionary.
suggest_correct_spelling_str
Convenience function over suggest_correct_spelling that does conversions for you.