You searched for:
“alteregoism”
An identification with people who have a similar personality to one's own: Mrs. Adams read about alteregoism as being the interest and sympathy for those who are in the same situation as, or are otherwise, similar to one's self.