fuzzywuzzy icon indicating copy to clipboard operation
fuzzywuzzy copied to clipboard

Simple ratio strange behavior

Open radio1988 opened this issue 5 years ago • 2 comments

#A 
>>> fuzz.ratio("13245", "12345")
80

#B 
>>> fuzz.ratio("13345", "12345")
80

#C 
>>> fuzz.ratio("19945", "12345")
60

I understand the simple ratio is "matched chars"/"all chars", but how is #A showing 80% similarity? How are there 8 matching chars? thanks!

radio1988 avatar Mar 18 '19 15:03 radio1988