Here is my advice as both a behavior analyst who has worked with language delayed kids and as a parent of 4 (two of whom were biters!). It isn't "THE" advice, but hopefully I have outlined why I think it might work for you. No offense if you don't like it. Every mom and kid pair is different, so use what works for you. But, it worked for me.
2 year olds bite because they don't have the language skills to express their fears, frustrations, etc. (right or wrong emotions, they still can't express them). Biting occurs because it gets attention and a reaction. You need to make sure biting is ineffective as a means of "communicating".
My suggestion is two fold: First, you need to interrupt the biting when it occurs. Try a sharp and loud "No bite" as she bites (the point of swatting is often to induce a startle- a loud noise works just as well!). Move her quickly away from the person she is biting and isolate her nearby. Do not make eye contact, do not say anything more (too much language is confusing to 2 year olds). You need to be sharp, stern and forceful to get the point across that biting is BAD. This tells her that biting is unacceptable. Use a time out (AFTER she stops howling) of 30 seconds to 1 minute. Then, make her return to the situation and have her work it out appropriately. (see the next point).
Next, however, you need to give her a way to express herself. Help her find a way.....practice with her dolls, prompt her to use words ("we do not bite, we use words! Say No! if you want me to stop"; "we do not bite, we use words. Say please if you want the toy"). The important part here is practice. Try and "recreate" a biting situation.....maybe she wants a toy. Work with that.....Hold the toy away from her. If she starts to bite to get you to give it, interrupt her by catching her under the chin (be ready), remind her "No bite! Say please". If she asks nicely, give her the toy (if she bites, do the time out and try again). Do this 2-4 times in a row several times a day to help her practice. Then, when she DOES say please, reward her- tell her what a big girl she is, how proud you are that she uses words (don't mention that "B" word).....and remember, she won't be perfect for a while until she gets a better grasp of language.
The problem with biting is it works! People let go of toys and put you down and give you what you want when you bite them- particularly your peers. You need to make the biting ineffective while helping her build appropriate but effective alternatives. She is a frustrated little bugger. She knows what she wants but can't get it. She is simply resorting to what works!!! Mercifully, most kids outgrow this stage as they find more socially appropriate ways of getting their way! Besides, in a way, biting is easier to deal with than adolescent whining!