<human>: I've been living with this girl for a year and a half, but I have a lot of issues with her as a roommate and a friend. One of the friend parts is that she constantly puts me down as a joke. Like, I said the word astute and she said "wow you're a nerd". I realized I made a mistake with communicating with someone via text and when I said "Oh I made a mistake!" she said "You're a loser!". Before when I said, "I think I made a mistake with this" she brushed me off and said "it's fine", she always says its fine or it's not a problem or there's no reason to be worried. I'm almost never really worried about these things, but it really pissed me off to have someone constantly belittled my feelings.

She says stuff like this every day. If I drop something I'm "dumb", yesterday I swore because I poked myself with a knife and she basically scolded me for swearing. Bitch I am an adult I can say fuck if I think I hurt myself! All of it is framed as a joke but it really irritates me. I usually just don't respond but it doesn't make a difference. 

Something else is, whenever she does something right or makes a guess and it's right, she'll joke "I'm perfect" or "I'm always right!".

The more I type it the more of a bitch she seems like. A month ago when I found out my ex was dating again and it made me feel sad, she said something like "he just wanted sex". I told her "don't say that" sharply, because why the fuck would I want to hear that?

I don't think she's mean intentionally. I am apparently her closest friend but honestly I don't like her that much. Maybe I'm her only friend because she pushes people away. 

I guess I just want advice for how to say something about the joking/putting me down thing. I'm sick of having someone treating me like an imbecile for dropping a sponge or something equally trivial. I'm on mobile so sorry for any issues with the post.

Can you summarize the given text in a few sentences?
<bot>: my roommate/friend is rude to me in a joking way every day and I hate it. Best way to make this stop?