generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Inishedfay ithway ymay ythonpay igpay atinlay anslatortray!

Previous Thread :: Next Thread 
Adam335 is not online. Adam335
Joined: 19 Feb 2011
Total Posts: 21464
12 Jun 2013 10:19 PM
Check out the code if you want: pastebin/nBhRQyE6

It will translate any English word into Pig Latin.
Report Abuse
1waffle1 is not online. 1waffle1
Joined: 16 Oct 2007
Total Posts: 16381
12 Jun 2013 10:21 PM
I don't know Python, but that really doesn't look like it works perfectly.

forum -> orumfay
tree -> eetray
egg -> eggway

is how it should work.
Report Abuse
Adam335 is not online. Adam335
Joined: 19 Feb 2011
Total Posts: 21464
12 Jun 2013 11:18 PM
Waffle, allow me to describe Pig Latin

If the first letter of the word is a vowel, 'ay' is added to the end of that word.

If the first letter of the word is a consonant, 'ay' is added to the end and the first letter is switched to the end of the word, after 'ay'


Therefore, it would be:

Forum -> 'orumayf'
Tree -> 'reeayt'
egg -> 'e-g-g-a-y'
Report Abuse
Adam335 is not online. Adam335
Joined: 19 Feb 2011
Total Posts: 21464
12 Jun 2013 11:19 PM
Ignore the dashes in the result of "egg", I did that to pass the filter. I got blocked when I tried posting without then, apparently.
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
12 Jun 2013 11:20 PM
No, the first letter is added to the end and THEN -ay is added.
Report Abuse
Adam335 is not online. Adam335
Joined: 19 Feb 2011
Total Posts: 21464
12 Jun 2013 11:20 PM
them*

Apologies, I am on a mobile device.
Report Abuse
Adam335 is not online. Adam335
Joined: 19 Feb 2011
Total Posts: 21464
12 Jun 2013 11:22 PM
@king

It is possible I mixed that up, but I'm not quite sure you are correct.
Report Abuse
Adam335 is not online. Adam335
Joined: 19 Feb 2011
Total Posts: 21464
12 Jun 2013 11:25 PM
Oh, wait, king's right. My bad.

It would instead be:


forum -> orumfay
tree -> reetay
Report Abuse
Parthax is not online. Parthax
Joined: 27 Apr 2011
Total Posts: 6941
13 Jun 2013 12:06 AM
ppppssshhh
who needs pig Latin when you have actual latin
Report Abuse
abaw7 is not online. abaw7
Joined: 23 Oct 2009
Total Posts: 745
13 Jun 2013 12:09 AM
Who needs Latin unless you plan to make your own language
Report Abuse
Parthax is not online. Parthax
Joined: 27 Apr 2011
Total Posts: 6941
13 Jun 2013 12:13 AM
don't tell anyone @ abaw
Report Abuse
Waffle3z is not online. Waffle3z
Joined: 15 Apr 2011
Total Posts: 266
13 Jun 2013 09:38 AM
tree -> eetray, not reetay
Report Abuse
Adam335 is not online. Adam335
Joined: 19 Feb 2011
Total Posts: 21464
13 Jun 2013 09:59 AM
No, waffle.

If the word starts with a consonant, it is put at the end of the word along with "ay".

It would be tree -> reetay.
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
13 Jun 2013 10:03 AM
Are we seriously discussing a silly made up language.
Report Abuse
Adam335 is not online. Adam335
Joined: 19 Feb 2011
Total Posts: 21464
13 Jun 2013 10:06 AM
@thedestroyer115

It's just a small Python project I thought I would make.
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
13 Jun 2013 10:12 AM
Actually, waffle is right. The article says the first consonant *cluster* is added to the end.
Report Abuse
Adam335 is not online. Adam335
Joined: 19 Feb 2011
Total Posts: 21464
13 Jun 2013 10:12 AM
Oh, really?
Report Abuse
SN0X is not online. SN0X
Joined: 24 Oct 2011
Total Posts: 7277
13 Jun 2013 10:25 AM
YARGHMANREALLYOHYARAGHSREALLYGH.
Report Abuse
Fattycat17 is not online. Fattycat17
Joined: 26 Jun 2011
Total Posts: 1527
13 Jun 2013 11:10 AM
Well done SN0X
Report Abuse
Radioaktiivinen is not online. Radioaktiivinen
Joined: 25 Apr 2009
Total Posts: 18629
13 Jun 2013 11:28 AM
^
Report Abuse
1waffle1 is not online. 1waffle1
Joined: 16 Oct 2007
Total Posts: 16381
13 Jun 2013 03:08 PM
I wrote a translator in Lua.

    s="This sentence is going to be translated into piglatin!"
    s=s:gsub("(%w)([%w']*)",function(a,b) if a:lower():find('[aeiou]')then return a..b..'way'else return (a~=a:lower()and b:sub(1,1):upper()or b:sub(1,1))..b:sub(2)..a:lower()..'ay' end end)
    print(s)

Cases such as "ithway" are confusing.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image