Skip to content

Instantly share code, notes, and snippets.

@frankkienl
Last active September 4, 2022 18:18
Show Gist options
  • Save frankkienl/dc23df7ddbdfb2b037424d82f4213b08 to your computer and use it in GitHub Desktop.
Save frankkienl/dc23df7ddbdfb2b037424d82f4213b08 to your computer and use it in GitHub Desktop.
Words that end with 'tal'
fun main(args: Array<String>) {
val regex = ".{1,}tal$"
val filename = "english-words.txt"
processFile(filename, regex)
}
fun processFile(filename: String, regexString: String) {
val inputStream = object {}.javaClass.getResourceAsStream(filename) ?: return
val lines = inputStream.bufferedReader().readLines()
val regex = Regex(regexString, RegexOption.IGNORE_CASE)
lines.forEach() { line ->
if (regex.containsMatchIn(line)) {
println(line)
}
}
}
abdominogenital
abettal
abuttal
accidental
accompanimental
accretal
acetal
aconital
acquital
acquittal
acropetal
actinomycestal
actinomycetal
activital
adiposogenital
adital
adjustmental
adrectal
adrostal
afetal
agrestal
alimental
aliseptal
all-metal
alveolodental
ambital
amental
amidoacetal
aminoacetal
Amytal
amobarbital
ancipital
anecdotal
angustiseptal
anogenital
anorectal
Antal
antecedental
anteconsonantal
antecubital
antemarital
antemortal
antenatal
anteorbital
ante-orbital
antepalatal
antepredicamental
anterofrontal
anteroparietal
anticapital
antidotal
antigovernmental
anti-infantal
Anti-oriental
antiparliamental
antisacerdotal
antorbital
aortal
apartmental
apico-dental
aplacental
apodematal
Aptal
aquincubital
aquintocubital
argental
argumental
artal
ascomycetal
assonantal
astomatal
Atal
atlantal
atloido-occipital
atramental
attal
attributal
augustal
auriculo-infraorbital
auriculo-occipital
auriculoparietal
avital
axopetal
babbit-metal
balibuntal
barbital
basidigital
basioccipital
basipetal
begattal
begettal
bell-metal
bicipital
biconsonantal
bidental
bidialectal
bifrontal
bimetal
bioenvironmental
biorbital
biparental
biparietal
bipunctal
biquadrantal
bistratal
borstal
bostal
brachiocubital
brotocrystal
brutal
bulborectal
buntal
buttal
cactal
cafetal
Cantal
capital
cataractal
cellipetal
cellulipetal
cemental
cental
centricipital
centripetal
cerebellipetal
cerebripetal
cerebroparietal
cervico-occipital
chaetal
Chantal
cheetal
chemicovital
chital
choanocytal
chondrocostal
chondrofetal
Chontal
chorizontal
Christal
Chrystal
chromonematal
circuital
circumgenital
circumhorizontal
circumlental
circumorbital
cystal
cital
cleidocostal
cleido-occipital
cliental
climatal
coastal
coincidental
coital
collencytal
comital
committal
communital
compartmental
compital
complemental
complimental
componental
condimental
confrontal
congenital
connatal
consertal
consonantal
Continental
contraorbital
contrapletal
contrapuntal
copunctal
coracocostal
coronofrontal
corticipetal
costal
counterrebuttal
courtal
covenantal
craspedotal
crestal
crinital
cryptal
Cristal
Crystal
crotal
crottal
crurogenital
crustal
cubital
cubitodigital
cucurbital
curtal
curvital
decremental
decretal
decubital
deltal
dental
dentinocemental
departmental
dermoskeletal
descendental
determinantal
detrimental
detrital
developmental
dialectal
dicrotal
dietal
diethylacetal
digital
diminutal
dipneustal
discoplacental
discriminantal
dispetal
dissepimental
distal
dital
documental
dodrantal
dorsointercostal
dorso-occipital
dotal
Dowmetal
ductal
echinital
ectal
ectental
edental
edictal
edital
electrovital
elemental
Emmental
emolumental
encrinital
endophytal
endoskeletal
ental
enteropneustal
entophytal
environmental
epactal
epicontinental
epicostal
epiglottal
epiphytal
episkeletal
equimomental
equirotal
eremital
ericetal
ethmofrontal
ethmopalatal
excremental
excretal
exoccipital
exorbital
exoskeletal
experimental
explemental
extracontinental
extracostal
extradecretal
extradepartmental
extradialectal
extradotal
extragovernmental
extralimital
extramarital
extramental
extraorbital
extraparental
extraparietal
extraplacental
extrasacerdotal
extremital
fatal
Fattal
fermental
festal
fetal
fetoplacental
figmental
firmamental
foetal
fontal
forestal
Forrestal
FRACTAL
fragmental
Fromental
frontal
frontomental
frontooccipital
frontoorbital
frontoparietal
full-frontal
fundamental
funestal
gametal
gastrogenital
gastro-omental
gastroparietal
gazettal
genital
gerontal
gigantal
glyptal
glottal
governmental
grandparental
grandtotal
Greco-oriental
Gretal
gunmetal
gun-metal
gutturopalatal
habilimental
habitatal
haematal
half-mental
Half-oriental
Hamital
hartal
hematal
hemiacetal
hepatoportal
heptal
heredital
heteroclital
hexobarbital
hiatal
hyetal
hymenomycetal
hyomental
hyperbrutal
hypersacerdotal
hypersentimental
hypocrital
hyposkeletal
hysterophytal
holocaustal
holophotal
horizontal
hospital
hostal
hpital
humerocubital
humerodigital
idiolectal
iliocostal
ilioscrotal
immanental
immortal
impedimental
implacental
implemental
inalimental
incidental
incremental
incrystal
incruental
inferofrontal
infracostal
infraoccipital
infraorbital
infrastigmatal
ingenital
inguinoscrotal
inital
instal
instrumental
integumental
intercoastal
interconsonantal
intercontinental
intercostal
interdental
interdepartmental
interdigital
interfrontal
intergovernmental
intermental
interorbital
interparental
interparietal
interplacental
interportal
interregimental
intersegmental
intersentimental
interseptal
intersertal
intersocietal
intertestamental
intervarietal
intervital
intracoastal
intracontinental
intracostal
intradepartmental
intramental
intranatal
intraorbital
intraparietal
intraplacental
intrarectal
intrascrotal
intrasegmental
intraseptal
intravital
invital
ischiorectal
isohyetal
isophotal
Ital
judgemental
judgmental
juramental
ketal
kotal
Kristal
Krystal
labiodental
labiomental
labiopalatal
Lanital
laterostigmatal
latiseptal
leucocytal
L'Hospital
Liestal
ligamental
limital
lineamental
linguadental
linguidental
linguodental
linguodistal
linguopalatal
locustal
lumbocostal
managemental
mantal
manuscriptal
marital
mastoccipital
mastooccipital
mastoparietal
matriherital
matripotestal
maxillodental
maxillopalatal
meatal
medicamental
medicodental
medioccipital
mediocubital
mediodigital
mediofrontal
mediopalatal
mental
mercaptal
mesenchymatal
mesiodistal
mesonotal
mesoprescutal
mesorectal
mesoscutal
metal
metanotal
metaprescutal
metascutal
meteorital
microcrystal
microenvironmental
microphytal
midfrontal
mid-orbital
midparental
myelopetal
minihospital
myrtal
misrecital
mistal
momental
monodontal
monoparental
monophotal
monumental
mortal
mosquital
multicipital
multihospital
multisegmental
Mumetal
musculoskeletal
nasiomental
nasoccipital
nasofrontal
nasoorbital
nasopalatal
nasoseptal
Natal
Nembutal
neofetal
neonatal
nepotal
neurocental
neuroskeletal
nidamental
nonaccidental
nonacquittal
nonbrutal
noncapital
noncircuital
noncoincidental
noncommittal
non-committal
noncondimental
noncongenital
noncontinental
nondepartmental
nondetrimental
nondevelopmental
nondialectal
nondocumental
nonelemental
nonenvironmental
nonexperimental
nonfatal
nonfundamental
nongovernmental
nonimpedimental
nonimplemental
nonincidental
noninstrumental
nonjudgmental
nonmarital
nonmental
nonmetal
non-metal
nonmortal
nonoccidental
nonoriental
nonornamental
nonpalatal
nonparental
nonplacental
nonrecital
nonrefutal
nonregimental
nonremittal
nonrequital
nonresidental
nonrudimental
nonsacerdotal
nonsacramental
nonsegmental
nonskeletal
nonsocietal
nonsupplemental
nontangental
nontemperamental
nontransmittal
nonvital
notal
notonectal
nucleopetal
nutrimental
obital
oblongatal
Occidental
occipital
occipitoatlantal
occipitofrontal
occipitomental
occipitoparietal
octal
octantal
oculofrontal
omental
omnimental
onocrotal
ontal
orbital
orbitofrontal
Oriental
ornamental
outwittal
overbrutal
overornamental
oversentimental
oviductal
palaeocrystal
palaeostriatal
palatal
palatodental
paleocrystal
paleostriatal
paradental
pararectal
parasital
parental
parietal
parietofrontal
parieto-occipital
parliamental
paroccipital
patripotestal
pavemental
pedestal
pediculofrontal
pediculoparietal
pedimental
pelletal
pelvirectal
Pentecostal
pentobarbital
pentremital
percental
pericemental
peridental
periductal
perigenital
perinatal
perineoscrotal
periodontal
periorbital
periportal
periproctal
perirectal
peritonital
petal
petro-occipital
phagocytal
pharyngopneustal
phenobarbital
physicomental
Phlegethontal
photal
phrenicocostal
phrenocostal
piedmontal
pigmental
pig-metal
pinacocytal
pituital
pivotal
placental
planetal
planicipital
planirostal
planohorizontal
plantal
platynotal
pluricipital
pointal
polychaetal
polycrystal
polydental
polydigital
polyglottal
polyodontal
polypetal
polyphotal
politico-sacerdotal
pontal
portal
portal-to-portal
postabortal
postal
postcoital
postconsonantal
postcostal
postcubital
postdental
postdevelopmental
postdigital
postelemental
posteroparietal
postfetal
postfoetal
postfrontal
postgenital
posthospital
postmarital
postmeatal
postmental
postmortal
postnatal
postomental
postorbital
postpalatal
postparietal
postpartal
Post-pentecostal
postpubertal
postrectal
post-Transcendental
potestal
pot-metal
pratal
preaccidental
preacquittal
preconquestal
pre-conquestal
preconsonantal
precontinental
precostal
predental
predepartmental
predetrimental
predicamental
predigital
preelemental
pre-elemental
preenvironmental
pre-environmental
preexperimental
pre-experimental
prefrontal
pregenital
premarital
premonumental
premortal
prenatal
preoccipital
preorbital
pre-orbital
preornamental
prepalatal
preparental
preparietal
preparoccipital
prepigmental
preplacental
prepubertal
prerecital
prerectal
prerental
prescutal
presental
presentimental
preseptal
prestidigital
presupplemental
prevotal
priestal
primatal
primogenital
proacquittal
procapital
Pro-continental
proctal
progenital
pronotal
Pro-oriental
proparliamental
protometal
protonematal
provostal
pseudoaccidental
pseudoexperimental
pseudooccidental
pseudo-occidental
pseudooriental
Pseudo-oriental
pseudoskeletal
psychopetal
psychovital
pterygopalatal
pubertal
pulpital
punctal
puntal
quadrantal
quadricipital
quadrifrontal
quantal
quasi-accidental
quasi-experimental
quasi-fatal
quasi-immortal
quasi-mental
quasi-oriental
quasi-sentimental
quasi-total
quasi-vital
quincubital
quinquepunctal
quintal
quintocubital
quittal
quodlibetal
radiobicipital
radiodigital
ramental
ratal
rebuttal
recital
recommittal
recountal
recremental
recruital
rectal
rectogenital
refutal
regental
regimental
remetal
remital
remittal
remnantal
reniportal
rental
repeatal
requital
re-recital
rerental
residental
retal
retotal
retreatal
retrocostal
retrofrontal
retrolental
retro-omental
retroplacental
retrorectal
revertal
rhynchotal
rictal
Romipetal
Rotal
rudimental
sacerdotal
sacramental
sacrocostal
sacrorectal
sagital
sagittal
salpingopalatal
Santal
scleroskeletal
sclerotal
scotal
scrotal
scutal
secobarbital
sedimental
segetal
segmental
self-committal
semiconsonantal
semicostal
semiexperimental
semigovernmental
semi-intercostal
semimetal
semi-metal
semioriental
semipostal
semisacerdotal
semisentimental
semital
semiteetotal
semivital
sentimental
septal
septaugintal
Septuagintal
sesquiquartal
sesquiquintal
sesquisextal
setal
sexdigital
sextantal
Sybarital
sincipital
skeletal
snow-crystal
societal
somital
sonantal
sortal
sow-metal
spermatocytal
sphenofrontal
spheno-occipital
sphenoparietal
spherocrystal
spinipetal
spinotectal
spirantal
spirital
spirochaetal
spirochetal
spital
splanchnoskeletal
squamo-occipital
squamoparietal
squamosoparietal
stalactital
statal
stellate-crystal
sternocostal
sterro-metal
stigmatal
stomatal
stratal
striatal
stromatal
subcoastal
subcontinental
subcostal
subcrustal
subdepartmental
subdialectal
subelemental
subepiglottal
subfrontal
subgenital
subglottal
subhorizontal
subintegumental
submental
submittal
suboccipital
suborbital
subparietal
subplacental
subrectal
subrictal
substratal
subtectal
subtegumental
subtotal
subvarietal
summital
sum-total
supercapital
superfrontal
superglottal
supermental
superoccipital
superofrontal
supero-occipital
superorbital
superornamental
superquadrupetal
supersacerdotal
supersentimental
superseptal
supertotal
supervital
supplemental
supposital
supracostal
supradental
supraglottal
supragovernmental
suprameatal
supramental
supramortal
supraoccipital
supraorbital
suprasegmental
supraseptal
supravital
surmountal
surrebuttal
tangental
tapetal
tarso-orbital
tectal
teetotal
tegmental
tegumental
temperamental
temporofrontal
temporooccipital
temporoparietal
tenemental
termital
testamental
thalamotegmental
thioacetal
thiopental
throatal
total
tournamental
trachelo-occipital
transcendental
transcontinental
trans-continental
transelemental
transeptal
transexperiental
transfrontal
transmental
transmittal
transorbital
transparietal
transplacental
transportal
transsegmental
transseptal
transsocietal
transversocubital
trental
tricipital
triconsonantal
tridental
triental
trigintal
tripunctal
triquadrantal
troglodytal
truculental
twice-mortal
Tzental
ultratotal
unaccidental
unanecdotal
uncentripetal
uncoincidental
uncomplemental
uncontinental
undetrimental
undevelopmental
unelemental
unexperimental
unfundamental
ungovernmental
unhorizontal
unhospital
unigenital
unimmortal
unincidental
uninstrumental
uniparental
unital
unmental
unmonumental
unmortal
unoccidental
unorbital
unoriental
unornamental
unpalatal
unparental
unpedestal
unpetal
unregimental
unrequital
unsacerdotal
unsacramental
unsedimental
unsegmental
unsentimental
unsonantal
unsupplemental
untangental
untemperamental
untestamental
untranscendental
unvital
uprootal
upsettal
uretal
ureterogenital
urethrogenital
urethrorectal
urinogenital
urogenital
uteroparietal
uteroplacental
varietal
vegetal
vertebrocostal
verticomental
vesicorectal
vestal
vestimental
vestmental
vicecomital
victal
villiplacental
visceroparietal
visceroskeletal
viscontal
vistal
vital
votal
watertightal
wind-instrumental
wittal
Wuppertal
xiphocostal
XTAL
zygomaticofrontal
zygomaticoorbital
zonoplacental
zoophytal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment