As my final project for this class, I am creating a program to translate between Latin and Russian via their morphology and phonology (Python 2.7.6). I chose these two languages because I have studied Latin for 5 years and Russian for about 2 years, and they have relatively similar grammatical structures (parallels in conjugating and declining).
This translator was created to do a direct, word-for-word literal translation between Latin and Russian.
It doesn't into account context or identify special phrasal constructions. It is only concerned with the indicative mood and active voice for verbs. Nouns are not declined into the locative case. Adjectives used substantively will not be detected as being used in such a way. Additionally, there are no adverbs, auxiliary verbs, modals, comparatives, or superlatives.
Roots.py has all of the words included in the translator's dictionary. It can attempt to conjugate verbs and decline nouns/adjectives when given the parameters needed, but cannot deconstruct (and therefore translate) words not already in the dictionary.
See what's included for Russian
- Open the command line (Windows) or terminal (Mac/Linux) and navigate to where the project files are.
- Run
python runtest.py
- Enter the number corresponding to the option you want to pick
- Enter the required parameters, separated by commas
- caveat: The program is not very robust and may crash if you provide the wrong input here
- After the inflected word is produced, you are given a prompt: "Would you like to do more? (y/n/a)"
- y(es) returns to the previous menu
- n(o) quits the UI
- a(gain) re-runs the same choice from the previous menu
- Options that produce Russian forms print both the surface form in Cyrillic and an English transliteration below them
Translate Latin Verb to Russian Verb:
Translate Latin Noun to Russian Noun:
Translate Latin Adjective to Russian Adjective:
Translate Russian Verb to Latin Verb:
Translate Russian Noun to Latin Noun: