Skip to main content

Interface: DictionaryDefinitionAlternate

Defined in: cspell-types/dist/index.d.mts:646

Only for legacy dictionary definitions.

Deprecated

true

Deprecation Message

Use DictionaryDefinitionPreferred instead.

Extends

Properties

description?

optional description: string

Defined in: cspell-types/dist/index.d.mts:549

Optional description of the contents / purpose of the dictionary.

Inherited from

DictionaryDefinitionBase.description


file

file: string

Defined in: cspell-types/dist/index.d.mts:654

Path to the file, only for legacy dictionary definitions.

Deprecated

true

Deprecation Message

Use path instead.


name

name: string

Defined in: cspell-types/dist/index.d.mts:545

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: cspell-types/dist/index.d.mts:563

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


repMap?

optional repMap: ReplaceMap

Defined in: cspell-types/dist/index.d.mts:551

Replacement pairs.

Inherited from

DictionaryDefinitionBase.repMap


type?

optional type: DictionaryFileTypes

Defined in: cspell-types/dist/index.d.mts:578

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: cspell-types/dist/index.d.mts:553

Use Compounds.

Inherited from

DictionaryDefinitionBase.useCompounds