Identifying pronouns and their functions