Text this: A unified theory of syntactic categories