/Pig_Latin

An application that turns your boring words into Pig Latin using JS!

Primary LanguageJavaScript

Pig Latin Word Changer

By Trent Dietzel

An application that turns your boring words into Pig Latin!

Technologies Used

  • HTML
  • CSS
  • JavaScript

Description

_A practice application for learning how to use loops. Focuses on using TDD to break down the problem into smaller pieces of functionality (Bottom of page). It will transform any word you put into it into the Pig Latin version!

Setup/Installation Requirements

  • Fork your own copy of this repository from GitHub
  • Open Git BASH Download Link
  • Use 'git clone projecturl' to clone the project from the forked repo
  • Open the project in VS Code (Git shortcut: enter 'code .' after navigating to the top level of the project directory)
  • View site on github-pages <~~ Try it out now!

Known Bugs

  • Will only work with one word. Multiple words will return random answers until it gets updated.

License

MIT License

Copyright (c) 2023 Trent Dietzel

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Copyright (c) 2023 Trent Dietzel

PROJECT TESTS

Describe: pigLatin()

Test #1: "It will add 'way' to the end of words that begin with a vowel." Code: let phrase = "a"; pigLatin(phrase); Expected Output: "away"

Test #2: "It will add "qu" + "ay" to the end of words that begin with 'qu'." Code: let phrase = "quick"; pigLatin(phrase); Expected Output: "ickquay"

Test #3: "It will move consonant values until it reaches a vowel and then add 'ay'" Code: let phrase = "code"; pigLatin(phrase); Expected Output: "odecay"

Test #4: "It will move the first consonant to the back and add 'ay' if 'qu' comes second." Code: let phrase = "squeal"; pigLatin(phrase); Expected Output: "quealsay"

Test #5: "It will return pig latin for more than one word." Code: let phrase = "away code quick squeal"; pigLatin(phrase); Expected Output: "awayway odecay ickquay quealsay"