oggy22 / Translator

This is my attempt to create a machine translator from and to multiple natural languages. The method is based on formal (Chomsky) grammars and equivalency rules. The input sentence is parsed into a tree, an equivalent tree is constructed in the target language and traversed to yield the translated text. Currently, I am working on my native Serbian, and English. Future support may include Russian, Spanish and German.
3 stars 0 forks source link

Print out sentence correctly #62

Open oggy22 opened 7 years ago

oggy22 commented 7 years ago

When printing out a random sentence capitalize the first letter, i in english capitalized, capitalize nouns in german, italian and spanish proper question marking.