Pātuhitia tēnei: Formal grammars in linguistics and psycholinguistics