When a person categorizes someone else as belonging to a certain group based on assumptions, this is called

1 answer

prejudice, stereotyping

Check those words in a dictionary.

Dictionary.com