Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Another RegExp solution solution in Clear category for Bird Language by Gi-gik
import re
VOWELS = "aeiouy"
def translation(phrase):
rep = lambda match: [x for x in match.groups() if x != None][0]
return re.sub(rf"([^{VOWELS}\s])[{VOWELS}]|([{VOWELS}])\2\2", rep, phrase)
March 22, 2020