Skip to content

Commit 1b30bae

Browse files
authored
Update spellchecker.py (#62)
1 parent 8a71302 commit 1b30bae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spellchecker/spellchecker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ def __edit_distance_alt(self, words):
259259
for w in words
260260
if self._check_if_should_check(w)
261261
]
262-
return [e2 for e1 in tmp for e2 in self.edit_distance_1(e1)]
262+
return [e2 for e1 in tmp for e2 in self.known(self.edit_distance_1(e1))]
263263

264264
def _check_if_should_check(self, word):
265265
if len(word) == 1 and word in string.punctuation:

0 commit comments

Comments
 (0)