# Light-weight generative fiction, spontaneously generated in the vacuum
# http://phpnuke.org/modules.php?name=News&file=print&sid=1164
# http://tymestl.org/oldwiki/GenBy
# http://www.socsurveys.org/
# http://tymestl.org/oldwiki/ComBy
adj = 'Pretty:Party:Rocker:Suicide:l33t:Fuzzy:Danger:Clever'.split(':')
nouns = 'Girl:Dude:Killer:Jen:Dan:Mike:Jeff:Sean:Pants:Cloud:Fairy:Princess'.split(':')
greets = 'Hey :Hi :Dude, :FYI, '.split(':')
evaluations = 'interesting:intriguing:clever little:boring:trivial'.split(':')
subjects = 'article:blog:idea:ideas:website:site'.split(':')
suggestions = 'reminds me of:have you considered:do you think you could credit the originator?:you should collaborate with:you should hook up with:I saw this earlier from:this has already been done! check out'.split(':')
alternates = ['http://geeq.at/', 'http://xkcd.com/', 'http://www.qwantz.com/', 'http://julian.togelius.com/', 'http://www.philhassey.com/']
alternatess = 'this guy:these guys:someone with some real insight:someone else'.split(':')
def comby():
from random import choice, randint
comby = {}
comby['author'] = '%s%s%s' % (choice(adj), choice(nouns), str(randint(100,999)))
comby['summary'] = '%s%s %s, %s %s' % \
(choice(greets), choice(evaluations), choice(subjects), choice(suggestions),
choice(alternates), choice(alternatess))
return comby
if __name__ == '__main__':
print comby()