Takes user input and translates each word into pig latin.
Specifications:
Output non-alphabetical input without changing it
- 1
- 1
Add "ay" to single letter words with a vowel at the start regardless of case
- I
- iay
Add "ay" to multi-letter words beginning with vowels
- eat
- eatay
If the word begins with a consonant move the consonant to the end and add "ay'
- cat
- atcay
For words beginning with one or more consonants move all beginning consecutive consonants to the end and adding "ay"
- string
- ingstray
If word starts with "qu" treat "qu" as a consonant group
- quest
- estquay
If "qu" comes after a consonant at the beginning of the word move it with the consonant
- squirm
- irmsquay
Apply rules to all words in multi-word sentences
- Hello World
- ellohay orldway
Capitalize the first letter of the translated sentence
- Hello World
- Ellohay orldway
- Clone from github
- Open HTML file
None
Email us with questions
HTML, CSS, JavaScript, Bootstrap, jQuery
This program is licensed under the MIT license.
Copyright (c) 2016 Brian Dutz and Stephen Newkirk