I never had such a bad potty mouth. It got a little worse after I met my husband who back then, when talking to his buddies, used swears like comas in his speech. Then there were the words I used but didn’t realize for a long time were vulgar or offensive. When my daughter was born I really wanted to make the effort to eliminate these words from my vocabulary. You probably don’t need an explanation of why this would be a good idea but I am going to tell you anyway.
Babies learn language from their parents. It is really that simple. I wanted to teach my children to say what they mean not to substitute expletives out of habit or because they are angry or frustrated. If you are frustrated just say you’re frustrated, right?! But bad habits die hard and my last holdout was damn it and sure enough, one day, even though I used thousands of very descriptive wholesome words around my two year old, she had damn it at the ready one day her toy fell off the table. It was the tiniest bit funny (which I kept to myself) but mostly I felt shame and a little relieve that I hadn’t exposed her to worse. So I stopped using damn it and started substituting oh boy which eventually I stopped saying too because my husband and kids started incessantly teasing me about it.
If you are trying to stop swearing, substituting words and phases can help, like darn it is a euphemism for damn it and so on. The best thing to do though is pause and find the right word or phase to say what you mean. It is not always easy to do this but in the end it will encourage more descriptive conversations for you and your kids in your home and beyond.