I created a Pig Latin Translator module that translates a string into Pig Latin and is capable of translating Pig Latin back into the native language. You can check out the web app here and the source code here.
Basically, the Pig Latin system used here works as follows:
You take the first letter of a word (e.g. Hello = H) and use the last letters (e.g. Hello = ello) and add ‘ay’ to the first letter (e.g. Hello = Ello hay). Words that start with a vowel (A, E, I, O, U) simply have “ay” appended to the end of the word. Examples are:
- “eat” → “eatay”
- “omelet” → “omeletay”
- “are” → “areay”
Words that start with a consonant have all consonant letters up to the first vowel moved to the end of the word (as opposed to just the first consonant letter), and “-ay” is appended. -(‘Y’ is counted as a vowel in this context). Examples are:
- “pig” → “ig-pay”
- “banana” → “anana-bay”
- “trash” → “ash-tray”
- “happy” → “appy-hay”
- “duck” → “uck-day”
- “glove” → “ove-glay”
Follow Joe Karlsson on Social
- Twitter – https://twitter.com/JoeKarlsson1
- TikTok – https://www.tiktok.com/@joekarlsson
- GitHub – https://github.com/JoeKarlsson
- YouTube – https://www.youtube.com/c/JoeKarlsson
- Twitch – https://www.twitch.tv/joe_karlsson
- Medium – https://medium.com/@joekarlsson
- LinkedIn – https://www.linkedin.com/in/joekarlsson/
- Reddit – www.reddit.com/user/joekarlsson
- Instagram – https://www.instagram.com/joekarlsson/
Want to Learn More About Joe Karlsson?