removed non alpha words from dict

This commit is contained in:
Hazel Noack 2025-06-30 12:19:17 +02:00
parent dec1323c47
commit 04f84e34c0

View File

@ -76,7 +76,7 @@ var Words []string = []string{"""
with open("/usr/share/dict/words", "r") as f: with open("/usr/share/dict/words", "r") as f:
for l in f.readlines(): for l in f.readlines():
if not l.isalpha(): if not l.isalpha():
break continue
lines.append(f'\t"{l.strip()}",') lines.append(f'\t"{l.strip()}",')
lines.append("}") lines.append("}")