Re: igPay atinLay, second pass
Re: igPay atinLay, second pass
- Subject: Re: igPay atinLay, second pass
- From: Michelle Steiner <email@hidden>
- Date: Wed, 29 Sep 2004 08:57:17 -0700
On Sep 29, 2004, at 5:35 AM, Gnarlodious wrote:
eryVay levercay. owNay owhay aboutyay ayay criptsay otay ranslatetay
iglatinPay otay Englishyay?
Here is the first pass; it does not take diphthongs into account.
Also, as with the Pig Latin translator, it strips punctuation.
set igpay to "eryVay levercay. owNay owhay aboutyay ayay criptsay otay
ranslatetay iglatinPay otay Englishyay?"
set wordlist to the words of igpay
set the vowels to {"a", "e", "i", "o", "u"}
set the plain_English_list to {}
repeat with this_word in wordlist
set temp to text 1 through -3 of this_word
if character -1 of temp is "y" and character 1 of temp is in the
vowels then
set temp to text 1 through -2 of temp
else
set temp to (character -1 of temp) & (text 1 through -2 of temp)
end if
copy temp to the end of plain_English_list
end repeat
set text item delimiters to " "
set Plain_English to plain_English_list as text
set text item delimiters to ""
display dialog Plain_English
--
Rock is dead.
Long Live Paper and Scissors!
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden