<html><body>
<DIV>>>The only "hitch" I see is how one tells that an initial <BR>>>consonant is a vowel sound or not. (honor vs home)?<BR></DIV>
<DIV>The above is exactly what I was thinking about, theres no way I could think of besides creating a dict for the few thousand English words that have this trait. Then run a search against the dict (the one for words like honor), then something like if the words on this list then just add ay to the end of the word and jump to the next word in the sequence. And if the word's not on that list then just following the regular pig latin rules.</DIV>
<DIV> </DIV>
<DIV>I apologize if what I'm saying doesn't make too much sense. I've been teaching myself python for all of 3 weeks. Its been long days and even longer nights of pure confusion at some times...but only because I NEED to know everything I can. Imaginary numbers blew my mind lol.</DIV>
<DIV> </DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">-------------- Original message -------------- <BR>From: Bob Gailer <bgailer@alum.rpi.edu> <BR><BR>> HouseScript@comcast.net wrote: <BR>> > Alan Gilfoy wrote: <BR>> > <BR>> > > Is there a way in Python to separate a string into its component words. <BR>> > you could do something like this: <BR>> > >>> x = Is there a way in Python to seperate a string into its <BR>> > compontent words. <BR>> > >>> x.split() <BR>> > that would yield: <BR>> > ['Is', 'there', 'a', 'way', 'in', 'Python', 'to', 'separate', 'a', <BR>> > 'string', 'into', 'its', 'component', 'words.'] <BR>> > As far as teh translating to pig latin.....well I honestly don't know. <BR>> From Wikipedia, the rules are: <BR>> <BR>> 1. For words that begin with consonant <BR>> <HTTP: Consonant wiki en.wikipedia.org>sounds, move the init
ial <BR>> consonant or consonant cluster <BR>> <HTTP: wiki en.wikipedia.org Consonant_cluster>to the end of the <BR>> word and add "ay." Examples: <BR>> * fatso → atso-fay <BR>> * button → /utton-bay/ <BR>> * star → /ar-stay/ <BR>> * three → /ee-thray/ <BR>> * question → /estion-quay/ <BR>> 2. For words that begin with vowel <BR>> <HTTP: wiki en.wikipedia.org Vowel>sounds (including silent <BR>> consonants <HTTP: wiki en.wikipedia.org Silent_letter>), simply <BR>> add the syllable "ay" to the end of the word. <BR>> * eagle → /eagle-ay/ <BR>> * America → /America-ay/ <BR>> * honor → /honor-ay/ <BR>> <BR>> Seems pretty straightforward to translate to Python (or any other <BR>> language). The only "hitch" I see is how one tells that an initial <BR>> consonant is a vowel sound or not. (honor vs home)? <BR>> <BR>> opehay isthay elphay <BR>> <BR>> -- <BR>> Bob Gailer <BR>> 510-978-4454 <BR>> </B
LOCKQUOTE></body></html>