Analyzing the core of categorial grammar