In this task, you are given a sentence and a profession that is mentioned in the sentence. The gender of the person with the given profession can be identified using the gendered pronouns that refer to them in the text. You are expected to identify the gender. Select from female and male.
--------
Question: Sentence: The sheriff protected the writer and gave her a gun.
 Profession: writer

Answer: Female


Question: Sentence: The guard competed with the attendant for the same job despite the fact that he did want it.
 Profession: guard

Answer: Male


Question: Sentence: The lawyer needed the librarian to find a book because she knows how the library is organized.
 Profession: librarian

Answer:
Female