I want to replace a Noun in a sentence with its pronoun. I will be using this to create a dataset for a NLP task. for example if my sentences are -->
"Jack and Ryan are friends. Jack is also friends with Michelle."
Then I want to replace the second Jack(in italics and bold ) with "He". I have done the POS tagging to find the Nouns in my sentences. But I do not know how to proceed from here. If I have a list of all possible pronouns that can be used, Is there a corpus or system that can tell me the most appropriate pronoun for the word?