Function strsim::jaro_winkler[][src]

pub fn jaro_winkler(a: &str, b: &str) -> f64

Like Jaro but gives a boost to strings that have a common prefix.

use strsim::jaro_winkler;

assert!((0.911 - jaro_winkler("cheeseburger", "cheese fries")).abs() <
        0.001);