Interface: EditCosts
Defined in: cspell-types/dist/index.d.mts:422
Properties
accentCosts?
optional
accentCosts:number
Defined in: cspell-types/dist/index.d.mts:450
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:427
This is the base cost for making an edit.
Default
100
capsCosts?
optional
capsCosts:number
Defined in: cspell-types/dist/index.d.mts:444
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:438
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:432
This is the cost for characters not in the alphabet.
Default
110