Extension:SpellingApi

From Linux Web Expert

MediaWiki extensions manual
SpellingApi
Release status: beta
Implementation API
Description Provides an API for spell-checking
Author(s) Amir E. Aharoni (Amire80talk)
Latest version 0.3.0 (2018-02-12)
MediaWiki 1.20+
Database changes No
License GNU General Public License 2.0 or later
Download
Quarterly downloads Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Public wikis using Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Translate the SpellingApi extension if it is available at translatewiki.net

The SpellingApi extension adds an API module for checking the spelling of texts. It uses the PHP pspell library, so it must be installed on the server.

The current version is just a simple proof of concept.

Download

<translate> The extension can be retrieved directly from Git</translate> [?]:

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

<translate> Extract the snapshot and place it in the <tvar name=name>extensions/SpellingApi/</tvar> 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: </translate>

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

Installation

  • <translate> [[<tvar name=2>Special:ExtensionDistributor/SpellingApi</tvar>|Download]] and move the extracted <tvar name=name>SpellingApi</tvar> folder to your <tvar name=ext>extensions/</tvar> directory.</translate>
    <translate> Developers and code contributors should install the extension [[<tvar name=git>Special:MyLanguage/Download from Git</tvar>|from Git]] instead, using:</translate>cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/SpellingApi
  • <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
    wfLoadExtension( 'SpellingApi' );
    
  • File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>