Skip to content
Snippets Groups Projects
Commit e76aa3cb authored by Tomasz Walkowiak's avatar Tomasz Walkowiak
Browse files

fixing typos

parent d69f437a
Branches
No related merge requests found
Pipeline #9209 failed with stages
in 18 seconds
......@@ -17,8 +17,8 @@ class SpellerFixed(Speller):
"""Returns a list of possible candidate words."""
w = Word(word, self.lang, self.only_replacements)
if self.fast or len(word) > 15:
candidates = self.existing([word]) or self.existing(w.typos()) or
[word]
candidates = (self.existing([word]) or self.existing(w.typos()) or
[word])
else:
candidates = (
self.existing([word]) or
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment