{"issue":{"milestone":null,"user":{"id":1272209,"login":"rajkrpan","url":"https://api.github.com/users/rajkrpan","avatar_url":"https://secure.gravatar.com/avatar/72f689dede854453de5b24080237ebf5?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"72f689dede854453de5b24080237ebf5"},"title":"Bug in partial_ratio","created_at":"2011-12-19T08:15:23Z","labels":[],"updated_at":"2011-12-20T04:36:27Z","state":"closed","id":2597746,"html_url":"https://github.com/seatgeek/fuzzywuzzy/issues/7","closed_at":"2011-12-20T04:36:00Z","pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"body":"There is a small bug in the partial_ratio\r\n\r\nfuzz.partial_ratio('HSINCHUANG','Sinjhuang District'.upper()) =  30\r\nwhereas\r\nfuzz.partial_ratio('HSINCHUANG','SINJHUAN) = 88\r\nand \r\nfuzz.partial_ratio('HSINCHUANG', 'LSINJHUANG DISTRIC')\r\n\r\nThus the function is unable to match the partial string of 'HSINCHUANG' and 'SINJHUANG DISTRIC'\r\n\r\nif you substitute line\r\nlong_start   = block[1] - block[0]\r\nin partial_ratio by \r\nlong_start   = block[1] - block[0] if (block[1]-block[0])>0 else 0","number":7,"url":"https://api.github.com/repos/seatgeek/fuzzywuzzy/issues/7","comments":1,"assignee":null},"comment":{"user":{"id":513187,"login":"acslater00","url":"https://api.github.com/users/acslater00","avatar_url":"https://secure.gravatar.com/avatar/c6acd5014c1f30e819bfddad1b52039b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"c6acd5014c1f30e819bfddad1b52039b"},"created_at":"2011-12-20T04:36:27Z","updated_at":"2011-12-20T04:36:27Z","id":3214315,"body":"Thanks a lot for the bug report!","url":"https://api.github.com/repos/seatgeek/fuzzywuzzy/issues/comments/3214315"},"action":"created"}