Base algorithm options.

interface LevenshteinOptions {
    enableSubstitution: boolean;
    ignoreCase: boolean;
    ignoreSpaces: boolean;
}

Hierarchy (view full)

Properties

enableSubstitution: boolean

Enable or disable the substitution operation.

Default

true
ignoreCase: boolean

If true, the algorithm will ignore the case of the characters. If false, the algorithm will consider the case of the characters.

Default

true
ignoreSpaces: boolean

Ignore or consider extra spaces. If true, the algorithm will ignore the spaces. If false, the algorithm will consider the spaces.

Default

false