Interface: SuggestionOptions
Defined in: packages/cspell-lib/src/lib/suggestions.ts:51
Extends
FromSuggestOptions
Properties
dictionaries?
optional
dictionaries:string
[]
Defined in: packages/cspell-lib/src/lib/suggestions.ts:71
List of dictionaries to use. If specified, only that list of dictionaries will be used.
includeDefaultConfig?
optional
includeDefaultConfig:boolean
Defined in: packages/cspell-lib/src/lib/suggestions.ts:97
By default we want to use the default configuration, but there are cases where someone might not want that.
Default
true
includeTies?
optional
includeTies:boolean
Defined in: packages/cspell-lib/src/lib/suggestions.ts:90
If multiple suggestions have the same edit / change "cost", then included them even if
it causes more than numSuggestions
to be returned.
Default
true
Overrides
FromSuggestOptions.includeTies
languageId?
optional
languageId:string
|string
[]
Defined in: packages/cspell-lib/src/lib/suggestions.ts:55
languageId to use when determining file type.
locale?
optional
locale:string
Defined in: packages/cspell-lib/src/lib/suggestions.ts:60
Locale to use.
numChanges?
optional
numChanges:number
Defined in: packages/cspell-lib/src/lib/suggestions.ts:83
Max number of changes / edits to the word to get to a suggestion matching suggestion.
Default
4
Overrides
FromSuggestOptions.numChanges
numSuggestions?
optional
numSuggestions:number
Defined in: packages/cspell-lib/src/lib/suggestions.ts:77
The number of suggestions to make.
Default
8
Overrides
FromSuggestOptions.numSuggestions
strict?
optional
strict:boolean
Defined in: packages/cspell-lib/src/lib/suggestions.ts:66
Strict case and accent checking
Default
true