Text this: Principles of generative phonology