Try giving our doubledutch program a full name like “John Smith.” What happens to the space?
What will be an ideal response?
The space is treated as a consonant, such that you get a response like:
JuJohuhnun u SuSmumituthuh
What if you include punctuation like periods or hyphens?
Anything that is not a vowel is treated as a consonant, therefore periods and hyphens are
also treated as consonants. Therefore you get responses like:
```
>>> doubledutch("Mr. John Brown-Smith")
MuMrur.u. u JuJohuhnun u BuBrurowuwnun-u-SuSmumituthuh
```
How could you create more full featured doubledutch that gets around these problems? There are a couple of ways to get around these problems. One way is to simply check first if there are any special characters in the string. Otherwise, one could explicitly list all consonants, instead of simply checking if characters are not vowels.
You might also like to view...
Removing ________ is a good organizational strategy that all database users should practice
Fill in the blank(s) with correct word
The semantic search engine Alpha infers meaning from a user's search query.
Answer the following statement true (T) or false (F)