Interface: EditCosts
Defined in: cspell-types/dist/index.d.mts:564
Properties
accentCosts?
optional
accentCosts:number
Defined in: cspell-types/dist/index.d.mts:592
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: cspell-types/dist/index.d.mts:569
This is the base cost for making an edit.
Default
100
capsCosts?
optional
capsCosts:number
Defined in: cspell-types/dist/index.d.mts:586
The cost to change capitalization. This should be very cheap, it helps with fixing capitalization issues.
Default
1
firstLetterPenalty?
optional
firstLetterPenalty:number
Defined in: cspell-types/dist/index.d.mts:580
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: cspell-types/dist/index.d.mts:574
This is the cost for characters not in the alphabet.
Default
110