# luozhouyang/python-string-similarity

A library implementing different string similarity and distance measures using Python.

Repository: https://github.com/luozhouyang/python-string-similarity
Canonical: https://ross.abutalabs.com/products/python-string-similarity
Language: Python
License: MIT
License Family: permissive
Topics: python, similarity, string, algorithm, distance-measure
Last push: 2022-11-12T01:12:16+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 2995, "days_push": 1391, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1016, forks 125 (observed 2026-08-28T04:03:14.418185+00:00)

## What it is
A Python 3 library implementing a dozen string similarity and distance algorithms, including Levenshtein variants, Jaro-Winkler, longest common subsequence, and n-gram-based measures like cosine, Jaccard, and Sorensen-Dice. It is a Python port of tdebatty/java-string-similarity, published on PyPI as strsimpy.

## Use cases
- compare similarity between two strings in python
- compute levenshtein edit distance
- fuzzy match user input against a list of names
- calculate jaccard or cosine similarity of text n-grams
- deduplicate near-identical strings
- measure string distance for record linkage

## When to choose
- you need pure-Python access to many string similarity algorithms in one package
- you want a drop-in Python port of java-string-similarity
- you need normalized and metric distance variants with documented computational costs

## When to avoid
- you need maximum performance for large-scale fuzzy matching (C/C++ extensions like rapidfuzz are faster)
- you need actively developed features or recent bug fixes
- you only need one simple algorithm and prefer a minimal dependency

## Facets
- artifact type: library
- maturity: maintenance
- function: nlp, parser, search-engine
- domain: developer-tools
- platform: python, cross-platform
- tags: string-similarity, edit-distance, levenshtein, jaro-winkler, cosine-similarity, n-gram, fuzzy-matching, natural-language-processing, algorithms

## Member repositories
- luozhouyang/python-string-similarity (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:14.418185+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:11:19.590947+00:00, confidence not recorded.
  - readme: https://github.com/luozhouyang/python-string-similarity (fetched 2026-08-28T04:03:14.418185+00:00, sha d795b9b5f6b4)
- Data as of 2026-08-30T08:39:29.467469+00:00.
