Rule 3 of this exercism does not seem clear (Rules listed below). When you have a ‘qu’ word that starts with ‘qu’ isn’t that suppose to follow rule 2?
The test case ‘queen’ evaluates to ‘eenquay’. But since ‘queen’ does not have any consonants followed by ‘qu’ shouldn’t that evaluate to ‘ueenqay’ by following rule 2?
Is this a bug or just a clarification issue?
Rules from exercism:
Rule 1: If a word begins with a vowel sound, add an “ay” sound to the end of the word.
Please note that “xr” and “yt” at the beginning of a word make vowel sounds
(e.g. “xray” → “xrayay”, “yttria” → “yttriaay”).
Rule 2: If a word begins with a consonant sound, move it to the end of the word and then add
an “ay” sound to the end of the word. Consonant sounds can be made up of multiple consonants,
a.k.a. a consonant cluster (e.g. “chair” → “airchay”).
Rule 3: If a word starts with a consonant sound followed by “qu”, move it to the end of the word,
and then add an “ay” sound to the end of the word (e.g. “square” → “aresquay”).
Rule 4: If a word contains a “y” after a consonant cluster or as the second letter in a
two letter word it makes a vowel sound (e.g. “rhythm” → “ythmrhay”, “my” → “ymay”).