The Name Game
The Name Game
You are encouraged to solve this task according to the task description, using any language you may know.
You are encouraged to solve this task according to the task description, using any language you may know.
Write a program that accepts a name as input and outputs the lyrics to the Shirley Ellis song "The Name Game"
Using the name Katie as an example, the song follows this pattern:
Katie, Katie, bo-batie, Bonana-fanna fo-fatie Fee fi mo-matie Katie!
A verse can be created for any name, with X as the name and Y as the name without the first consonant sound (if it begins with a consonant), as follows:
(X), (X), bo-b (Y) Bonana-fanna fo-f (Y) Fee fi mo-m (Y) (X)!
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 "bonana fanna fo-red"; Marsha becomes "fee fi mo-arsha"