Context Word: habits. 
Question: PersonX purged PersonY of her bad habits, since _ was very sensible and well mannered back then. 
Answer: PersonX
PersonX gave PersonY her bad habits, since _ was very sensible and well mannered back then.