Sometimes ignoring undesired behavior does work, but you must be consistent.
He very may well be doing it for attention. What can really help, is "catching" your son being good. Pay attention to the littlest of things, and when he does something right or good (even if its something small, like throwing away his trash, or clearing his spot), say something like, "hey, that's great you're cleaning up after yourself, I like that".
If you see he catches himself and doesn't swear when he typically would, you can say, "I noticed you were going to say something - a swear word, good for you for using self control" Praise him up and down......that is another form of attention, just uplifting for him.
After a few days, if you notice your son is now really trying to please you, you could say, "I have been noticing how great you are doing at controlling your swearing and helping out around the house, let's go for ice cream on Saturday" - - offer him some special reward or outing to let him see firsthand the reward of his controlling himself.
The opinions expressed in WebMD Communities are solely those of the User, who may or may not have medical or scientific training. These opinions do not represent the opinions of WebMD. Communities are not reviewed by a WebMD physician or any member of the WebMD editorial staff for accuracy, balance, objectivity, or any other reason except for compliance with our Terms and Conditions. Some of these opinions may contain information about treatments or uses of drug products that have not been approved by the U.S. Food and Drug Administration. WebMD does not endorse any specific product, service or treatment.
Do not consider Communities as medical advice. Never delay or disregard seeking professional medical advice from your doctor or other qualified healthcare provider because of something you have read on WebMD. You should always speak with your doctor before you start, stop, or change any prescribed part of your care plan or treatment. WebMD understands that reading individual, real-life experiences can be a helpful resource, but it is never a substitute for professional medical advice, diagnosis, or treatment from a qualified health care provider. If you think you may have a medical emergency, call your doctor or dial 911 immediately.