Skip to main content

similarity

Function similarity 

Source
pub fn similarity(a: &str, b: &str) -> f64
Expand description

Similarity of two names, 0..1: the better of the word overlap (Jaccard) and the edit similarity of the names without spaces and punctuation, so both “Bracket left M8” / “M8 bracket left” and “Brakcet” / “Bracket” count as similar.