Skip to content

Instantly share code, notes, and snippets.

@wibbia
Created December 8, 2014 22:33
Show Gist options
  • Save wibbia/7aa10ad6181f187db57f to your computer and use it in GitHub Desktop.
Save wibbia/7aa10ad6181f187db57f to your computer and use it in GitHub Desktop.
import random
print("Poem Generator")
noun = open("Words\Boun.txt", "r")
n = noun.readlines()
noun.close()
verb = open("Words\Berbs.txt", "r")
v = verb.readlines()
verb.close()
colour = open("Words\Colours.txt", "r")
c = colour.readlines()
colour.close()
adjectives = open("Words\Adjectives.txt", "r")
a = adjectives.readlines()
adjectives.close()
f = open("Words\WillPoemGenerator.txt", "r")
lines = f.readlines()
f.close()
while True:
x = 0
print('\n')
input("Press Enter to generate poem")
print('\n')
Title = n[random.randint(0,len(n)-1)].split()
TTitle = ' '.join(str(ti) for ti in Title)
print(TTitle.upper())
print('\n')
while x < random.randint(10,20):
hey = lines[random.randint(0,len(lines)-1)].split()
i = 0
while i < len(hey):
nou = n[random.randint(0,len(n)-1)].split()
ver = v[random.randint(0,len(v)-1)].split()
col = c[random.randint(0,len(c)-1)].split()
adj = a[random.randint(0,len(a)-1)].split()
fnou = ' '.join(str(no) for no in nou)
fver = ' '.join(str(ve) for ve in ver)
fcol = ' '.join(str(co) for co in col)
fadj = ' '.join(str(ad) for ad in adj)
if hey[i] == "noun":
hey.remove(hey[i])
hey.insert(i, fnou)
elif hey[i] == "verb":
hey.remove(hey[i])
hey.insert(i, fver)
elif hey[i] == "colour":
hey.remove(hey[i])
hey.insert(i, fcol)
elif hey[i] == "adjective":
hey.remove(hey[i])
hey.insert(i, fadj)
i += 1
final = ' '.join(str(e) for e in hey)
print(final)
x += 1
adorable
beautiful
clean
drab
elegant
fancy
glamorous
handsome
long
magnificent
old-fashioned
plain
quaint
sparkling
ugliest
unsightly
wide-eyed
alive
better
careful
clever
dead
easy
famous
gifted
helpful
important
inexpensive
mushy
odd
powerful
rich
shy
tender
uninterested
vast
wrong
angry
bewildered
clumsy
defeated
embarrassed
fierce
grumpy
helpless
itchy
jealous
lazy
mysterious
nervous
obnoxious
panicky
repulsive
scary
thoughtless
uptight
worried
agreeable
brave
calm
delightful
eager
faithful
gentle
happy
jolly
kind
lively
nice
obedient
proud
relieved
silly
thankful
victorious
witty
zealous
broad
chubby
crooked
curved
deep
flat
high
hollow
low
narrow
round
shallow
skinny
square
steep
straight
wide
big
colossal
fat
gigantic
great
huge
immense
large
little
mammoth
massive
miniature
petite
puny
scrawny
short
small
tall
teeny
teeny-tiny
tiny
cooing
deafening
faint
hissing
loud
melodic
noisy
purring
quiet
raspy
screeching
thundering
voiceless
whispering
ancient
brief
early
fast
late
long
modern
old
old-fashioned
quick
rapid
short
slow
swift
young
bitter
delicious
fresh
greasy
juicy
hot
icy
loose
melted
nutritious
prickly
rainy
rotten
salty
sticky
strong
sweet
tart
tasteless
uneven
weak
wet
wooden
yummy
boiling
breeze
broken
bumpy
chilly
cold
cool
creepy
crooked
cuddly
curly
damaged
damp
dirty
dry
dusty
filthy
flaky
fluffy
freezing
hot
warm
wet
abundant
empty
few
full
heavy
light
many
numerous
sparse
substantial
abide
accelerate
accept
accomplish
achieve
acquire
acted
activate
adapt
add
address
administer
admire
admit
adopt
advise
afford
agree
alert
alight
allow
altered
amuse
analyze
announce
annoy
answer
anticipate
apologize
appear
applaud
applied
appoint
appraise
appreciate
approve
arbitrate
argue
arise
arrange
arrest
arrive
ascertain
ask
assemble
assess
assist
assure
attach
attack
attain
attempt
attend
attract
audited
avoid
awake
back
bake
balance
ban
bang
bare
bat
bathe
battle
be
beam
bear
beat
become
beg
begin
behave
behold
belong
bend
beset
bet
bid
bind
bite
bleach
bleed
bless
blind
blink
blot
blow
blush
boast
boil
bolt
bomb
book
bore
borrow
bounce
bow
box
brake
branch
break
breathe
breed
brief
bring
broadcast
bruise
brush
bubble
budget
build
bump
burn
burst
bury
bust
buy
buzz
calculate
call
camp
care
carry
carve
cast
catalog
catch
cause
challenge
change
charge
chart
chase
cheat
check
cheer
chew
choke
choose
chop
claim
clap
clarify
classify
clean
clear
cling
clip
close
clothe
coach
coil
collect
color
comb
come
command
communicate
compare
compete
compile
complain
complete
compose
compute
conceive
concentrate
conceptualize
concern
conclude
conduct
confess
confront
confuse
connect
conserve
consider
consist
consolidate
construct
consult
contain
continue
contract
control
convert
coordinate
copy
correct
correlate
cost
cough
counsel
count
cover
crack
crash
crawl
create
creep
critique
cross
crush
cry
cure
curl
curve
cut
cycle
dam
damage
dance
dare
deal
decay
deceive
decide
decorate
define
delay
delegate
delight
deliver
demonstrate
depend
describe
desert
deserve
design
destroy
detail
detect
determine
develop
devise
diagnose
dig
direct
disagree
disappear
disapprove
disarm
discover
dislike
dispense
display
disprove
dissect
distribute
dive
divert
divide
do
double
doubt
draft
drag
drain
dramatize
draw
dream
dress
drink
drip
drive
drop
drown
drum
dry
dust
dwell
earn
eat
edited
educate
eliminate
embarrass
employ
empty
enacted
encourage
end
endure
enforce
engineer
enhance
enjoy
enlist
ensure
enter
entertain
escape
establish
estimate
evaluate
examine
exceed
excite
excuse
execute
exercise
exhibit
exist
expand
expect
expedite
experiment
explain
explode
express
extend
extract
face
facilitate
fade
fail
fancy
fasten
fax
fear
feed
feel
fence
fetch
fight
file
fill
film
finalize
finance
find
fire
fit
fix
flap
flash
flee
fling
float
flood
flow
flower
fly
fold
follow
fool
forbid
force
forecast
forego
foresee
foretell
forget
forgive
form
formulate
forsake
frame
freeze
frighten
fry
gather
gaze
generate
get
give
glow
glue
go
govern
grab
graduate
grate
grease
greet
grin
grind
grip
groan
grow
guarantee
guard
guess
guide
hammer
hand
handle
handwrite
hang
happen
harass
harm
hate
haunt
head
heal
heap
hear
heat
help
hide
hit
hold
hook
hop
hope
hover
hug
hum
hunt
hurry
hurt
hypothesize
identify
ignore
illustrate
imagine
implement
impress
improve
improvise
include
increase
induce
influence
inform
initiate
inject
injure
inlay
innovate
input
inspect
inspire
install
institute
instruct
insure
integrate
intend
intensify
interest
interfere
interlay
interpret
interrupt
interview
introduce
invent
inventory
investigate
invite
irritate
itch
jail
jam
jog
join
joke
judge
juggle
jump
justify
keep
kept
kick
kill
kiss
kneel
knit
knock
knot
know
label
land
last
laugh
launch
lay
lead
lean
leap
learn
leave
lecture
led
lend
let
level
license
lick
lie
lifted
light
lighten
like
list
listen
live
load
locate
lock
log
long
look
lose
love
maintain
make
man
manage
manipulate
manufacture
map
march
mark
market
marry
match
mate
matter
mean
measure
meddle
mediate
meet
melt
melt
memorize
mend
mentor
milk
mine
mislead
miss
misspell
mistake
misunderstand
mix
moan
model
modify
monitor
moor
motivate
mourn
move
mow
muddle
mug
multiply
murder
nail
name
navigate
need
negotiate
nest
nod
nominate
normalize
note
notice
number
obey
object
observe
obtain
occur
offend
offer
officiate
open
operate
order
organize
oriented
originate
overcome
overdo
overdraw
overflow
overhear
overtake
overthrow
owe
own
pack
paddle
paint
park
part
participate
pass
paste
pat
pause
pay
peck
pedal
peel
peep
perceive
perfect
perform
permit
persuade
phone
photograph
pick
pilot
pinch
pine
pinpoint
pioneer
place
plan
plant
play
plead
please
plug
point
poke
polish
pop
possess
post
pour
practice
praised
pray
preach
precede
predict
prefer
prepare
prescribe
present
preserve
preset
preside
press
pretend
prevent
prick
print
process
procure
produce
profess
program
progress
project
promise
promote
proofread
propose
protect
prove
provide
publicize
pull
pump
punch
puncture
punish
purchase
push
put
qualify
question
queue
quit
race
radiate
rain
raise
rank
rate
reach
read
realign
realize
reason
receive
recognize
recommend
reconcile
record
recruit
reduce
refer
reflect
refuse
regret
regulate
rehabilitate
reign
reinforce
reject
rejoice
relate
relax
release
rely
remain
remember
remind
remove
render
reorganize
repair
repeat
replace
reply
report
represent
reproduce
request
rescue
research
resolve
respond
restored
restructure
retire
retrieve
return
review
revise
rhyme
rid
ride
ring
rinse
rise
risk
rob
rock
roll
rot
rub
ruin
rule
run
rush
sack
sail
satisfy
save
saw
say
scare
scatter
schedule
scold
scorch
scrape
scratch
scream
screw
scribble
scrub
seal
search
secure
see
seek
select
sell
send
sense
separate
serve
service
set
settle
sew
shade
shake
shape
share
shave
shear
shed
shelter
shine
shiver
shock
shoe
shoot
shop
show
shrink
shrug
shut
sigh
sign
signal
simplify
sin
sing
sink
sip
sit
sketch
ski
skip
slap
slay
sleep
slide
sling
slink
slip
slit
slow
smash
smell
smile
smite
smoke
snatch
sneak
sneeze
sniff
snore
snow
soak
solve
soothe
soothsay
sort
sound
sow
spare
spark
sparkle
speak
specify
speed
spell
spend
spill
spin
spit
split
spoil
spot
spray
spread
spring
sprout
squash
squeak
squeal
squeeze
stain
stamp
stand
stare
start
stay
steal
steer
step
stick
stimulate
sting
stink
stir
stitch
stop
store
strap
streamline
strengthen
stretch
stride
strike
string
strip
strive
stroke
structure
study
stuff
sublet
subtract
succeed
suck
suffer
suggest
suit
summarize
supervise
supply
support
suppose
surprise
surround
suspect
suspend
swear
sweat
sweep
swell
swim
swing
switch
symbolize
synthesize
systemize
tabulate
take
talk
tame
tap
target
taste
teach
tear
tease
telephone
tell
tempt
terrify
test
thank
thaw
think
thrive
throw
thrust
tick
tickle
tie
time
tip
tire
touch
tour
tow
trace
trade
train
transcribe
transfer
transform
translate
transport
trap
travel
tread
treat
tremble
trick
trip
trot
trouble
troubleshoot
trust
try
tug
tumble
turn
tutor
twist
type
undergo
understand
undertake
undress
unfasten
unify
unite
unlock
unpack
untidy
update
upgrade
uphold
upset
use
utilize
vanish
verbalize
verify
vex
visit
wail
wait
wake
walk
wander
want
warm
warn
wash
waste
watch
water
wave
wear
weave
wed
weep
weigh
welcome
wend
wet
whine
whip
whirl
whisper
whistle
win
wind
wink
wipe
wish
withdraw
withhold
withstand
wobble
wonder
work
worry
wrap
wreck
wrestle
wriggle
wring
write
x-ray
yawn
yell
zip
zoom
ball
bat
bed
book
boy
bun
can
cake
cap
car
cat
cow
cub
cup
dad
day
dog
doll
dust
fan
feet
girl
gun
hall
hat
hen
jar
kite
man
map
men
mom
pan
pet
pie
pig
pot
rat
son
sun
toe
tub
van
apple
arm
banana
bike
bird
book
chin
clam
class
clover
club
corn
crayon
crow
crown
crowd
crib
desk
dime
dirt
dress
fang
field
flag
flower
fog
game
heat
hill
home
horn
hose
joke
juice
kite
lake
maid
mask
mice
milk
mint
meal
meat
moon
mother
morning
name
nest
nose
pear
pen
pencil
plant
rain
river
road
rock
room
rose
seed
shape
shoe
shop
show
sink
snail
snake
snow
soda
sofa
star
step
stew
stove
straw
string
summer
swing
table
tank
team
tent
test
toes
tree
vest
water
wing
winter
woman
women
alarm
animal
aunt
bait
balloon
bath
bead
beam
bean
bedroom
boot
bread
brick
brother
camp
chicken
children
crook
deer
dock
doctor
downtown
drum
dust
eye
family
father
fight
flesh
food
frog
goose
grade
grandfather
grandmother
grape
grass
hook
horse
jail
jam
kiss
kitten
light
loaf
lock
lunch
lunchroom
meal
mother
notebook
owl
pail
parent
park
plot
rabbit
rake
robin
sack
sail
scale
sea
sister
soap
song
spark
space
spoon
spot
spy
summer
tiger
toad
town
trail
tramp
tray
trick
trip
uncle
vase
winter
water
week
wheel
wish
wool
yard
zebra
actor
airplane
airport
army
baseball
beef
birthday
boy
brush
bushes
butter
cast
cave
cent
cherries
cherry
cobweb
coil
cracker
dinner
eggnog
elbow
face
fireman
flavor
gate
glove
glue
goldfish
goose
grain
hair
haircut
hobbies
holiday
hot
jellyfish
ladybug
mailbox
number
oatmeal
pail
pancake
pear
pest
popcorn
queen
quicksand
quiet
quilt
rainstorm
scarecrow
scarf
stream
street
sugar
throne
toothpaste
twig
volleyball
wood
wrench
advice
anger
answer
apple
arithmetic
badge
basket
basketball
battle
beast
beetle
beggar
brain
branch
bubble
bucket
cactus
cannon
cattle
celery
cellar
cloth
coach
coast
crate
cream
daughter
donkey
drug
earthquake
feast
fifth
finger
flock
frame
furniture
geese
ghost
giraffe
governor
honey
hope
hydrant
icicle
income
island
jeans
judge
lace
lamp
lettuce
marble
month
north
ocean
patch
plane
playground
poison
riddle
rifle
scale
seashore
sheet
sidewalk
skate
slave
sleet
smoke
stage
station
thrill
throat
throne
title
toothbrush
turkey
underwear
vacation
vegetable
visitor
voyage
year
able
achieve
acoustics
action
activity
aftermath
afternoon
afterthought
apparel
appliance
beginner
believe
bomb
border
boundary
breakfast
cabbage
cable
calculator
calendar
caption
carpenter
cemetery
channel
circle
creator
creature
education
faucet
feather
friction
fruit
fuel
galley
guide
guitar
health
heart
idea
kitten
laborer
language
lawyer
linen
locket
lumber
magic
minister
mitten
money
mountain
music
partner
passenger
pickle
picture
plantation
plastic
pleasure
pocket
police
pollution
railway
recess
reward
route
scene
scent
squirrel
stranger
suit
sweater
temper
territory
texture
thread
treatment
veil
vein
volcano
wealth
weather
wilderness
wren
wrist
writer
black
blue
brown
gray
green
orange
pink
purple
red
white
yellow
I believe you can verb a noun
It is as adjective as a noun
We verb
There is a noun between my noun
The noun was colour and it was very adjective
I verb , verb , verb
but it is still adjective and adjective
how does a noun verb to a noun ?
You verb steadier, but not to the noun
The noun verb all the time
It is as adjective as a noun sometimes
It is like a noun
It is a noun
The adjective noun is very adjective
and a noun is good for verb
not just on noun
I can't seem to verb
It is quite adjective
Like the noun
When I verb - I was adjective
It was adjective
Once, You verb over me as I verb
How adjective I was
My noun verb in the noun
My noun has been put away like adjective noun
I verb under my noun
I am wound like the noun of a noun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment