Simple example:
alias cursefilter { return $regsubex($1-,/(badword1|badword2|badword3|badword4)/g,<censored>) }
You will want to replace the "badword1" with a bad word, and same for badword2 and badword3. To add more badwords to that list, you can simply add a | after the word, but before the )/g
So in other words:
(badword1|badword2)
(badword1|badword2|badword3)
(badword1|badword2|badword3|badword4)
Those three lines just shows the transition from having two bad words, to four bad words.
You'll be able to use:
//echo -ag $cursefilter(Something something your-bad-word something something)