removed non alpha words from dict

This commit is contained in:
Hazel Noack 2025-06-30 12:20:01 +02:00
parent 04f84e34c0
commit 18e9322013
2 changed files with 74746 additions and 1 deletions

File diff suppressed because it is too large Load Diff

View File

@ -75,9 +75,10 @@ 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():
l = l.strip()
if not l.isalpha(): if not l.isalpha():
continue continue
lines.append(f'\t"{l.strip()}",') lines.append(f'\t"{l}",')
lines.append("}") lines.append("}")