a. Check if it's a proper noun (capitalized and not at the start of the sentence).
So the processed text would be:
3. Replace the word with b.