Skip to content

Commit 577e3ea

Browse files
navarrorcrpottsoh
authored andcommitted
pig-latin: improve documentation (#1171)
* add more rules to the pig latin exercise to help make it clearer * made suggested updates to rules * apply proposed changes to clarify the rules
1 parent 3083996 commit 577e3ea

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

exercises/pig-latin/description.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ confusing. It obeys a few simple rules (below), but when it's spoken
55
quickly it's really difficult for non-children (and non-native speakers)
66
to understand.
77

8-
- **Rule 1**: If a word begins with a vowel sound, add an "ay" sound to
9-
the end of the word.
10-
- **Rule 2**: If a word begins with a consonant sound, move it to the
11-
end of the word, and then add an "ay" sound to the end of the word.
8+
- **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").
9+
- **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").
10+
- **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").
11+
- **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").
1212

1313
There are a few more rules for edge cases, and there are regional
1414
variants too.

0 commit comments

Comments
 (0)