pub fn similarity(a: &str, b: &str) -> FloatType
How alike two stretches of text are, as music21’s approximate searches measure it: Python’s difflib.SequenceMatcher(None, a, b).ratio().
difflib.SequenceMatcher(None, a, b).ratio()