
The main thing not handled here is hyphenated words, which should only very rarely be an issue, as I can't think of any that don't start with at leat one syllable. I left handling the punctuation here, as it seemed to be more efficient this way. TxtPig.Text += WordToPigLatin(s.Substring(0, s.Length - 1)) + s.Last() + " " Hello ello) and add 'ay' to the first letter (e.g. What is Pig Latin Pig Lating is a made up language formed by appending the initial consonant to the end of the word and adding a suffix to the end as an additional syllable. Translate Basically, the Pig Latin system used here works as follows: You take the first letter of a word (e.g. Pig Latin Translator Turn English into Pig Latin with this online converter. For anybody who doesn't know the Pig Latin, feel free to look at the README, which explains what Pig.
Piglatin translator how to#
I would really appreciate it if anybody could give suggestions of how to improve the code and make the program more efficient. Since this code only deals with individual words here's a way to call it and fill a textbox: foreach(string s in (" ".ToArray(), _ StringSplitOptions.RemoveEmptyEntries)) Pig Latin Translator A JavaScript tool that translates any language into Pig Latin. Over the last few days I created this Pig Latin Translator just for fun. String lastpart = input.Substring(0, index) + "ay" įirstpart = char.ToUpper(input) + input.Substring(index,length - index) įirstpart = input.Substring(index,length - index) Here's a function that should help: string WordToPigLatin(string input) If the word has punctuation on the end that should be moved to the end of the new word.If the first letter is capitalized the new first letter should be capitalized as well.For instance story becomes orystay not torysay In site translation mode, Yandex.Translate will translate the entire text content. The meanings of individual words come complete with examples of usage, transcription, and the possibility to hear pronunciation.

Pig Latin doesn't just transpose the first consonant, it transposes the first consonant sound. Yandex.Translate is a mobile and web service that translates words, phrases, whole texts, and entire websites from Latin into English.There are a number of things your not considering.
