Skip to main content

Interface: EditCosts

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

Properties​

accentCosts?​

optional accentCosts?: number

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

The cost to add / remove an accent This should be very cheap, it helps with fixing accent issues.

Default​

1

baseCost?​

optional baseCost?: number

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

This is the base cost for making an edit.

Default​

100

capsCosts?​

optional capsCosts?: number

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

The cost to change capitalization. This should be very cheap, it helps with fixing capitalization issues.

Default​

1

firstLetterPenalty?​

optional firstLetterPenalty?: number

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

The extra cost incurred for changing the first letter of a word. This value should be less than 100 - baseCost.

Default​

4

nonAlphabetCosts?​

optional nonAlphabetCosts?: number

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

This is the cost for characters not in the alphabet.

Default​

110