Nothing Special   »   [go: up one dir, main page]

1.0.37 • Published 4 months ago

dromo-similarity-score v1.0.37

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

4 months ago

1.0.36

4 months ago

1.0.35

4 months ago

1.0.33

4 months ago

1.0.32

4 months ago

1.0.31

4 months ago

1.0.3

4 months ago

1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago