Text this: Principles and methods in historical phonology