Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

PigLatin Translator

This "questionable" tool was created as an exercise in C# and .NET core. It is based on challange by Andrew Rosenwinkel published on edabit.com
Link: https://edabit.com/challenge/uhsik73PY7Y2XftzG

Web-app

You can test the tool by using a web app.
Link: https://piglet.mkajzer.hostingasp.pl/

Web-api

There is also public API available:

GET: http://pigletapi.mkajzer.hostingasp.pl/api/translate
To use this method you need to provide source string as query parameter "?source=xxx"
Example: http://pigletapi.mkajzer.hostingasp.pl/api/translate?source=here%20goes%20what%20you%20want%20to%20translate
You can test that simply by accessing it with your browser

POST: http://pigletapi.mkajzer.hostingasp.pl/api/translate
This method requires JSON with string array:
{ "sourceStrings": [ "This is my test string number one", "Let's test some more", "Even more testing!", ] }
As a response you'll get JSON with an array that contains translated strings.
Postman or other tool that allows sending POST requests is needed.

How it works:

Consonant starting words: move consonants from the begging of the word to the end and add "ay".
Vowel starting words: add "yay" at the end of the word.

apple > appleyay
edit > edityay
elaborate > elaborateyay
car > arcay
fallout > alloutfay
translator > anslatortray

About

PigLatin Translator

Resources

License

Releases

No releases published

Packages

No packages published