Between text and context: Deixis, anaphora, and the meaning of then