title: How to calculate score in fuzzy string matching?
body: <p>I would like to know the mathematical logic and formula behind calculating the fuzzy matching score between two strings.</p>
  <p>Let's say I have two strings s1 and s2 and I want to use fuzzy matching in python. I am aware of the fact that python libraries like fuzzywuzzy can do the trick. But I would like to know the exact mathematics and logic behind the fuzzy matching approach and the ratio calculation.</p>