Text this: Principles of diachronic syntax