When is swearing not ok at work?
If people are swearing at you, that is bullying and is unacceptable. After your comment, it seems like that is what is going on. If that is happening, document it and speak with HR and get that sorted first.
Telling someone to "go back to their den", swearing or not, is bullying. That language isn't acceptable, and the best thing to do is to raise it with your manager. Workplace bullying is a huge problem for management for a host of reasons, and shouldn't be tolerated. If you management isn't prepared to help you with this problem, then speak with a workplace lawyer in your area.
Similarly, the use of sexual or gendered curses such as:
'dick', 'bitch' or 'cunt' *
aren't just casual swearing but also can indicate issues of casual sexism that can be toxic and make men and women uncomfortable as well as being a sexual harassment minefield.
When is swearing ok at work?
However, sometimes swearing is ok if the company's culture deems it appropriate. If its not uncommon for people to drop a casual curse word in the course of their day to day speech about a project, the coffee or sports on the weekend, then if that is undirected then that's the culture they've chosen.
Talking about the "s&#! coffee *" at a new cafe is relatively harmless and common, and depending on your beliefs may not be worth pursuing. Sometimes it is best to accept that some swearing is culturally common and acceptable. Remember at one point "damn" and "jeez" were words worth of being reprimanded for, while now they are quite common. So common they are the only curses I haven't italicized and asterisked them in this answer.
What can you do to reduce swearing in the workplace?
- Speak with some other people and see if you can get a general indication of how people feel about the cursing. If enough others are uncomfortable with the swearing, then raise it as an issue with management.
- If you get the indication that others are comfortable with the language, realise that you aren't suited for that job and find an environment you are comfortable in. Sometimes trying to change a whole workplace culture is not worth the hassle.
- Or if the job is that good, and the cursing is light hearted then roll with it, don't participate or escalate, but accept that sometimes there are sacrifices to be made.
* Apologies, but if you are discussing swearing, sometimes you need to include examples of swear words. Its a fine line, but I'd rather people comment before removing these.