- The initial consonant cluster moves to the end before the ay suffix.
- The reverse translation handles the exercise’s stated ambiguity; the documented snap/apsnay/naps case is accepted.
- The upgraded application retains translation in both directions.
10.4 Lab
Pig Latin Translator II
Work through the stories in order. Use the acceptance criteria to check each feature, and complete the nested tasks using the specified names, values, and scenarios.
If the word starts with a single consonant, move the first letter to the end of the word and add "ay" to the end. Dog -> ogday If the word starts with a consonant cluster, move the cluster to the end of the word and add "ay" to the end. Snap -> apsnay If the word starts with a vowel add "way" to the end. Eagle -> eagleway
Your existing reverse translator will not be completely accurate. For example, the word snap translated to Pig Latin is "apsnay". "Apsnay" translated back to English with your translator would be "naps". This is okay.
Return to each story and verify its acceptance criteria. Preserve the submission format and destination stated in the activity; a reading, setup guide, lab, video demonstration, and oral final may require different evidence.
Translate initial consonant clusters