A woman disturbed by her own strong sexual desires, and who…

A woman disturbed by her own strong sexual desires, and who worries deeply about her sexual reputation, sees a neighbor she barely knows and thinks “She is such a whore.” She seems to often see in others the things that she fears most about herself.  Which of Freud’s defense mechanisms appears to be at work here?