This webpage will allow the user to enter a phrase, and will return the phrase translated into Pig Latin
Specs: -Program should return -"ay" to the end of words that begin with a vowel. -Sample input: "animal" -Sample output: "animalay" -Program should return first letter of word and "ay" to words beginning with consonants. -Sample input: "car" -Sample output: "arcay" -Program should return first two letters of word and "ay" to words beginning with 2 consonants. -Sample input: "chard" -Sample output: "ardchay" -Program should return first three letters of word and "ay" to words beginning with 3 consonants. -Sample input: "strike" -Sample output: "ikestray" -Program should treat y as a vowel if it is not first letter of word -Sample input: "byline" -Sample output: "ylinebay" -Program will treat u as a consonant when it follows q -Sample input: "quiet" -Sample output: "iet-quay" -Program will ignore capitalization on the first letter -Sample input: "Animal" -Sample output: "Animalay" -Program should translate phrases into Pig Latin, as demonstrated above -Sample input: "the quick brown fox" -Sample output: "ethay ickquay ownbray oxfay" -Program should have normal rules of punctuation (commas, periods, etc.) -Sample input: "Hello, how are you?" -Sample output: "elloHay, owhay areay ouyay?"
- Clone repository from GitHub
- Open HTML file in browser
- Enter a phrase
No known bugs
Please no contact.
HTML Javascript jQuery
Licensed under MIT license.
Copyright (c) 2016 Charles Ewel and Brett New