Sentences and mental states in attributing intentions: modeling their cognitive balance