An informational theory of discourse