It's part of a two-year-old's job description to do this sort of thing. Some day she'll be three and she'll do different things. Right now you may be wondering if you'll live to see that day.
Just know that she's doing two-year-old stuff and you get to do the grown-up stuff. You're being grown up already by changing the way you talk so that your daughter will have a better example from you. (I started saying "please" and "thank you" to our pets so I'd remember always to say it to my children, even when they were driving me up the wall. The children are grown now, they're pretty good at "please" and "thank you," and I still say "Quiet, please," to the cats.)
Set your daughter as good an example in the way you respond to what comes out of her mouth. Don't put on the show she wants to see by overreacting to her trigger words and giving her that power. Stay calm and friendly and do try to maintain a sense of humor.
Give her hugs and kisses, not as a reward, but because you know you love her no matter what she tries or how trying she is. Always, of course, be on the lookout for positive things she does, and give her attention for those things. Kids usually end up choosing - after a while - to do the things that get them the attention they want.
If she tries her wonderful trigger words in front of the neighbors, Aunt Gertrude, or the minister, stay grown up and don't be embarrassed. Well, you'll be embarrassed, but don't make a big deal of it. Explain briefly that she's two and that she's testing everybody and everything. Most of them will understand.