Skip to main content

Interface: DictionaryDefinitionAlternate

Defined in: DictionaryDefinition.ts:260

Only for legacy dictionary definitions.

Deprecated

true

Deprecation Message

Use DictionaryDefinitionPreferred instead. This will be removed in a future release.

Extends

Properties

btrie?

optional btrie: string

Defined in: DictionaryDefinition.ts:119

Hide

Inherited from

DictionaryDefinitionSimple.btrie


description?

optional description: string

Defined in: DictionaryDefinition.ts:31

Optional description of the contents / purpose of the dictionary.

Inherited from

DictionaryDefinitionBase.description


file

file: string

Defined in: DictionaryDefinition.ts:266

Path to the file, only for legacy dictionary definitions.

Deprecated

true

Deprecation Message

Use path instead.


ignoreForbiddenWords?

optional ignoreForbiddenWords: boolean

Defined in: DictionaryDefinition.ts:57

Some dictionaries may contain forbidden words to prevent compounding from generating words that are not valid in the language. These are often words that are used in other languages or might be generated through compounding. This setting allows flagged words to be ignored when checking the dictionary. The effect is similar to the word not being in the dictionary.

Inherited from

DictionaryDefinitionBase.ignoreForbiddenWords


name

name: string

Defined in: DictionaryDefinition.ts:26

This is the name of a dictionary.

Name Format:

  • Must contain at least 1 number or letter.
  • Spaces are allowed.
  • Leading and trailing space will be removed.
  • Names ARE case-sensitive.
  • Must not contain *, !, ;, ,, {, }, [, ], ~.

Inherited from

DictionaryDefinitionBase.name


noSuggest?

optional noSuggest: boolean

Defined in: DictionaryDefinition.ts:48

Indicate that suggestions should not come from this dictionary. Words in this dictionary are considered correct, but will not be used when making spell correction suggestions.

Note: if a word is suggested by another dictionary, but found in this dictionary, it will be removed from the set of possible suggestions.

Inherited from

DictionaryDefinitionBase.noSuggest


path?

optional path: string

Defined in: DictionaryDefinition.ts:114

Hide

Inherited from

DictionaryDefinitionSimple.path


repMap?

optional repMap: ReplaceMap

Defined in: DictionaryDefinition.ts:34

Replacement pairs.

Inherited from

DictionaryDefinitionBase.repMap


supportNonStrictSearches?

optional supportNonStrictSearches: boolean

Defined in: DictionaryDefinition.ts:84

Strip case and accents to allow for case insensitive searches and words without accents.

Note: this setting only applies to word lists. It has no-impact on trie dictionaries.

Default

true

Inherited from

DictionaryDefinitionBase.supportNonStrictSearches


type?

optional type: DictionaryFileTypes

Defined in: DictionaryDefinition.ts:73

Type of file:

  • S - single word per line,
  • W - each line can contain one or more words separated by space,
  • C - each line is treated like code (Camel Case is allowed).

Default is S.

C is the slowest to load due to the need to split each line based upon code splitting rules.

Note: this settings does not apply to inline dictionaries or .trie files.

Default

"S"

Inherited from

DictionaryDefinitionBase.type


useCompounds?

optional useCompounds: boolean

Defined in: DictionaryDefinition.ts:37

Use Compounds.

Inherited from

DictionaryDefinitionBase.useCompounds