I'm not sure how it currently works, but for chat filter to really be worth a while it needs to be able to handle input like for example:
brownie
...which would censor any word containing "brownie" including the word brownie itself. Also, brownie and brownie should be two separate functions.