Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Variables

Const computeJaroWinklerDistance

computeJaroWinklerDistance: function

Returns the jaro-winkler similarity between two strings sim(a, b) = 1 - dist(a, b)

returns

the proximity between 0 and 1, where 1 is very close

Type declaration

    • (a: string, b: string, options: object): number
    • Parameters

      • a: string
      • b: string
      • options: object
        • caseSensitive: boolean

      Returns number

Const computeLevenshteinDistance

computeLevenshteinDistance: function

Returns the levenshtein similarity between two strings sim(a, b) = (|a| - dist(a, b)) / |a| where |a| < |b| sim(a, b) ∈ [0, 1]

returns

the proximity between 0 and 1, where 1 is very close

Type declaration

    • (a: string, b: string): number
    • Parameters

      • a: string
      • b: string

      Returns number

Generated using TypeDoc