diff options
author | Darío Clavijo <daedalus2027@gmail.com> | 2010-10-29 23:36:38 (GMT) |
---|---|---|
committer | Darío Clavijo <daedalus2027@gmail.com> | 2010-10-29 23:36:38 (GMT) |
commit | 93513e0cce391ec441e864b8b7e0e61750726317 (patch) | |
tree | f26bf36001d532bada88779c8b05a5af8a16c093 /data/string/jeringoso | |
parent | 9e556d4a930ff4f56b1503ba342cf288d510d95d (diff) |
xep-08 compliant
Diffstat (limited to 'data/string/jeringoso')
-rw-r--r-- | data/string/jeringoso | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/data/string/jeringoso b/data/string/jeringoso index e6ad0d5..c041a2f 100644 --- a/data/string/jeringoso +++ b/data/string/jeringoso @@ -1,10 +1,21 @@ -text = raw_input("Please imput your text to translate to jeringoso:") +# jeringoso is an inocent spanish way to talk used by kids, +# you need to add an "p" before earch spanish vowel (a,e,i,o,u) and +# the same vowel after the "p" +# then you got a funny way to talk that parents will not understand. +# ref: http://en.wikipedia.org/wiki/Jeringonza + +#first we define the spanish vowels +vowels = ['a','e','i','o','u'] + +#then we ask for a string to make the replacements +text = raw_input("Please input your text to translate to jeringoso:") length = len(text) jeringoso="" for i in range(length): - char = text[i] - if char == "a" or char == "e" or char == "i" or char == "o" or char == "u": - jeringoso = jeringoso + char + "p" + char - else: - jeringoso = jeringoso + char + char = text[i] + if char in vowels: + jeringoso = jeringoso + char + "p" + char + else: + jeringoso = jeringoso + char + print jeringoso |