Tekstiviesti: Formalization of grammar in Slavic languages