Text this: Formalization of grammar in Slavic languages