#text #match #fuzzy

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

#517 in #text

Download history 21/week @ 2023-10-21 21/week @ 2023-10-28 24/week @ 2023-11-04 13/week @ 2023-11-11 40/week @ 2023-11-18 42/week @ 2023-11-25 31/week @ 2023-12-02 20/week @ 2023-12-09 34/week @ 2023-12-16 16/week @ 2023-12-23 30/week @ 2023-12-30 44/week @ 2024-01-06 39/week @ 2024-01-13 71/week @ 2024-01-20 43/week @ 2024-01-27 53/week @ 2024-02-03

210 downloads per month

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

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.

Dependencies