|
|
|
@ -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) |
|
|
|
|