#text #fuzzy #fuzzy-match

fuzzy_match

A crate for fuzzy finding items in sets, based on the Ruby fuzzy_find gem

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

#38 in #fuzzy

Download history 89/week @ 2024-12-16 31/week @ 2024-12-23 61/week @ 2024-12-30 114/week @ 2025-01-06 61/week @ 2025-01-13 63/week @ 2025-01-20 28/week @ 2025-01-27 67/week @ 2025-02-03 85/week @ 2025-02-10 99/week @ 2025-02-17 64/week @ 2025-02-24 144/week @ 2025-03-03 171/week @ 2025-03-10 117/week @ 2025-03-17 155/week @ 2025-03-24 112/week @ 2025-03-31

557 downloads per month
Used in history-fuzzy-search

ISC license

1MB
293 lines

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.


fuzzy_match Crates.io Docs.rs Build Status

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));

Dependencies