Skip to content

qanary-component-dis/fuzzy-matching

This page is auto-generated from TSDoc output. Edit the source file, not this Markdown.

  • Package: qanary-component-dis
  • Source file: apps/qanary-component-dis/src/fuzzy-matching.ts

Simple Levenshtein distance between two strings.

function levenshtein(a: string, b: string): number

Simple Levenshtein distance between two strings.

Parameters

  • a (string)
  • b (string) Returns
  • number Defined at: line 8
function similarity(a: string, b: string): number

Normalized similarity score in [0, 1]. 1.0 = identical, 0.0 = completely different.

Parameters

  • a (string)
  • b (string) Returns
  • number Defined at: line 43