Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Bird Language by Phil15
from string import ascii_lowercase
VOWELS = set("aeiouy")
CONSONANTS = set(ascii_lowercase) - VOWELS
def translate(text):
res, i = '', 0
while i < len(text):
res += text[i]
if text[i] in VOWELS:
i += 3
elif text[i] in CONSONANTS:
i += 2
else:
i += 1
return res
Aug. 27, 2018