04-16-2011, 10:45 PM
(This post was last modified: 04-16-2011, 10:47 PM by AceInfinity.)
(04-16-2011, 10:32 PM)KoBE Wrote: As far as I know there isn't 'proper' pig latin. The hypen definitely makes it easier to convert back to English though. And as far as words with no vowels.. if it doesn't have a vowel, then it isn't a word right? Atleast that's what I was always taught. That's why 'y' is considered a vowel sometimes.
Actually no "Crwth" is actually a word (English), it's a Greek stringed instrument. It's a very uncommon word for the english definition though. And I actually started to think that it was impossible to convert back to English without the hyphen.... After I did ALL of the code for converting the English to piglatin and making all of my functions. Mostly because if you have a word like "great"
That would be "eatgray" without hyphens, but how do you know back to English that it's not "tgrea". I know it would seem logical that it isn't, but you can't really write a function for that to determine it. Whereas in your code, you had it take the text in between the "-" and the "ay" to bring it back to the front, and you just took away those extra letters and the dash.