Skip to content

Instantly share code, notes, and snippets.

@tsbertalan
Created November 1, 2012 05:30
Show Gist options
  • Save tsbertalan/3992021 to your computer and use it in GitHub Desktop.
Save tsbertalan/3992021 to your computer and use it in GitHub Desktop.
Generate a random chumhandle!
#!/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
@tsbertalan
Copy link
Author

Obviously, you have to insert your own paths to your wordlists.

@tsbertalan
Copy link
Author

@tsbertalan
Copy link
Author

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