A script for names like hayl and serz


Results 1 to 11 of 11

Thread: A script for names like hayl and serz

  1. #1
    Join Date
    Feb 2003
    Location
    USA
    Posts
    458

    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)
    . : My Blog : : System specs (scroll down) : : Screenshots : .

    "The world is like a giant puzzle; it's always easiest to fit where you belong."

  2. #2
    Join Date
    Dec 1999
    Location
    Fargo, ND
    Posts
    1,816
    ***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!

  3. #3
    Join Date
    Feb 2003
    Location
    USA
    Posts
    458
    ***pouts***
    . : My Blog : : System specs (scroll down) : : Screenshots : .

    "The world is like a giant puzzle; it's always easiest to fit where you belong."

  4. #4
    Join Date
    Dec 1999
    Location
    Fargo, ND
    Posts
    1,816
    Sorry, didn't see the conditions.
    Knute

    You live, you die, enjoy the interval!

  5. #5
    Join Date
    Jul 2002
    Location
    Vladivostok, Russia
    Posts
    9,054
    Nice script....Now if I can only find a name I like. ..zump???
    "I was pulled over for speeding today. The officer said, "Don't you know
    the speed limit is 55 miles an hour?" And I said, "Yes, but I wasn't going
    to be out that long."

    How To Ask Questions The Smart Way
    COME VISIT ME IN RUSSIA NOW!!

  6. #6
    Join Date
    Feb 2003
    Location
    USA
    Posts
    458
    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.
    . : My Blog : : System specs (scroll down) : : Screenshots : .

    "The world is like a giant puzzle; it's always easiest to fit where you belong."

  7. #7
    Join Date
    Feb 2003
    Location
    USA
    Posts
    458
    haha, I just came up with "pork"!
    . : My Blog : : System specs (scroll down) : : Screenshots : .

    "The world is like a giant puzzle; it's always easiest to fit where you belong."

  8. #8
    Join Date
    Jul 2002
    Location
    43.46N 83.52W
    Posts
    982

    Unhappy

    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

  9. #9
    Join Date
    Nov 2002
    Location
    Michigan
    Posts
    539
    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

  10. #10
    Join Date
    Oct 2002
    Posts
    204
    'sord'

    Interesting. I still like my username though.
    Have you ever thought that while you're killing time, time is returning the favor?

  11. #11
    Join Date
    May 2003
    Location
    742 Evergreen Terrace
    Posts
    221

    [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
  •