Don't know why you would need this...
Currently, symbols are not corrected (Code wasn't working).
Don't know why you would need this...
Currently, symbols are not corrected (Code wasn't working).
Nice :3
Igpay Atinlay siay unfay otay peaksay niay.
Pig Latin Is Nice To Speak In.
It is fun instead of nice, but yes :3
UPDATE: Added capitalization!
"Ellohay romfay hetay theroay iiiiiiiiidesay!" Upersay xcitedeay orfay hetay ewnay Deleaay lbumaay.
Uh...
Also,
can be simplified to
"ht my ccomradecomrade"
Yep, that's an issue.
histay sn'tiay orkingway.
"W f pphoton ttorpedoes!torpedoes"
@helicoptur and @sir_kitten2, did you read the comment?
Yes but my brain forgot about it.
um...
it should say "egolay atmanbay" (or "ego-lay atman-bay")
Yeah, it doesnt work well.
You're too fond of the SPLIT block. This is at its heart a job for recursion:
Now you can add frills for individual words:
Finally, you can handle multiple words this way:
The red SENTENCE block is used here to convert a string of words into a list of words. (It can do other things, too.) It takes care of leading, trailing, and/or multiple spaces correctly.
P.S. Here it is.
P.P.S. You are of the "yay" sect; I am of the "way" sect. ;~)
I'm of the "ay" sect.
also, here's my code, very messy though.
So am I, in practice, because it avoids hairing up the code unnecessarily. :~)
[Dons teacher hat.] Your code is messy for two reasons:
You don't instinctively create well-named helper procedures to make your code self-documenting. In my version, for example, I didn't even have to show the code for VOWEL?, CAPITALIZE, ALL BUT FIRST LETTER OF, etc., to make the inner workings of the definitions I did show apparent.
You don't see this as a fundamentally recursive problem. I don't know whether that's because you're iffy on recursion in general or you've just been poisoned too long by a looping perspective on pig Latin in particular. When teaching younger kids I just show what I've here called SIMPLE PIG LATIN as the complete solution.
oh, no, I actually thought about it after I made my code. I would've used recursion if I didn't start making it a map block.
(oh wait, I forgot to convert the list to text, lol)
that may be true
this is actually my first time making a functional pig latin translator (I have an unfinished one on scratch, made before I knew about snap)
It says “lol” is “lay” but “lol” is actually “ollay”