This is amazing. Would this be able to translate each word within entire sentences too?
That would be up to you With C2 you can manipulate text any way you like, it's all up to your ability to use it.
[quote:7lfavwnq]I don't think the idea itself is very complicated. The steps to my idea when it translates a word would be:
1. Determine how many letters are in the word
2. Determine the placement of vowels in the word (so if an "a" is the first letter, or the second, or the third, etc)
3. Determine how many vowels there are
4. Translate the word
1-3 are easy and you've seen how to. 4 is up to you because the meaning of 'translate' is what you need it to be.
Just one tip, you could reduce the amount of code significantly if you learn regular express?ons (regex). Look it up in the C2 manual (where you won't learn anything unfortunately) or better, Google 'javascript regex'. My usage of it above is very basic. You can do a lot more sophisticated things with it.
So learn the basic text manipulat?on stuff (left, mid, right, tokenat, etc) and then after that Regex if you feel you want/need to.