#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

#77 in #fuzzy

Download history 182/week @ 2024-12-08 88/week @ 2024-12-15 39/week @ 2024-12-22 55/week @ 2024-12-29 117/week @ 2025-01-05 63/week @ 2025-01-12 66/week @ 2025-01-19 29/week @ 2025-01-26 65/week @ 2025-02-02 83/week @ 2025-02-09 103/week @ 2025-02-16 61/week @ 2025-02-23 146/week @ 2025-03-02 167/week @ 2025-03-09 115/week @ 2025-03-16 149/week @ 2025-03-23

580 downloads per month
Used in history-fuzzy-search

ISC license

1MB
293 lines

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