Skip to main content

string_similarity

Function string_similarity 

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

Compute the Dice coefficient on character bigrams of two strings.

Returns a value in [0.0, 1.0], where 1.0 means identical strings. Empty strings return 0.0.