What I am trying to do is make a program react with words I define to translate it into a language, or in my case, letters.

This would be an example of what I want:

I type in "Woof" per say. I want it to be able to understand what I say when I type woof, and print a letter with it.

So let's say "Woof" is the letter "A"
And let's say "Arf bark" is the letter "B"

I've had no luck finding how to be able to input say "Woof arf bark" and get it to print "AB" 

My end goal is to be able to translate words with my own little translator using my own defined language by simply inputing words.

What I'm looking for in a response is simply an example of inputing a defined word and receiving a letter or something in response.

Long story-short; I am basically looking for a translator

---

**Edit:** Imagine Google Translate, you type in a word or a series of letters or whatever be the case, and it becomes translated.
I'm looking for it to be able to UNDERSTAND INPUT. So If I copy and paste the made up language, the IDE should be able to give me a translation of it.

**Better Example:** Let's say H is defined as "8" because it is the 8th letter in the alphabet, and A is defined as "1" due to being the first letter in the alphabet.
How do I write a program that allows me to input "8181" and have it translated to say "Haha"