Function strsim::jaro_winkler
source ยท pub fn jaro_winkler(a: &str, b: &str) -> f64
Expand description
Like Jaro but gives a boost to strings that have a common prefix.
use strsim::jaro_winkler;
assert!((0.866 - jaro_winkler("cheeseburger", "cheese fries")).abs() <
0.001);