Extension:BayesianFilter

From MediaWiki.org
Jump to: navigation, search


MediaWiki extensions manual
Crystal Clear action run.png
BayesianFilter

Release status: beta

Implementation Page action
Description Filters spam using bayesian techniques
Author(s) Anbhav Agarwal (Anubhav iitrtalk)
MediaWiki 1.21+
PHP 5.3+
Database changes Yes
License No license specified
Download
README
Parameters
  • $wgBayesianFilterSettings
  • $wgBayesianFilterSpamThreshold
  • $wgBayesianFilterWordsChunkSize
Hooks used
EditFilterMerged

EditPageBeforeEditChecks
ArticleDelete
LoadExtensionSchemaUpdates

Translate the BayesianFilter extension if it is available at translatewiki.net

Check usage and version matrix; code metrics

The BayesianFilter extension filters spam using bayesian techniques.

See GSoC 2013 for more information on the project.

Download[edit | edit source]

The extension can be retrieved directly from Git [?]:

  • Browse code
  • Some extensions have tags for stable releases.
  • Each branch is associated with a past MediaWiki release. There is also a "master" branch containing the latest alpha version (might require an alpha version of MediaWiki).

Extract the snapshot and place it in the extensions/BayesianFilter/ directory of your MediaWiki installation.

If you are familiar with git and have shell access to your server, you can also obtain the extension as follows:

cd extensions/
git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/BayesianFilter.git

Installation[edit | edit source]

  • Download and place the file(s) in a directory called BayesianFilter in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
require_once "$IP/extensions/BayesianFilter/BayesianFilter.php";
  • Run the update script which will automatically create the necessary database tables that this extension needs.
  • Done! Navigate to "Special:Version" on your wiki to verify that the extension is successfully installed.