Don't call people names regardless of your stance on swearing.
Know the audience, all communication should be tailored to who is listening, you should know if the person(s) you are talking to will tolerate swearing or not.
Swearing and using bad grammar or spelling are probably equal in many regards. Sometimes you can get away with it, but know who you are talking or typing to.