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
61 downloads per month
Used in 2 crates
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.