It sounds like what I call "spyware," though that may not be exactly the right term. "Adware," maybe? Something has installed itself on your computer that looks for certain words in the text and turns them into advertising links.
I've been using
Spybot - Search & Destroy to scan for vermin like that. An alternative is
Ad-Aware.