The trick is, you can't, unfortunately. You can have relevant ads that encroach on your privacy, or you can have possibly irrelevant ads that don't. If we are considering all possibilities, they could have precomputed some magic to do it all locally, but I have doubts about that because it seems more difficult to do that than just slap an identifier on your keystrokes and consult their ad-partner API.