Class: Jaro

Jaro()

Class representing the Jaro similarity algorithm.

Constructor

new Jaro()

Source:

Methods

(static) similarity(s1, s2) → {float}

Calculates the Jaro similarity coefficient between two strings.

Parameters:
Name Type Description
s1 string

The first string for comparison.

s2 string

The second string for comparison.

Source:
Returns:
  • The Jaro similarity coefficient between the two strings, ranging from 0.0 (no similarity) to 1.0 (perfect similarity).
Type
float