This question already has an answer here:

What's it called when someone blames you or accuses you of doing something because they're doing it themselves? For example, when your boyfriend/girlfriend is cheating on you, so they assume you're also cheating on them. I remember finding a word for it, but I can't seem to find it anymore...

marked as duplicate by tchrist Oct 19 '16 at 18:38

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    I added an answer over there because it was missing one word I often use for this: transference – developerwjk Oct 19 '16 at 19:45