Last active
December 12, 2015 08:59
-
-
Save tippenein/4748404 to your computer and use it in GitHub Desktop.
alex jones sensationalist nonsense generator
This file contains 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
#!/usr/bin/env python | |
import random | |
def makeSentence(part1, part2, part3, n=10): | |
"""return n random sentences""" | |
#convert to lists | |
p1 = part1.split('\n') | |
p2 = part2.split('\n') | |
p3 = part3.split('\n') | |
#shuffle the lists | |
random.shuffle(p1) | |
random.shuffle(p2) | |
random.shuffle(p3) | |
#concatinate the sentences | |
sentence = [] | |
for k in range(n): | |
try: | |
s = p1[k] + ' ' + p2[k] + ' ' + p3[k] | |
s = s.capitalize() + '.' | |
sentence.append(s) | |
except IndexError: | |
break | |
return sentence | |
# ------------------------------------------------------------------- # | |
# ------------------------------------------------------------------- # | |
# first part of a sentence (subject) | |
#----------------------------------------------- | |
part1 = """\ | |
The pope | |
The Military Industrial Complex | |
FEMA | |
HAARP | |
Flouride | |
Chemtrails | |
9/11""" | |
#----------------------------------------------- | |
# (action) | |
part2 = """\ | |
taking away | |
banned | |
censored | |
exposed""" | |
#----------------------------------------------- | |
# (object) | |
part3 = """\ | |
Weaponized Babboons | |
your Freedom | |
your guns | |
your future""" | |
if __name__ == '__main__': | |
for nonsense in makeSentence(part1, part2, part3): | |
print nonsense.upper() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment