similarity

Function similarity 

Source
pub fn similarity(expected: &str, heard: &str) -> f64
Expand description

Word-level similarity of heard to expected, from 0 to 1: one minus the word edit distance over the length of the longer text, after lowercasing and dropping punctuation.