fuzzywuzzy-rs
Fuzzy string matching like a boss. It uses Levenshtein Distance to calculate the differences between sequences in a simple-to-use package.
Note: This project was originally named fuzzyrusty
. Someone else cloned and published it to crates.io https://crates.io/crates/fuzzyrusty. We do not control that crate. This is why we have changed the name.
Installation
fuzzywuzzy
is currently available through GitHub or crates.io.
For the latest stable releas, add this to your Cargo.toml
:
[]
= "*"
For the bleeding edge, you can pull directly from master:
[]
= { = "https://github.com/logannc/fuzzywuzzy-rs", = "master" }
Documentation
Clone the repository and run $ cargo doc --open
.
Usage
Simple Ratio
assert_eq!;
Partial Ratio
assert_eq!;
Token Sort Ratio
assert_eq!;
assert_eq!;
Token Set Ratio
assert_eq!;
assert_eq!;
Process
assert_eq!;