in reply to The Name Game and Golf

Your implementation gives a different result from the example on the website you linked to for the input Micah. Please debug it.

Replies are listed 'Best First'.
Re^2: The Name Game and Golf
by Cody Fendant (Hermit) on Apr 19, 2010 at 11:22 UTC
    Actually, you're right.

    But it says "And if the name starts with a b, f, or m, that sound simply is not repeated. (For example: Billy becomes "Billy Billy bo-illy"; Fred becomes "banana fana fo-red"; Marsha becomes "fee fi mo-arsha".)" so, what have I not understood?
Re^2: The Name Game and Golf
by Cody Fendant (Hermit) on Apr 19, 2010 at 11:33 UTC
    Oh wait, I get it now.

    What it means is, if the name starts with a b, f, or m, that consonant is not added if it would be doubled, e.g. Billy becomes "Billy, Billy, bo-illy, Banana-fana fo-filly, Fee-fi-mo-milly, Billy!" -- the b is dropped only at the point where it would be prefaced with another b, but not at the point where it would be prefaced with an f or an m.

    Neither of the two solutions below follows this rule, right?