1.0.37 • Published 1 year ago

dromo-similarity-score v1.0.37

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Similarity Score

Overview

This TypeScript implementation provides a function to compare the similarity between two strings using the Jaro-Winkler distance algorithm. The Jaro-Winkler distance is a measure of edit distance between two sequences, particularly well-suited for short strings such as person names.

Features

  • Calculates similarity score between two strings
  • Returns a value between 0 (completely different) and 1 (identical)
  • Gives more weight to strings that match from the beginning
  • Handles strings of different lengths and empty strings

Installation

npm i dromo-similarity-score

Usage

import similarityScore from "dromo-similarity-score";

const similarity = compareSimilarity("hello", "hallo");
console.log(similarity); // Outputs a number between 0 and 1
1.0.37

1 year ago

1.0.36

1 year ago

1.0.35

1 year ago

1.0.33

1 year ago

1.0.32

1 year ago

1.0.31

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago