3 unstable releases
Uses old Rust 2015
0.2.1 | Aug 25, 2018 |
---|---|
0.1.1 | May 19, 2018 |
0.1.0 | May 19, 2018 |
#52 in #levenshtein
414 downloads per month
1MB
293 lines
fuzzy_match
A port of the basic features of the fuzzy_match
Ruby gem to Rust.
Usage
To use the default configuration (SorensenDice then Levenshtein to break ties):
use fuzzy_match::fuzzy_match;
let haystack = vec![("rust", 0), ("java", 1), ("lisp", 2)];
assert_eq!(Some(0), fuzzy_match("bust", haystack));
lib.rs
:
fuzzy_match
fuzzy_match
provides functionality for finding the best match from a set of strings, optionally with items
assosciated with each candidate string. This crate is based in large part on the awesome
fuzzy_match
Ruby gem, but this crate only implements the basic
functionality and skips the more advanced functionality for now.