If there is an example phrase like,
A guy named Rajesh Kumar Singh came to meet me yesterday.
I have to remove the name of "Secret agent" from this string, transforming the string like this:
A guy named XXXX came to meet me yesterday.
I have the logic of identifying the name in string, I am stuck at the string manipulation, to remove word number 4,5,6 from the original string and replacing it with XXXX.
A guy named <some name>, or are there other variations? Also, can you include your current Python script in your question?