Interface CharacterSetCosts

interface CharacterSetCosts {
    characters: string;
    cost: number;
    penalty?: number;
}

Properties

characters: string

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: number

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

penalty?: number

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