Skip to main content

Interface: CharacterSetCosts

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

Properties

characters

characters: string

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

This is a set of characters that can include - or |

  • - - indicates a range of characters: a-c => abc
  • | - is a group separator, indicating that the characters on either side are not related.

cost

cost: number

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

the cost to insert / delete / replace / swap the characters in a group


penalty?

optional penalty: number

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

The penalty cost to apply if the accent is used. This is used to discourage