Interface: DictionaryInformation
Defined in: DictionaryInformation.ts:10
Provides extra information about the dictionary.
It is used to improve suggestions and casing rules.
Added with v5.16.0.
Properties
accents?
optionalaccents?:string|CharacterSetCosts[]
Defined in: DictionaryInformation.ts:35
The accent characters.
Default: "\u0300-\u0341"
adjustments?
optionaladjustments?:PatternAdjustment[]
Defined in: DictionaryInformation.ts:57
A collection of patterns to test against the suggested words. If the word matches the pattern, then the penalty is applied.
alphabet?
optionalalphabet?:string|CharacterSetCosts[]
Defined in: DictionaryInformation.ts:28
The alphabet to use.
Default
"a-zA-Z"
costs?
optionalcosts?:EditCosts
Defined in: DictionaryInformation.ts:40
Define edit costs.
hunspellInformation?
optionalhunspellInformation?:HunspellInformation
Defined in: DictionaryInformation.ts:51
Used by dictionary authors
ignore?
optionalignore?:string
Defined in: DictionaryInformation.ts:67
An optional set of characters that can possibly be removed from a word before checking it.
This is useful in languages like Arabic where Harakat accents are optional.
Note: All matching characters are removed or none. Partial removal is not supported.
locale?
optionallocale?:string
Defined in: DictionaryInformation.ts:22
The locale of the dictionary.
The locale should follow the IETF BCP 47 standard. If more than one locale is specified, the first valid locale will be used for casing rules.
Avoid mixing different locales in the same dictionary.
Example: nl or nl-BE
suggestionEditCosts?
optionalsuggestionEditCosts?:SuggestionCostsDefs
Defined in: DictionaryInformation.ts:46
Used in making suggestions. The lower the value, the more likely the suggestion will be near the top of the suggestion list.