Type Theory as a Cognitive Approach to Language