Pātuhitia tēnei: Formalization of grammar in Slavic languages