Function damerauLevenshteinDistance

  • Get Damerau–Levenshtein distance between strings.

    Parameters

    • x: string

      a string

    • y: string

      another string

    • ins: number = 1

      insertion cost [1]

    • del: number = 1

      deletion cost [1]

    • sub: number = 1

      substitution cost [1]

    • tra: number = 1

      transposition cost [1]

    Returns number

    damerau–levenshtein distance

Generated using TypeDoc