Skip to content

Commit

Permalink
Fix possible answers not being a strict subset of the dictionary (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
avojak committed Jan 13, 2022
1 parent fc802c7 commit 2dff067
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 30 deletions.
2 changes: 2 additions & 0 deletions data/dictionary.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17309,6 +17309,7 @@ ballpoint
ballpoints
ballroom
ballrooms
balls
ballsier
ballsiest
ballsiness
Expand Down Expand Up @@ -74180,6 +74181,7 @@ elvan
elvanite
elvanites
elvans
elven
elver
elvers
elves
Expand Down
30 changes: 0 additions & 30 deletions data/words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -194,11 +194,9 @@ askew
aspen
aspic
assay
asses
asset
aster
astir
asura
atlas
atman
atoll
Expand Down Expand Up @@ -395,7 +393,6 @@ birch
birds
birth
bison
bitch
biter
bites
bitsy
Expand Down Expand Up @@ -470,16 +467,13 @@ bombe
bombs
bonds
boned
boner
bones
boney
bongo
bongs
bonks
bonny
bonus
boobs
booby
booed
books
booms
Expand All @@ -492,7 +486,6 @@ boots
booty
booze
boozy
boppy
borax
bored
borer
Expand Down Expand Up @@ -614,7 +607,6 @@ bused
buses
bushy
busts
busty
butch
butte
butts
Expand Down Expand Up @@ -758,7 +750,6 @@ chime
chimp
china
chine
ching
chino
chins
chips
Expand Down Expand Up @@ -851,7 +842,6 @@ coats
cobia
cobra
cocci
cocks
cocky
cocoa
codas
Expand Down Expand Up @@ -1112,7 +1102,6 @@ detox
deuce
devil
dewar
dhikr
dhows
dials
diary
Expand All @@ -1137,7 +1126,6 @@ dines
dingo
dings
dingy
dinks
dinky
dinos
diode
Expand Down Expand Up @@ -1195,7 +1183,6 @@ dopey
dorks
dorky
dorms
dosas
dosed
doses
doted
Expand Down Expand Up @@ -1338,7 +1325,6 @@ eider
eidos
eight
eject
ejido
eland
elbow
elder
Expand Down Expand Up @@ -1445,7 +1431,6 @@ falls
famed
fancy
fangs
fanny
farce
fared
fares
Expand All @@ -1472,8 +1457,6 @@ fazes
fears
feast
feats
fecal
feces
feeds
feels
feign
Expand Down Expand Up @@ -1943,7 +1926,6 @@ peaks
pearl
pedal
peers
penis
penny
perks
pests
Expand Down Expand Up @@ -2264,7 +2246,6 @@ stuck
study
stuff
style
sucks
sugar
suite
suits
Expand Down Expand Up @@ -2679,7 +2660,6 @@ amours
ampere
ampler
ampule
amtrak
amulet
amused
amuses
Expand Down Expand Up @@ -2720,7 +2700,6 @@ antics
antler
antral
antrum
anuses
anvils
anyhow
anyone
Expand Down Expand Up @@ -3107,7 +3086,6 @@ biller
billet
billon
billow
bimbos
binary
binder
binged
Expand All @@ -3128,7 +3106,6 @@ bishop
bisons
bisque
bistro
bitchy
biters
biting
bitmap
Expand Down Expand Up @@ -3166,12 +3143,10 @@ blithe
blobby
blocks
blocky
bloggy
blokes
blonde
blonds
bloods
bloody
blooms
blotch
blouse
Expand Down Expand Up @@ -3218,7 +3193,6 @@ bombed
bomber
bonbon
bonded
boners
bongos
bonier
bonito
Expand Down Expand Up @@ -3382,7 +3356,6 @@ buffed
buffer
buffet
bugged
bugger
bugler
bugles
builds
Expand Down Expand Up @@ -4764,7 +4737,6 @@ styles
submit
subtle
subway
sucked
sudden
suffer
sugars
Expand Down Expand Up @@ -5219,7 +5191,6 @@ element
enables
enemies
engines
English
enhance
enjoyed
entered
Expand Down Expand Up @@ -5674,7 +5645,6 @@ visible
visited
vitamin
vaccine
vaginal
vampire
variant
varsity
Expand Down
20 changes: 20 additions & 0 deletions validate-words.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env python3

"""
Tool to validate that the list of possible answers (words.txt) is a
strict subset of the dictionary of acceptable words (dictionary.txt).
This script should be run any time a change is made to either file.
"""

with open('data/words.txt') as words:
possible_answers = words.readlines()
possible_answers = [line.rstrip() for line in possible_answers]

with open('data/dictionary.txt') as dictionary:
dictionary_words = dictionary.readlines()
dictionary_words = [line.rstrip() for line in dictionary_words]

for possible_answer in possible_answers:
if possible_answer not in dictionary_words:
print(possible_answer, end='\n')

0 comments on commit 2dff067

Please sign in to comment.