Are you trying to say that there's a certain nickname that can't say words? Or no-one can say the words? Perhaps something like:
on *:TEXT:*:#: {
if ($1 isin badword badword badword badword { /kick $chan $nick optionalkickreasonhere
I don't know if that's valid or not, but I think it's a pretty good shot.