An Intro to
Programming
with Python

Fall 2006
course
navigation

oct 13

questions

openglopish

English: To speak Opish is to know Opish. Openglopish: Topo spopeak Opopopish opis topo knopow Opopopish.
The rule is "Insert the syllable 'op' before the vowel cluster in each syllable."
This rule is a bit hard to automate, since figuring out what's a syllable and what isn't is tricky - for example, I think that 'are' turns into 'opare', since it only has one syllable.
So let's instead do our own version, which inserts 'op' before every consecutive string of vowels. Thus 'are' becomes 'oparope' and 'too' becomes 'topoo'.
Let's also try to do the right thing with capitals, turning "Alex' into 'Opalopex'.
Here are some of the sub-tasks to think about.
Syntax reminders :


http://cs.marlboro.edu/ courses/ fall2006/python/ notes/ oct_13
last modified Friday October 13 2006 11:25 am EDT

attachments [paper clip]

     name last modified size
   oppish.py Oct 13 2006 10:24 am 1.85kB    oppish_2.py Oct 13 2006 10:24 am 1.28kB [TXT]oppish_in_class.txt Oct 13 2006 11:25 am 1.12kB