Text this: Formal grammars in linguistics and psycholinguistics