Page MenuHomePhabricator

Create a MediaWiki extension to supersede https://anagrimes.toolforge.org/hasard.php
Open, MediumPublic

Description

The French wiktionary currently uses https://anagrimes.toolforge.org/hasard.php to offer a Special:Random feature, by language.

https://fr.wiktionary.org/wiki/Wiktionnaire:Page_au_hasard
https://anagrimes.toolforge.org/hasard.php?langue=fr

This kind of stable feature relying on external tools is something good to convert into a MediaWiki extension.

This first needs to have a database table with the Wiktionary words.

Event Timeline

The current tool uses a more complex database primarily designed for the custom search in https://fr.wiktionary.org/wiki/Wiktionnaire:Recherche_avanc%C3%A9e. That tool is way more complex and requires to parse the xml dumps to get data (with a dedicated set of scripts).

Also, note that this random page generator could be replaced by getting a random page in a language category (which all projects have), if it wasn't for the filters I put in place. I excluded the following pages: inflections, names, demonyms, i.e. the numerous pages that were generated by bots and that are so common that a normal search would almost always return one of them. Those are usually not very interesting words and would drown all the other lexemes that we host.

So instead of "copying" the tool, or starting from scratch, we could simply make use of the existing random search in categories, but based on a list of categories (white list/black list) for a given language.

Nintendofan885 renamed this task from Create a MediaWiki extension to supersede http://tools.wmflabs.org/anagrimes/hasard.php to Create a MediaWiki extension to supersede https://anagrimes.toolforge.org/hasard.php.Jul 4 2020, 8:16 PM
Nintendofan885 updated the task description. (Show Details)
Nintendofan885 updated the task description. (Show Details)