About Bad Word Filter

June 23, 2008 - 11:45am PDT
A bit about BWF

Bad Word Filter (BWF) was born, as most libraries/applications are, to fullfill a need. The need is to have fast, reliable bad-word filtering, that the Open-Source community can use to better their applications, but to also help those looking to make a buck. Hence, the MIT-style licensing.

BWF is a PHP based filtering system to find bad words. PHP developers can use it to filter input text from users, and automatically find bad words or phrases. It's built using PCRE (preg_*) for speed.

BWF features wildcards, allowing it to detect words like "a$$" without you having to include "a$$" in your bad words file.

BWF is language-aware, though at this time the library only includes bad words and wildcards for the English (US) language. Future language will be added soon. Contact me to contribute to badwords library.

Wildcards substitution REs (and the bad-word REs) are built once per execution to increase performance. Future versions may include the abilty to cache the REs for ultimate performance.

BWF does not require a database.

Features: