#levenshtein #text #text-distance

nightly txtdist

A library for mesuring the distance between texts

3 unstable releases

Uses old Rust 2015

0.2.1 Aug 15, 2015
0.2.0 Aug 15, 2015
0.1.0 Apr 5, 2015

#41 in #levenshtein

Download history 3/week @ 2024-02-15 23/week @ 2024-02-22 19/week @ 2024-02-29 8/week @ 2024-03-07 11/week @ 2024-03-14

61 downloads per month
Used in 2 crates

MIT license

10KB
124 lines

txtdist

A library for mesuring the distance between two strings.

Currently has the Damerau-Levenschtein and Levenschtein algorithm, so only two functions.

extern crate txtdist;
use txtdist::damerau_levenshtein;

let distance = damerau_levenshtein("some string", "some other string");
assert_eq!(distance, 6)

lib.rs:

Txtdist is small utility crate for calculating the distance between two strings.

No runtime deps