SMS dit: The history of grammar in the Middle Ages