After seeing the name "Shanyn", I came up with this idea. Lots of names that have been around for years are suddenly being jazzed up with funky spellings. But it's hard to figure out the right way to (mis)spell a name. So why not turn to Perl?

Below are my rules for getting the Hip New Spelling for a name. I'll use a conveniently-named monk as an example.

Given a name in a scalar $n, convert to the new spelling in as few keystrokes as possible.

---
A fair fight is a sign of poor planning.

Replies are listed 'Best First'.
Re: Golf: New spellings for old names
by Anonymous Monk on Nov 21, 2003 at 16:32 UTC

    Just to get the ball rolling at 32 chars:

    #2345678901234567890123456789012 $n=~y/a-zA-Z//s;$n=~y/yaeiou/iy/

      27:

      y/A-z//s,y/yaeiou/iy/ for$n #2345678 1 2345678 2 234567

                      - tye

        A tie with tye?

        #23456789012345678901234567 $n=~y/yaeiouA-z/iyyyyyA-z/s