editSimilarity property

double editSimilarity

A normalized measure of editDistance on a scale of 0.0 to 1.0.

The editSimilarity is defined as the difference between the maximum edit distance (sum of the length of the term and other) and the computed editDistance, divided by the maximum edit distance

  • identical terms with an edit distance of 0 equates to an edit similarity of 1.0; and
  • terms with no shared characters (edit distance equal to sum of the term lengths) have an edit similarity of 0.0.

The two strings are converted to lower-case and trimmed for the comparison.

Not case-sensitive.

Implementation

double get editSimilarity;