Created
November 1, 2012 05:30
-
-
Save tsbertalan/3992021 to your computer and use it in GitHub Desktop.
Generate a random chumhandle!
This file contains hidden or 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 | |
#with open('/home/tsbertalan/bin/wordlists/nounsb.txt') as f: | |
with open('/home/tsbertalan/bin/wordlists/nouns/91K nouns.txt') as f: | |
nouns = f.read().splitlines() | |
#with open('/home/tsbertalan/bin/wordlists/adjectivesb.txt') as f: | |
with open('/home/tsbertalan/bin/wordlists/adjectives/28K adjectives.txt') as f: | |
adjs = f.read().splitlines() | |
nouns = list(set(nouns)) | |
adjs = list(set(adjs)) | |
from random import choice | |
noun = choice(nouns) | |
adj = choice(adjs) | |
adj = adj.strip().lower().replace("-","").replace(" ","") | |
noun = noun.strip().lower().title().replace("-","").replace(" ","") | |
print adj+noun |
If you're looking for a program with which to use these, see https://github.com/kiooeht/pesterchum, or http://www.mspaforums.com/showthread.php?43922-PESTERCHUM-3.41-Updated-Pesterchum!-New-Thread for cross-platform install instructions.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Get wordlists from http://www.ashley-bovan.co.uk/words/partsofspeech.html