Text this: Grammatical complexity and one-dimensional dynamical systems