Gophers are friendly creatures but it’s not that easy to communicate with them. They have their own language and they don’t understand English.
Create a program that starts a http server. This server should be able to translate English words into words in the gophers' language. Don't worry, the gophers' language is pretty easy.
The language that the gophers speak is a modified version of English and has a few simple rules.
- If a word starts with a vowel letter, add prefix “g” to the word (ex. apple => gapple)
- If a word starts with the consonant letters “xr”, add the prefix “ge” to the begging of the word. Such words as “xray” actually sound in the beginning with vowel sound as you pronounce them so a true gopher would say “gexray”.
- If a word starts with a consonant sound, move it to the end of the word and then add “ogo” suffix to the word. Consonant sounds can be made up of multiple consonants, a.k.a. a consonant cluster (e.g. "chair" -> "airchogo”).