Refactor the gender pronoun function into the model