Text this: Principles and methods for historical linguistics