Here's a string T:
'men shirt team brienne funny sarcasm shirt features graphic tees mugs babywear much real passion brilliant design detailed illustration strong appreciation things creative br shop thousands designs found across different shirt babywear mugs funny pop culture abstract witty many designs brighten day well day almost anyone else meet ul li quality short sleeve crew neck shirts 100 cotton soft durable comfortable feel fit standard size doubt l xl available li li sustainability label company conceived belief textiles industry start acting lot responsibly made cotton li li clothing printed using state art direct garment equipment crack peel washed li li graphic tee designs professionally printed unique design look great make someone smile funny cute vintage expressive artwork li ul'
I've highlighted a part of the above string since the above is a preprocessed version of a string, and thus may be difficult to read.
I'm getting the following values:
fuzz.partial_ratio('short sleeve', T) gives 50
fuzz.partial_ratio('long sleeve', T) gives 73
fuzz.partial_ratio('dsfsdf sleeve', T) gives 62
fuzz.partial_ratio('sleeve', T) gives 50
I'm very confused by this. Shouldn't the first and fourth values be 100? Surely I'm missing something but I cannot figure it out.
EDIT: Here's another example that I run after uninstalled python-Levenshtein library:
'first succeed way wife told v 2 long sleeve shirt id 1084 first succeed way wife told v 2 long sleeve shirt design printed quality 100 long sleeve cotton shirt sports gray 90 cotton 10 polyester standard long sleeve shirts fashion fit tight fitting style please check size chart listed additional image feel free contact us first sizing questions satisfaction 100 guaranteed shirts usually ship business day ordered noon est next business day ordered noon est long sleeve shirts 100 cotton standard shirt fashion fit combined shipping multiple items'
fuzz.partial_ratio('long sleeve', T) gives 27
fuzz.partial_ratio('short sleeve', T) gives 33
fuzz.partial_ratio('sleeveless', T) gives 40
fuzz.partial_ratio('dsfasd sleeve', T) gives 23
Unfortunately the problem doesn't seem to be exclusive to python-Levenshtein library.