We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a71302 commit 1b30baeCopy full SHA for 1b30bae
spellchecker/spellchecker.py
@@ -259,7 +259,7 @@ def __edit_distance_alt(self, words):
259
for w in words
260
if self._check_if_should_check(w)
261
]
262
- return [e2 for e1 in tmp for e2 in self.edit_distance_1(e1)]
+ return [e2 for e1 in tmp for e2 in self.known(self.edit_distance_1(e1))]
263
264
def _check_if_should_check(self, word):
265
if len(word) == 1 and word in string.punctuation:
0 commit comments