This is a page that will take the users' inputted text and run it through a function and series of if/else questions to translate the text into Pig Latin.
-
Clone from github at ##########
-
Open index.html in your browser
-
_Enter text.
-
_Receive your text back translated into Pig Latin.
Specs | example input | example output |
---|---|---|
Does nothing to non-alphabetical characters | $3 | $3 |
Adds "ay" to the end of single-character words beginning with a vowel | I | Iay |
Adds "way" to the end of multi-character words beginning with a vowel | ass | assway |
For words beginning with one consonant, move consonant to the end and add "ay" to the end | fart | artfay |
For words beginning with two or more consonants move all consonants before a vowel to the end and add an "ay" to the end | shart | shartay |
For words with 'q' before the first vowel move the 'u' with the 'q' | queen squeak | eenquay eaksquay |
For words beginning with a 'y' treat 'y' as a consonants | year | earway |
No known bugs
_Contact us for anything at brnhensley@gmail.com, or open create a pull request in GitHub.
I used HTML, CSS, bootstrap, JavaScript, jQuery and a lot of DuckDuckGo-ing to build this webpage.
GPL, keep information free.
Copyright (c) 2016 Brian Hensley & Megan Schulte