#!/usr/bin/python """Seen trolling on #bitcoin: 19:47 < cheshingham> $op ------->> You are as atrocious as a deplorable ton of deformed corrupt repulsive donkey shit 19:47 < cheshingham> $op ------->> You are as puny as an inferior dishonorable bunch of corrupt dreadful slug balls 02:22 < loulepps> $op ------->> You are as inferior and spiteful as a decaying insignificant impertinent heap of corrupt revolting rotten rancid snake shit. 14:43 < sniffkin202> $op ------->> You are as vile as an obnoxious clumsy horseload of spiteful ill rat dicks This program attempts to replicate that. """ import random negadjs = '''atrocious deplorable deformed repulsive puny inferior dishonorable dreadful spiteful decaying insignificant impertinent revolting rotten rancid vile obnoxious clumsy ill'''.split() heaps = 'ton bunch heap horseload'.split() critters = 'donkey slug snake rat'.split() possessions = 'shit balls shit. dicks'.split() def commalist(items): if len(items) == 1: return items[0] if len(items) == 2: return ' and '.join(items) return ', '.join(items[:-1] + ['and ' + items[-1]]) def aan(nextword): return 'an ' if nextword[0].lower() in 'aeiou' else 'a ' def insult(): yield 'You are as ' ada = random.sample(negadjs, random.randrange(1, 4)) yield commalist(ada) yield ' as ' adb = random.sample(negadjs, random.randrange(1, 5)) yield aan(adb[0]) + ' '.join(adb) yield ' ' + random.choice(heaps) yield ' of corrupt ' yield ' '.join(random.sample(negadjs, random.randrange(1, 4))) yield ' ' + random.choice(critters) yield ' ' + random.choice(possessions) if __name__ == '__main__': print(''.join(insult()))