Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
replace solution in Clear category for Bird Language by serp90
import string
VOWELS = "aeiouy"
def translation(phrase):
table = dict()
for ch in string.ascii_lowercase:
if ch in VOWELS:
table[ch*3] = ch + '__'
else:
for v in VOWELS:
table[ch + v] = ch + '_'
ph = phrase
for old, new in table.items():
ph = ph.replace(old, new)
return ph.replace('_', '')
March 21, 2021