Text this: An objective psychology of grammar