People that always have to be right or constantly "correct" you

Anonappotomus

What do you think the psychology is or the reason behind a person's desire to constantly be right or correct someone else?

I have this friend who always has to be right. If she's wrong about something she changes the topic quickly. She also constantly corrects me and others. For example, yesterday we were just talking about the sunset and how pretty the colors were and I mentioned the purple was my favorite, and she said "actually that's blue. It just looks purple because of the orange and yellows". Stuff like that is constant with her. She's always correcting me saying "ACTUALLY..." She will also send links to prove her points via text.

Do you know anyone like this? Why do you you think some people do this? Is it rooted in insecurity perhaps?