#!/usr/bin/python import random, sys odds = 9 skipwords = ['of','that','this','by','and','or','to','the','a','on','them'] lvowels = 'aeiouy' uvowels = 'AEIOUY' lconso = 'bcdfghjklmnpqrstvwxyz' uconso = lconso.upper() lines = sys.stdin.readlines() for line in lines: newline = "" for word in line.split(" "): # this was a loop on the words in the line before ctr = 0 if word.strip() == "": continue # should not happen if skipwords.count(word.strip().lower()) == 0: # so we wont use this either #if (1): # just go for letter in word: # used to say letter in word fuckingWord = list(word) word += " " if random.choice(range(odds)) == 1: pang = random.choice(range(30)) # in like joe if pang < 13: if letter.lower() == letter and lconso.__contains__(letter): fuckingWord[ctr] = random.choice(lconso) if letter.upper() == letter and uconso.__contains__(letter): fuckingWord[ctr] = random.choice(uconso) if letter.lower() == letter and lvowels.__contains__(letter): fuckingWord[ctr] = random.choice(lvowels) if letter.upper() == letter and uvowels.__contains__(letter): fuckingWord[ctr] = random.choice(uvowels) elif pang < 28: if random.choice(range(2)) == 0: if letter.lower() == letter and lconso.__contains__(letter): fuckingWord[ctr] = (lconso[lconso.index(letter)-1]) if letter.upper() == letter and uconso.__contains__(letter): fuckingWord[ctr] = (uconso[uconso.index(letter)-1]) if letter.lower() == letter and lvowels.__contains__(letter): fuckingWord[ctr] = (lvowels[lvowels.index(letter)-1]) if letter.upper() == letter and uvowels.__contains__(letter): fuckingWord[ctr] = (uvowels[uvowels.index(letter)-1]) else: if letter.lower() == letter and lconso.__contains__(letter): fuckingWord[ctr] = (lconso[(lconso.index(letter)+1)%len(lconso)]) if letter.upper() == letter and uconso.__contains__(letter): fuckingWord[ctr] = (uconso[(uconso.index(letter)+1)%len(uconso)]) if letter.lower() == letter and lvowels.__contains__(letter): fuckingWord[ctr] = (lvowels[(lvowels.index(letter)+1)%len(lvowels)]) if letter.upper() == letter and uvowels.__contains__(letter): fuckingWord[ctr] = (uvowels[(uvowels.index(letter)+1)%len(uvowels)]) else: fuckingWord[ctr] = random.choice(list('0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ')) ctr += 1 word = "".join(fuckingWord) newline += word+" " print newline.strip()