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