Skip to main content

Interface: DictionaryDefinitionInlineFlagWords

Defined in: DictionaryDefinition.ts:252

Extends​

  • DictionaryDefinitionInlineBase.Required<Pick<InlineDictionary, "flagWords">>

Properties​

btrie?​

optional btrie?: string

Defined in: DictionaryDefinition.ts:195

Not used

Inherited from​

DictionaryDefinitionInlineBase.btrie


description?​

optional description?: string

Defined in: DictionaryDefinition.ts:31

Optional description of the contents / purpose of the dictionary.

Inherited from​

DictionaryDefinitionBase.description


file?​

optional file?: undefined

Defined in: DictionaryDefinition.ts:201

Not used

Inherited from​

DictionaryDefinitionInlineBase.file


flagWords​

flagWords: string[]

Defined in: DictionaryDefinition.ts:254

List of words to always be considered incorrect. Words found in flagWords override words.

Format of flagWords

  • single word entry - word
  • with suggestions - word:suggestion or word->suggestion, suggestions

Example:

"flagWords": [
"color: colour",
"incase: in case, encase",
"canot->cannot",
"cancelled->canceled"
]

Case Sensitivity:

A word is flagged if it exactly matches an entry, or if its lowercased form exactly matches an entry. In practice this means:

  • An entry written in all lowercase (e.g. avocado) flags that word in any casing found in the document — avocado, Avocado, and AVOCADO are all flagged.
  • An entry containing any uppercase letter (e.g. Avocado) only flags that exact casing — avocado and AVOCADO are not flagged.

Overrides​

DictionaryDefinitionInlineBase.flagWords


ignoreForbiddenWords?​

optional ignoreForbiddenWords?: undefined

Defined in: DictionaryDefinition.ts:224

Not used

Inherited from​

DictionaryDefinitionInlineBase.ignoreForbiddenWords


ignoreWords?​

optional ignoreWords?: string[]

Defined in: InlineDictionary.ts:40

List of words to be ignored. An ignored word will not show up as an error, even if it is also in the flagWords.

Inherited from​

DictionaryDefinitionInlineBase.ignoreWords


kind?​

optional kind?: DictionaryKind

Defined in: DictionaryDefinition.ts:218

Inherited from​

DictionaryDefinitionInlineBase.kind


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?: undefined

Defined in: DictionaryDefinition.ts:213

Use ignoreWords instead.

Inherited from​

DictionaryDefinitionInlineBase.noSuggest


path?​

optional path?: undefined

Defined in: DictionaryDefinition.ts:189

Not used

Inherited from​

DictionaryDefinitionInlineBase.path


repMap?​

optional repMap?: undefined

Defined in: DictionaryDefinition.ts:235

Inherited from​

DictionaryDefinitionInlineBase.repMap


suggestWords?​

optional suggestWords?: string[]

Defined in: InlineDictionary.ts:55

A list of suggested replacements for words. Suggested words provide a way to make preferred suggestions on word replacements. To hint at a preferred change, but not to require it.

Format of suggestWords

  • Single suggestion (possible auto fix)
    • word: suggestion
    • word->suggestion
  • Multiple suggestions (not auto fixable)
    • word: first, second, third
    • word->first, second, third

Inherited from​

DictionaryDefinitionInlineBase.suggestWords


supportNonStrictSearches?​

optional supportNonStrictSearches?: boolean

Defined in: DictionaryDefinition.ts:97

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?: undefined

Defined in: DictionaryDefinition.ts:207

Not used

Inherited from​

DictionaryDefinitionInlineBase.type


useCompounds?​

optional useCompounds?: undefined

Defined in: DictionaryDefinition.ts:230

Not used

Inherited from​

DictionaryDefinitionInlineBase.useCompounds


words?​

optional words?: string[]

Defined in: InlineDictionary.ts:5

List of words to be considered correct.

Inherited from​

DictionaryDefinitionInlineBase.words