This is very easily scripted, in its simplest form you can just use ON INPUT and $replace to swap the words you dont want for something like -censored- (or just remove them, but what you say might make a little less sense depending on how much is removed)