Well, kids are more confident and lippy these days!
You have to train her. Icily calm - make eye contact, strong loud tone so she immediately stops whatever she is doing or literally ask her to come to you.
When she answers rudely - it’s a sharp “watch your tone young lady. Speak gently and say it nicely like this “xxxxxxx”. Try again, please !”
(modelling what to say helps as it gives her the right words to use. Drilling it makes it stick.)
Or:
”excuse me what did you just say to me? Would you speak to your teacher or Granny like that? Try again - this time be polite.”
Or:
”Please don’t say “frickin’”. It’s not a nice word. Say “very” or “sooooo” instead.”
Or
“I can see that you are angry about this, but in this house we don’t unleash our bad tempers on each other. If you are angry take a breath and blow it out for a count of five before you speak. Would you please leave the room, and when you are feeling calm come back in and we will have a sensible conversation.”
Or
”You say that you want to be treated like a grown up, but when you talk to me like that you sound like a child. Do you ever hear me talk like that? No.”
Or
”You are more likely to have a nice day if you are nice to me. I don’t feel like doing things for children who are rude and ungrateful.”
Or a very mild..
”I don’t know why you think that shouting at me is going to get you what you want. The answer is No, you can’t have it/do it. I know you want to, but the answer won’t change if you scream and shout. All you are doing is making yourself feel cross and upset. I’m not cross or upset! So you’re just making yourself mad for no reason.”