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 Moff
const VOWELS = "aeiouy";
const ascii_letters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
function translate(cipher) {
let plain = '', i = 0;
while (i < cipher.length) {
let c = cipher[i];
plain += c;
if (VOWELS.indexOf(c) > -1) {i += 3;}
else if (ascii_letters.indexOf(c) > -1) {i += 2;}
else {i += 1;}
}
return plain;
}
July 7, 2017