Skip to content

Commit c3a3c2e

Browse files
committed
use fuzzywuzzy approach
1 parent 499bd3a commit c3a3c2e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fuzzymatcher/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def is_mispelling(token_left, token_right):
4949
sm = SequenceMatcher(None, "hi", "hit")
5050
this_ratio = sm.ratio(token_left, token_right)
5151

52-
if this_ratio >= 0.9:
52+
if this_ratio >= 90:
5353
return True
5454

5555
return False

0 commit comments

Comments
 (0)