Then the word is ready to get the << "ay" treatment. #two of pig_latin_word, then the first letter of english_word is made the third character of Check that the user has entered text before performing the translation. 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. #If it is exactly three letters long, the second two characters of english_word are made the first For example, 123 should be left as 123, and should be left as bill . Over the last few days I created this Pig Latin Translator just for fun. #begins with a vowel, it is sent to the << "ay" line unmodified. 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. Convert it into Pig Latin Save result as a text file footballPigLatin.txt. Python script should be able to: Open text file.
Also, you can find an online translator between Pig Latin and English here. #All words have "ay" appended to them in the line just before the return statement. Translate plain-text English(or ACII string) into Pig Latin. Yandex.Translate is a mobile and web service that translates words, phrases, whole texts, and entire websites from Latin into English. You can read about rules of Pig Latin here.
#The main method, it takes a string that is an English word and returns that word in Pig Latin.