#levenshtein #distance #algorithm

yanked levenshtein-distance

Levenshtein distance algorithm

0.1.1 Jul 20, 2022

#54 in #levenshtein

MIT license

3KB

levenshtein-distance.rs

Provides the Levenshtein distance algorithm for Rust.

Usage

[dependencies]
levenshtein-distance = "0.1.1"
use levenshtein_distance::compute;

fn main() {
    let cat = "I Am a Cat";
    let dog = "I Am a Dog";
    println!("{}", compute(cat, dog));
    // -> 3
}

License

MIT

No runtime deps