# Functions
DictionaryName defines the name of the dictionary that should be used when storing, deleting, looking up words, etc.
DictionaryOpts accepts multiple DictionaryOption and controls what dictionary should be used during lookup.
DistanceFunc accepts a function, f(str1, str2, maxDist), which calculates the distance between two strings.
EditDistance allows the max edit distance to be set for the Lookup.
Load a dictionary from disk from filename.
New creates a new spell instance.
PrefixLength defines how much of the input word should be used for the lookup.
SegmentLookupOpts allows the Lookup() options for the current segmentation to be configured.
SortFunc allows the sorting of the SuggestionList to be configured.
SuggestionLevel defines how many results are returned for the lookup.
# Constants
LevelAll will yield all suggestions.
LevelBest will yield 'best' suggestion.
LevelClosest will yield closest suggestions.
# Structs
Entry represents a word in the dictionary.
Segment contains details about an individual segment.
SegmentResult holds the result of a call to Segment().
Spell provides access to functions for spelling correction.
Suggestion is used to represent a suggested word from a lookup.
# Type aliases
DictionaryOption is a function that controls the dictionary being used.
LookupOption is a function that controls how a Lookup is performed.
SegmentOption is a function that controls how a Segment is performed.
SuggestionList is a slice of Suggestion.
WordData stores metadata about a word.