When people swear, they do it out of habit. Once you have learned to speak that way, it can be hard to stop. One good way to stop is to make a swear jar. Use a regular jar. Every time you say a swear word, put one dollar in the jar. At the end of the week or month or however long you want to go, take that money and donate it to a charity. Pretty soon you will stop swearing because you will not want to continue to lose your money. You will have an incentive to stop swearing.