Compositionality and the analysis of anaphora