diff --git a/main.py b/main.py index e8d999a..4d402aa 100755 --- a/main.py +++ b/main.py @@ -5,9 +5,9 @@ from spellchecker import SpellChecker SPELL = SpellChecker() -def canidates(letters, min=2, max=5): +def canidates(letters, min=2): pos = [] - for length in range(min, max+1): + for length in range(min, len(letters)+1): for comb in itertools.combinations(letters, length): for perm in itertools.permutations(comb): word = ''.join(perm)