Code Monkey home page Code Monkey logo

pig-latin-translator's Introduction

Pig Latin Translator

A smart translation program, 01.30.2020

By Krista Rutz, Steven Fleming, and Jack Dunning

Description

Pig Latin is a language game derived from English where speakers add endings to words based on the first letter of the word. This translator takes text as an input and outputs the translated string.

Setup/Installation Requirements

To view this project:

Specifications

Expand specs for this project
  • get an input string -- can be split word/character-wise into an array

  • ignore non-letter characters (IN: 98! OUT: 98!)

  • one letter words: Just add ay (IN: I OUT: Iay)

  • push first letter to end with "ay" (word with single starting consonant. IN: "cat" OUT: "atcay")

  • don't push first letter to end, just add "way" (IN: word starting with vowel. OUT: same word+ay. IN: "apple" OUT: "appleway")

  • if Y is the first letter, treat as consonant. (IN: yolanda OUT: olandayay)

  • push consonant group to end with "ay" (IN: "snapple" OUT: "applesnay)

  • If Y is not first letter, treat as vowel (IN: typhoon. OUT: yphoontay)

  • If a "qu" are the first two letters, move BOTH to end (IN: queen OUT: eenquay)

  • If "qu" is part of the initial consonant group, include "u" on end (IN: squall OUT: allsquay)

  • multiple words work (IN: sad cat OUT: adsay atcay)

  • return to user as a normal looking word (string?)

Examples:

Hello, friend! Ellohay, iendfray!

don't cry on'tday ycray

you ouyay

non-profit on-profitnay

Known Bugs

No known bugs. Some links are currently disabled while the website is in beta.

Support and contact details

Please contact me if you run into any issues or have questions, ideas or concerns. I can be contacted at [email protected]. Contributions to the code are encouraged!

Technologies Used

  • HTML, CSS, and JS (jQuery)
  • Responsive design using Bootstrap framework

License

This software is licensed under the Attribution-NonCommercial 4.0 International (CC BY-NC 4.0)

Copyright (c) 2020 Krista Rutz, Jack Dunning, Steven Fleming

You are free to:

Share — copy and redistribute the material in any medium or format Adapt — remix, transform, and build upon the material The licensor cannot revoke these freedoms as long as you follow the license terms. Under the following terms: Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.

NonCommercial — You may not use the material for commercial purposes.

No additional restrictions — You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits. Notices: You do not have to comply with the license for elements of the material in the public domain or where your use is permitted by an applicable exception or limitation. No warranties are given. The license may not give you all of the permissions necessary for your intended use. For example, other rights such as publicity, privacy, or moral rights may limit how you use the material.

pig-latin-translator's People

Contributors

kristarutz avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.