Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for [old] Bird Language by ZoltanOnody
"use strict";
const VOWELS = "aeiouy"
const translateWord = (word) => {
let translation = '', skip = 0;
for (let letter of word) {
if (skip--) {
continue;
}
translation += letter;
skip = VOWELS.contains(letter) + 1;
}
return translation;
}
const translate = (phrase) => (
phrase.split(' ').map(translateWord).join(' ')
)
July 27, 2016
Comments: