xdrop/fuzzywuzzy

Strange result

Closed this issue · 5 comments

Hi. Ratio value between words "гигантская" and "гигансткая" is 90.
In my opinion, here something is wrong. Or is this a normal result of the library?

xdrop commented

I can't reproduce this with simple, partial, or weightedRatio.

Can you provide some sample code to reproduce this?

xdrop commented

@vellrya That's strange.

I just ran:
System.out.println(FuzzySearch.ratio("гигантская","гигантская"));
And it prints 100.

Are you using 1.1.7?

Haha) Look at this letters: "гиганТСкая" and "гиганСТкая." The change of two letters between them reduces the ratio by 10 points.
That's exactly what I wanted to pay attention to

xdrop commented

@vellrya Hahah well done spotting that 😄

Closing this then as it was a typo