Language Filters

The PHP Spell Checker offers easy routes to ban words from ever being accepted.

The Banned Words List

Add words to be banned to the file /phpspellcheck/dictionaries/language-rules/banned-words.txt

  • One word per line

Banning words using code

Open The Settings File - /phpspellcheck/core/settings/default-settings.php

  • Un-comment: $spellcheckObject -> AddBannedWords(array("veryRudeWord"));
  • Add words to this array by hand, or by building the array from code or SQL.

Strict (Legal) Mode

By setting the Strict property to true - users cannot ignore these banned words. This is useful for Legal spellchecking applications.

Note: We offer a free Legal English Dictionary download