---
title: "Changelog"
description: "Release highlights for strsimpy 0.5.0 and links to the complete GitHub release history."
---

> Documentation Index
> Fetch the complete documentation index at: https://luozhouyang.github.io/python-string-similarity/llms.txt
> Use this file to discover all available pages before exploring further.

# Changelog

`strsimpy` 0.5.0 is the current release. This page summarizes its public
changes; the complete history for 0.4.x and earlier is maintained on
[GitHub Releases](https://github.com/luozhouyang/python-string-similarity/releases).

## 0.5.0

### New token and set measures

- Added `Tversky`, `Tanimoto`, `Bag` and `MongeElkan`.
- `Tversky` uses k-shingle **sets**, not multisets, and validates `alpha` and
  `beta`.
- `Tanimoto` implements the standard set coefficient, which equals Jaccard, not
  TextDistance's `log2` variant.
- `MongeElkan` uses whitespace tokenization and the standard
  Monge-Elkan denominator.

### New edit-based measures

- Added `MLIPNS`, a binary product-name heuristic.
- Added `StrCmp95`, the US Census comparison routine, with
  ASCII-only confusion-table credit.
- Added `RatcliffObershelp` with `difflib`-compatible tie-breaking.

### Sequence alignment

- Added `NeedlemanWunsch`, `SmithWaterman` and `Gotoh`.
- Each exposes `score(s0, s1)` and `alignment(s0, s1)`.
- Smith-Waterman returns the maximum matrix cell, the correct local-alignment
  score. Gotoh handles empty inputs explicitly and supports affine gaps.

### Compression

- Added `NormalizedCompressionDistance` with a run-length encoder.
- Only the `"rle"` compressor is shipped. Values are compressor-dependent,
  identical inputs are not guaranteed to score 0, and results are not
  guaranteed to lie in `[0, 1]`.

### Documentation

- Documented semantics, limitations and divergences from TextDistance,
  including Tversky set semantics, the standard Tanimoto definition,
  asymmetric Ratcliff-Obershelp tie-breaking, raw alignment score APIs and the
  RLE-only compressor.

## Upgrade notes

- The release is additive: the existing class names, constructor options,
  methods and per-module imports are unchanged.
- The package is a Rust extension exposed through PyO3. Prebuilt abi3 wheels
  support Python 3.10 and newer on Linux, macOS and Windows; source builds
  require Rust 1.85 or newer and `maturin`.
- Check the installed version with:

```python
import strsimpy

print(strsimpy.__version__)
```

```text
0.5.0
```

- Review [Semantics, limitations and divergences](https://luozhouyang.github.io/python-string-similarity/guides/compatibility/) before
  swapping a measure from another library, and use the
  [API reference](https://luozhouyang.github.io/python-string-similarity/reference/api/) for the complete constructor and return-type
  index.

## Full release history

The GitHub Releases page contains every published version, including the 0.4.x
series that added `OptimalStringAlignment.alignment()`, pickle support and the
Rust core:

- [All releases](https://github.com/luozhouyang/python-string-similarity/releases)
- [v0.5.0 release](https://github.com/luozhouyang/python-string-similarity/releases/tag/v0.5.0)
- [Repository](https://github.com/luozhouyang/python-string-similarity)

Source: https://luozhouyang.github.io/python-string-similarity/reference/changelog/index.mdx
