Alien Accent

From codewars.com by Edxael  (that’s me)

Description:

The Story:

Aliens from Kepler 27b have immigrated to Earth! They have learned English and go to our stores, eat our food, dress like us, ride Ubers, use Google, etc. However, they speak English a little differently. Can you write a program that converts their Alien English to our English?

Task:

Write a function converting their speech to ours. They tend to speak the letter a like o and o like a u.

 

— My Code —

Note:  The following code is not written by me, it was created by another user of codewars.com it belongs to the user: phaul

 

x



Copyright 2017. All rights reserved.

Posted January 17, 2017 by Edmundo in category "Ruby Examples