-
A script for names like hayl and serz
Recently I was looking at hayl and serz' names. They're nice because they're unique, easy to remember, and short. So, as I was bored, frustrated, and in need of a refocus, I wrote this little Python script to generate four-letter hard-consonant+vowel+soft-consonant+hard-consonant names.
Code:
#!/usr/bin/env python
from random import choice
# Vowels
vowels = ['a','e','i','o','u']
# Beginning hard consonants
startcons = ['b','c','d','g','j','k','m','n','p','q','t','v','x','z']
# Ending hard consonoants
endcons = ['b','c','d','g','k','m','n','p','t','x','z']
# Soft Consonants -- note v and z are listed twice
softcons = ['f','h','l','r','s','v','w','z']
print choice(startcons) + choice(vowels) + choice(softcons) + choice(endcons)
-
***pouts***
[edit] Oh, I see now, 4 letter names! Mine's 5 so that's ok. Though, now the debates going to be about whether to pronounce the K or not!
LOL[/edit]
Knute
You live, you die, enjoy the interval!
-
-
Sorry, didn't see the conditions.
Knute
You live, you die, enjoy the interval!
-
Nice script....Now if I can only find a name I like. ..zump???
-
Yeah, I suppose you could make it repeat about ten times... it's interesting to see how many just sound neat and others make me think, "How dumb!"
Fun to play with. You could potentially also set it for other combinations, like hard-consanant+vowel+soft-consonant+vowel+hard-consonant.
And, of course, add "kn" to the list of starting vowels.
-
haha, I just came up with "pork"!
-
Nihon-go ga nai des'ka?
Code:
#!/usr/bin/env python
from random import choice
# Vowels
vowels = ['a','i','u','e','o','ai','ei','ou','au']
# Beginning hard syllables
startsyls = ['ba','bi','bu','be','bo','bya','byu','byo','da','cha','chi','chu','cho','de','do','ga','gi','gu','ge','go','gya','gyu','gyo','ja','ji','ju','je','jo','ka','ki','ku','ke','ko','kya','kyu','kyo','ma','mi','mu','me','mo','mya','myu','myo','na','ni','nu','ne','no','nya','nyu','nyo','pa','pi','pu','pe','po','pya','pyu','pyo','ta','tsu','te','to','za','zu','ze','zo']
# Ending hard syllables same as above
#
# End Consonnants (only n, m, and s [su])
endcons = ['m','n','s']
print choice(startsyls) + choice(vowels) + choice(startsyls) + choice(endcons)
Rippa-na!
banzai "ango saru" kai
"Mind you, I got to do the licking this time, so it wasn't too bad."
- Jane Horrocks, The Guardian, 1995
-
I got 'pest' on my first run.
Linux 2.6.9-gt (4K Stacks) on Arch Linux 0.7
"I refuse to have a battle of wits with an unarmed person."
http://www.yupadog.com
-
'sord'
Interesting. I still like my username though.
Have you ever thought that while you're killing time, time is returning the favor?
-
[yes, thread is bumped, thought it was better than opening a new one]
[Nevermind, i figured out and fixed the problem myself !
Pretty proud
it just ended up that i didn't copy the spacing between the lines correctly when i originally copied it from the original post to gedit ]
thanks,
keyshawn
Last edited by keyshawn; 11-24-2004 at 09:29 PM.
<a href="http://www.justlinux.com/forum/showthread.php?s=&threadid=131047">JustLinux's Newbie Reading Guide</a>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|