This repository contains files of a mini project Piglatin Translator as an assignment of Software Engineering course, WASP program. The outcome is a small tool able to translate English word, sentence to Pig latin. See https://en.wikipedia.org/wiki/Pig_Latin.
The piglatinWASP is tested on: Windows 7, Mac OS.
The project require
- [JAVA SE JDK 8] (http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)
- [Apache Ant] (http://ant.apache.org/)
Do
ant
to compileant test
to additionally run all testsant jar
to generate aPiglatin.jar
fileant clean
to clean away generated files.
Run the generated jar file by:
java -jar Piglatin.jar
After running program with java -jar Piglatin.jar
, a panel is showed with instructions to select the interested function as below:
Please choose one of these functions:
Pig Latin --> English(1)|English --> Pig Latin(2)|Exit(3)
You choose:
If one likes to translate English word/ sentence to Pig Latin, select 1.
If one likes to decode Pig Latin to English, select 2.
If feel bored, select 3 to exit program.
------------ Translate English to Pig Latin-------------------------------
Type Word to be translated, for example: hello
Output should be:
Translated in Pig Latin:
ellohay
@Jiexiong: Voice of translated Pig Lattin will be played after translation, :-) A free API is used with limit query times, so DO TRY BUT NOT TOO MANY TIMES.
------------ Translate English to Pig Latin from certain file -------------------------------
Type file to be translated after selecting 1, for example: story.txt
Output should be: A LOT OF TRANSLATED WORDS.
------------ Translate Pig latin to English-------------------------------
Type Word to be translated: for example: ellohay
Translate from Pig Latin to English:
hello
- JieXiong Tang ([email protected]) and
- Chanh Nguyen ([email protected]).