Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Bird Language by JingMeng
VOWELS = "aeiouy"
def translation(phrase):
def _translate(word):
cur, acc = 0, []
while cur < len(word):
letter = word[cur]
cur += 3 if letter in VOWELS else 2
acc.append(letter)
return acc
return ' '.join("".join(_translate(i)) for i in phrase.split(' '))
June 20, 2019