What is the word that you replace a good word with a bad word?

A good word replaced with a bad one is a dysphemism; the opposite is euphemism, to replace a bad word with a good one.