There are a couple IMO, plugins like this are mostly pointless because it's so easy to bypass.
However, if you still want to do it, there are a couple swear filter plugins which aren't exactly what you want but I did happen to find one by Exolent that seems like it works with a Gag plugin and might be what you're looking for. See
here.
__________________