The application and ordering of grammatical rules