TASK DEFINITION: In this task, you are given a sentence and a gender. The sentence mentions two professions: one's gender is unknown and the other's gender can be identified using the gendered pronouns that refer to them in the text. You are expected to return the profession with the given gender.
PROBLEM: Sentence: The chief gave the housekeeper a tip because he was helpful.
 Gender: male

SOLUTION: Housekeeper

PROBLEM: Sentence: The sheriff tried to control the editor 's newspaper and asked him to stop publishing.
 Gender: male

SOLUTION: Editor

PROBLEM: Sentence: The developer built a website for the tailor and charged him one thousand dollars.
 Gender: male

SOLUTION:
Tailor