Word censorship filter

From MoodleDocs
Revision as of 18:46, 14 February 2020 by Daniela Rotelli (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The word censorship filter enables certain user-selected words to be "blacked out" in the flow of any text submitted within a course. The primary use is for censoring obscene or other unwanted words entered by learners in activities like Forums and Wikis.

Custom list of censored Words

The word censorship settings page Administration > Site administration > Plugins > Word censorship allows a site administrator to edit a custom list of words (bad words) to be censored within your Moodle installation.

To avoid inadvertently causing offence, there is no default bad word list on the Word censorship settings page. If the custom list is empty, the default list from the language pack will be used.

Default censored Words

The default bad word list is contained within the censor.php file within each language pack installed on your Moodle site. To change the default bad word list go to Administration > Site administration > Language > Language Customization and check out the required language pack. Select the censor.php file under the filters subheading from the strings list and click Show strings. Warning: You may find the content of this file offensive.

Tips and Tricks

  • If you would prefer not to display a custom list of censored words on the Word Censorship Settings page, customize the censor.php file the language directly
  • If you have multiple language packs installed and in use within your Moodle site, remember to edit each language pack and/or add custom censored words in all languages.

See also