Levels of complexity in discourse for anaphora disambiguation and speech act interpretation