See this example:
Banned Words ~ Add New RecordBANNED WORDS: foo, bar, baz, qux, quux, quuz, corge, grault, garply, waldo, fred, plugh, xyzzyhttps://haversineconsulting.quickbase.com/db/bmxikq9bs?a=nwrPastie Databsasehttps://haversineconsulting.quickbase.com/db/bgcwm2m4g?a=dr&rid=589Notes:(1) To keep it
safe for the office I used a metasyntatical set of words:
https://en.wikipedia.org/wiki/Metasyntactic_variable#Words_commonly_used_as_metasyntactic_variables(2) There are all sorts of predefined bad words list you can find on the internet with a Google search
https://www.google.com/search?q=bad+word+list(3) You list of bad words could be stored in a table or code page and accessed by the script using an AJAX call
(4) To keep it
unsafe for the office here is a link to
George Carlin's famous - 7 dirty words https://www.youtube.com/watch?v=vbZhpf3sQxQ