Skip to content

Instantly share code, notes, and snippets.

@ashleygwilliams
Created December 3, 2013 15:07
Show Gist options
  • Save ashleygwilliams/7770700 to your computer and use it in GitHub Desktop.
Save ashleygwilliams/7770700 to your computer and use it in GitHub Desktop.

THE CHALLENGE

Create a Command Line Pig Latin translator.

Pig Latin is a game of alterations played on the English language game. To create the Pig Latin form of an English word the initial consonant sound is transposed to the end of the word and an ay is affixed. Read Wikipedia for more information on rules.

Example output:

> pig_latin("banana") #=> "anana-bay"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment