Advertisement
TimLu

Daily Mail Headline generator!

Nov 13th, 2017
352
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.59 KB | None | 0 0
  1. #Daily Mail headline generator script
  2. import random
  3. mail_hated_adjectives = ["Islamic", "Left-wing", "Alt-left", "Liberal", "Under-age", "Evil", "Do-gooder"]
  4. mail_loved_adjectives = ["Proud", "Patriotic", "White", "Hard working", "British", "Honest", "Honest, hard working"]
  5. hated_plural_nouns = ["spiders", "arachnids", "Muslims", "vegans", "vegetarians", "students", "leftists", "remoaners", "cyclists", "pacifists", "saboteurs", "single Mums", "Argentinians"]
  6. loved_plural_nouns = ["Christians", "Soliders", "Brits", "Patriots", "Pensioners", "Mums"]
  7.  
  8. create_verbs = ["cause", "create", "make"]
  9. past_tense_negative_verbs=["ruined", "destroyed", "damaged", "left aghast", "shamed"]
  10. negative_verbs = ["ruin", "destroy", "obliterate", "kill", "poison", "damage", "insult", "shame"]
  11. collude_verbs = ["collude", "conspire"]
  12.  
  13. mail_positive_object_nouns = ["Christmas", "Brexit", "Christian", "Beer", "Putin", "Nigel", "Theresa", "Maggie", "Our Maggie", "The memory of our Maggie", "the Iron Lady", "The Queen", "The Royal Family", "Tradition"]
  14. mail_negative_object_nouns= ["The E.U.", "Europe", "Islam", "Foreign", "Communism","soviet","cycling", "Argentinian", "Ebola"]
  15.  
  16.  
  17. def randomEntry(arr):
  18.     return arr[random.randrange(0, len(arr))]
  19.  
  20. def Capify(str):
  21.     return upcase(str[0]) + str[:1]
  22.  
  23. def NegativeObjectVerbPositiveNounHeadline():
  24.     return randomEntry(mail_hated_adjectives) + " " + randomEntry(hated_plural_nouns) + " " + randomEntry(negative_verbs) + " " + randomEntry(mail_positive_object_nouns)
  25.  
  26. def PositiveObjectVerbNegativeNounHeadline():
  27.     return randomEntry(mail_loved_adjectives) + " " + randomEntry(loved_plural_nouns) + " " + randomEntry(past_tense_negative_verbs) + " by " + randomEntry(hated_plural_nouns)
  28.  
  29. def PositiveObjectVerbNegativeNounHeadline():
  30.     return randomEntry(mail_loved_adjectives) + " " + randomEntry(loved_plural_nouns) + " " + randomEntry(past_tense_negative_verbs) + " by " + randomEntry(hated_plural_nouns)
  31.  
  32. def PositiveObjectNegativeVerbNegativeNounHeadline():
  33.     return randomEntry(mail_loved_adjectives) + " " + randomEntry(loved_plural_nouns) + " " + randomEntry(negative_verbs) + " " + randomEntry(hated_plural_nouns)
  34.  
  35. def SuperParanoidHeadline():
  36.     return randomEntry(mail_hated_adjectives) + " " + randomEntry(hated_plural_nouns) + " " + randomEntry(collude_verbs) + " with " + randomEntry(hated_plural_nouns) + " to " + randomEntry(negative_verbs) + " " + randomEntry(mail_positive_object_nouns)
  37.  
  38. print(NegativeObjectVerbPositiveNounHeadline())
  39. print(PositiveObjectVerbNegativeNounHeadline())
  40. print(PositiveObjectNegativeVerbNegativeNounHeadline())
  41. print(SuperParanoidHeadline())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement