Here's one for Bad Subjects...
https://www.ubbdev.com/forum/showflat.php?Cat=0&Board=php&Number=100042&Forum=,,,All_Forums,,,&Words=&Searchpage=3&Limit=25&Main=99517&Search=true&where=bodysub&Name=11036&daterange=0&newerval=&newertype=&olderval=&oldertype=&bodyprev=#Post100042
If you wish to only use the 'bad word filter' and not create another seperate one for subjects like in the example shown, then simply change all instances of...
/filters/badsubject
TO:
/filters/badwords
And you would also not bother with adding the special link for it in the admin panel since that would be redundant.
Personally, I have it seperated into its own special filter though as it provides more flexibility

Filters
Edit bad emails
Edit reserved names
Edit bad words
Edit bad subject
Edit titles