1.0.37 • Published 10 months ago

dromo-similarity-score v1.0.37

Weekly downloads
-
License
ISC
Repository
github
Last release
10 months 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

10 months ago

1.0.36

10 months ago

1.0.35

10 months ago

1.0.33

10 months ago

1.0.32

10 months ago

1.0.31

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago