Created
September 14, 2018 09:10
-
-
Save BlogBlocks/b5f83ce935a8aa348fd2c703884f5e18 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
Noun = ['baby ','owl ','rat ','hamster ','Blue Bird ','giant ', 'mongoose ', 'snake ','tiger ',\ | |
'leprechaun ','octopus ','frog ','fat old toad ','skinny little spidermonkey ','hipo ','chipmunk ',\ | |
'goose ','rabbit ','platapus ','tiny bird ','bear ','rhinoceros ','cat ','deer ','zebra ',\ | |
'old woman ','cheerleader '] | |
Verb = ['ran with ','jumped over ','ate ','watched ','hugged ','smelled like ','watched ','hugged and kissed ',\ | |
'kissed ','sat on the back of ','ran behind ','threw rocks at ','is feeding ','fell in love with ',\ | |
'introduced me to ','hid from ','kicked at ','tickled ','snuggled ','washed ','chased ',\ | |
'tried to communicate with ','felt sorry for ','gossiped about ','lied to '] | |
Adjective = ['ugly ','fat ','mean ','angry ','smiling ','wierd looking ','tired ','lazy ','stupid ',\ | |
'excited ','happy ','tiny little ','stinky ','beautiful ','dirty old ','cute little ',\ | |
'embarrassed ','greedy ','insane ','smart ','curious '] | |
DirectObject = ['dog ','cat ','rat ','mouse ','skunk ','elephant ', 'earthworm ', 'otter ','dinosaur ',\ | |
'unicorn ','man ','beetle ','rooster ','President ','idiot ','lion ','python ','actor ','moose ', | |
'lizard ','panda bear ', 'turtle ','penguin ','toad ','pony '] | |
def art0(noun): | |
vowels = ['a','e','i','o','u','y','A','E','I','O','U','Y'] | |
article = random.choice(['the ', 'a ']) | |
if article == 'a ' and noun[:1] in vowels: | |
article = "an " | |
return str(article+noun) | |
def SenTence(): | |
noun = art0(random.choice(Noun)) | |
adject = art0(random.choice(Adjective)) | |
TEXT = str(noun+random.choice(Verb)+adject+random.choice(DirectObject)) | |
text = TEXT.replace(' ', ' ')+'.'.capitalize() | |
text = text.capitalize() | |
text = text.replace('president','President') | |
print (text) | |
for x in range(20): | |
SenTence() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment