Skip to main content

Interface: EditCosts

Defined in: DictionaryInformation.ts:168

Properties​

accentCosts?​

optional accentCosts?: number

Defined in: DictionaryInformation.ts:200

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: DictionaryInformation.ts:173

This is the base cost for making an edit.

Default​

100

capsCosts?​

optional capsCosts?: number

Defined in: DictionaryInformation.ts:193

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

Default​

1

firstLetterPenalty?​

optional firstLetterPenalty?: number

Defined in: DictionaryInformation.ts:186

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: DictionaryInformation.ts:179

This is the cost for characters not in the alphabet.

Default​

110