Just when you think you’ve seen everything, I present to you…
The Pig Latin Translator
You may or may not have heard of this strange language before, in fact, it’s not even really a proper language it’s more of a code. People used to learn Pig Latin so they could send secret messages to each other and so that if anyone else read it, they’d think it was gobbledygook. Also, it is quite fun to learn and if you want to learn it yourself, just search Pig Latin, there are quite a few tutorials out there.
What this does is you type a sentence, phrase or even just a word, and it’ll translate into Pig Latin for you. Simple as that.
Functionality:
Boring alert
First, it takes in the user input and reads the first word. Then it checks for the first vowel (if there is one) and splits the word into two. Next, it moves the first half over to the other side so currently, an input of hello would look like elloh right now. Finally, it adds ay
to the end of the word which would create ellohay. However, if it doesn’t find a vowel in the word or the word starts with a vowel, it’ll just add ay
without moving anything, so eat would just become eatay. It repeats this process until it’s gone through every word, then returns the result. I hope this made some sense.
TL;DR: Don’t be lazy read the whole thing.
Future plans:
Although this is just a small side project, I might add some of the following things in the future:
- Proper support for punctuation, for example, if you put in hello world! it would output as ellohay orld!way.
- Opposite translating, translating from Pig Latin back to English.
- Option to choose whether dashes are visible or not to make it easier to understand the language, e.g. ig-pay instead of igpay. Added
- Understanding Pig Latin menu - tutorial on how to learn Pig Latin - it’s easy as long as you know English.
Thanks for taking the time to read over my post, I hope you enjoy it and please leave any constructive criticism below.
Resources:
Test place: (Uncopylocked) Pig Latin Translator - Roblox
From the toolbox: Pig Latin Translator - Roblox
Update Log
- 2022-09-03T17:51:00Z: It now attempts to translate the word if it only contains alphabetical letters, else it just leaves it as is. Thanks to ProBaturay for pointing this out.
- 2022-09-04T09:01:00Z: Option for dashes to be visible to make it easier to understand/read.