Skip to content

Instantly share code, notes, and snippets.

@christabor
Created February 25, 2017 09:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christabor/1481b146781cdd0ad266d81778297907 to your computer and use it in GitHub Desktop.
Save christabor/1481b146781cdd0ad266d81778297907 to your computer and use it in GitHub Desktop.
*omes
from pprint import pprint as ppr
import nltk
def get_dict_words():
# Choices: web2, words, web2a, connectives, propernames
folder = 'words'
osx_words = '/usr/share/dict/{}'.format(folder)
with open(osx_words, 'r') as wordfile:
words = wordfile.readlines()
return words
vowels = list('aeiou')
consonants = list('qwrtypsdfghjlzcbnm')
preferred_consonants = list('tcz')
MIN_LEN = 5
MAX_LEN = 9
USE_PREFERRED = True
words = []
for word in get_dict_words():
if word and len(word) >= MIN_LEN and len(word) <= MAX_LEN:
word = word.strip()
cons = preferred_consonants if USE_PREFERRED else consonants
if word[-1] in cons and word[-2] in vowels and word[-3] in cons:
pos = nltk.pos_tag([word])[0]
if pos[1] in ['NN', 'NNP']:
words.append(u'{}ome'.format(word.lower()))
for word in words:
print(word)
@christabor
Copy link
Author

aerostatome
agaricicome
anicutome
anzacome
apricotome
ascotome
ascotome
atlanticome
autoecicome
avocetome
aztecome
becutome
bertatome
bizetome
bobcatome
bombazetome
boracicome
budzatome
cahincicome
calcicome
calicutome
capercutome
carbazicome
chatotome
chicotome
chilcatome
coletitome
constatome
copycatome
cortezome
coscetome
coutetome
crazycatome
cretacicome
criticome
crosscutome
cryostatome
dawtetome
dawtitome
deficitome
despotatome
dicalcicome
dicotome
doocotome
doucetome
dovecotome
dowcetome
downcutome
drawcutome
ducatome
dulcetome
elicitome
ergostatome
erucicome
esparcetome
estocome
explicitome
exultetome
facetome
fascetome
faucetome
filicicome
fornacicome
forthcutome
francicome
fustetome
gaycatome
goldtitome
grasscutome
grozetome
gynecicome
gyrostatome
habitatome
haircutome
haricotome
hellcatome
hellicatome
hemostatome
hepcatome
huastecome
ilicicome
illicitome
implicitome
incutome
ipecacome
isotacome
jacaltecome
kitcatome
klikitatome
korzecome
lacetome
lancetome
latitatome
licitome
linecutome
lucetome
manostatome
mascotome
massicotome
masticicome
mazatecome
mazicome
mazutome
miscutome
mixtecome
mollycotome
monocotome
motetome
moustocome
mucicome
muscatome
muscotome
nocktatome
nonlicetome
nostocome
novcicome
obidicutome
octetome
offcutome
ortetome
outcutome
overcutome
oxytocicome
paletotome
pentitome
persicotome
petitome
picotome
placetome
plasticome
plasticome
plumcotome
polecatome
pontacome
pouncetome
precutome
pulicatome
pusscatome
pussycatome
pyrostatome
quartetome
quartzicome
quercicome
quintetome
recutome
rheostatome
romescotome
roncetome
salacotome
saltcatome
scatome
scilicetome
scotome
scotome
scutome
sebacicome
septetome
sestetome
sextetome
silicicome
sintocome
snobscatome
solicitome
stetome
stotome
stutome
tacitome
tautitome
tearcatome
tercetome
thoracicome
tipcatome
toltecome
tomcatome
tomtitome
tricotome
turcicome
twicetome
tzapotecome
uncutome
undercutome
upcutome
uppercutome
wainscotome
wapacutome
wheencatome
whipcatome
wildcatome
wingcutome
wistitome
woodcutome
wullcatome
yakutatome
yucatecome
zacatecome
zapotecome
zincicome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment