jpremmel / pig-latin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

English To Pig Latin Translator

A program to translate a user's input into Pig Latin, 21 Aug 2019

By Jason Huels, Jacqueline Remmel, and Lauren Musante

Specifications & Description

  • Make no changes to non-alphabetical characters nor capitalization.

    • Example input: 3
    • Example output: 3
  • Add "-way" to single-letter words that are a vowel where a vowel is defined as "a," "e," "i," "o," or "u."

    • Example input: i

    • Example output: iway

  • Add "-way" to multi-letter words beginning with a vowel.

    • Example input: and
    • Example output: andway
  • Add "-ay" to single-letter consonants.

    • Example input: y
    • Example output: yay
  • Add "-ay" to a group of consecutive consonants.

    • Example input: mt
    • Example output: mtay
  • For a multi-letter word beginning with a consonant, move the first letter to the end of the word and add "-ay."

    • Example input: mouse
    • Example output: ousemay
  • For a word beginning with multiple consecutive consonants, move the whole group of consonants from the beginning of the word to the end of the word and add "-ay."

    • Example input: tree
    • Example output: eetray
  • For a word beginning with at least one consonant where the first group of consecutive consonants includes a "q" followed by a "u," move the "u" along with the consonants from the beginning of the word to the end of the word and add "-ay."

    • Example input: squeak
    • Example output: eaksquay
  • For a multiple-word phrase, apply the above rules to each individual word and return the whole altered phrase.

    • Example input: Hello World!
    • Example output: elloHay orld!Way

{This is a detailed description of your application. Its purpose and usage. Give as much detail as needed to explain what the application does, and any other information you want users or other developers to have. }

Setup/Installation Requirements

  • Open the index.html file in the browser of your choosing

Technologies Used

JavaScript, jQuery

License

*Open-source

Copyright (c) 2019 Jason Huels, Jacqueline Remmel, and Lauren Musante

About


Languages

Language:JavaScript 61.9%Language:HTML 36.9%Language:CSS 1.2%