04-16-2011, 10:25 PM
(This post was last modified: 04-16-2011, 10:27 PM by AceInfinity.)
(04-16-2011, 05:38 PM)KoBE Wrote: Sweet. Can't wait to see how you do it.
I started out by using a string array for the values of the vowels as a,e,i,o,u, and y since you added that as well. But I forgot to use and append the ay and way with the "-" which messed things up when I tried to convert back to english from piglatin. But I had to use a similar loop for searching and adding the code to each word by splitting them and putting them back together in the converted output text field. I noticed on some online piglatin converters that if there was no vowels in the word, that it would still convert it, but it would only move the first word to the end and apply "ay" to it. So thats what i'm trying to work on right now, unless that is improper piglatin, or I give up on going back through all of my code.
I actually ended up deleting a lot of my code and re-doing it, but I did use a method of trimming characters off from the end, by using if then statements to determine whether it was a -way or -ay suffix that I would need to remove.