Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Second solution in Speedy category for Bird Language by _Chico_
import re
VOWELS = "aeiouy"
def translate(phrase):
bird_regex = re.compile(rf'([^{VOWELS}\s])[{VOWELS}]|([{VOWELS}]){{3}}')
return bird_regex.sub(r"\1\2", phrase)
May 18, 2021