December 2018
Intermediate to advanced
196 pages
4h 48m
English
Pig Latin[5] is a silly pseudolanguage based on English. Translating an English sentence into Pig Latin is simple. Split each sentence into words and put each word through the following modifications:
Remove the first letter of each word: “Pig Latin” becomes “ig atin” (exception: ignore single-letter words)
Add the first letter removed in the previous step plus ‘ay’ to the end of the word: “ig-pay atin-lay”
Alas, nothing is ever that simple, and there’s an edge case we need to worry about: single-letter words (specifically, a and I). To keep it simple, in the event of a single-letter word, our code will let it be and return the word unchanged.
Advanced Pig Latin | |
|---|---|
|
Like any natural language, there are ... | |
Read now
Unlock full access