Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Simple solution solution in Clear category for Bird Language by ludek.reif
VOWELS = 'aeiouy'
def translation(phrase):
not_next = False
result = ''
for vowel in VOWELS:
phrase = phrase.replace(vowel*3, vowel)
for letter in phrase:
if letter not in VOWELS and letter is not ' ':
result += letter
not_next = True
elif letter in VOWELS and not_next:
not_next = False
else:
not_next = False
result += letter
return result
Feb. 19, 2016
Comments: