Wikipedia:Bots/Requests for approval/TokenzeroBot 5


 * The following discussion is an archived debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA. The result of the discussion was

TokenzeroBot 5
Operator:

Time filed: 19:25, Saturday, July 21, 2018 (UTC)

Automatic, Supervised, or Manual: automatic

Programming language(s): python, pywikibot

Source code available: GitHub

Function overview: Handle OMICS predatory journals by creating redirects and hatnotes.

Links to relevant discussions (where appropriate): Bot requests

Edit period(s): one time run

Estimated number of pages affected: 2001 created redirects and their talks pages, 24 added hatnotes.

Namespace(s): Mainspace (mostly redirects), Talk (just to tag talk pages of created redirects)

Exclusion compliant (Yes/No): Yes

Function details:

OMICS Publishing Group is an predatory open access publisher, which often deceptively names it journals. This bot shall create redirects or hatnotes to point from these names, from a fixed list of names at User:Headbomb/OMICS, taken from the publisher's website.

More precisely, for each title Foobar on the list:
 * If Foobar exists, consider Foobar (journal) instead (unless the title already contained journal or already was a redirect, in which case skip it)
 * Consider also variants obtained by replacing "and" with "&" (and vice versa, if the title doesn't contain Latin "Acta")
 * Consider also variants obtained by taking the the ISO 4 abbreviation (dotted and undotted, computed using the automatic tool, using multilanguage rules iff the title contains "Acta").
 * If any of the consider variants already exists, skip it, just to be safe.
 * Otherwise, create a redirect from each variant:
 * 1) REDIRECTOMICS Publishing Group

and create a talk page for that redirect, containing. Then, for each title of the form Foobar: Open Access/Foobar-Open Access/Foobar: An Indian Journal/Foobar: Current Research:
 * If Foobar exists, but is not in a category containing "journal", consider Foobar (journal) instead.
 * If the considered Foobar or Foobar (journal) exists, add a hatnote right at the top:

Here's a log of all edits made by a simulated run: pastebin log. The 9 skipped titles are logged as 'Skip' should be handled by hand. Titles logged as 'Done' are existing redirects to OMICS Publishing Group, Allied Academies or Pulsus Group.

Discussion
10 "plain" redirects, 10 "(journal)" redirects, 5 hatnotes. Headbomb {t · c · p · b} 20:46, 21 July 2018 (UTC)


 * Note, I've updated User:Headbomb/OMICS to catch a few typos and capitalization mistakes. Headbomb {t · c · p · b} 20:57, 21 July 2018 (UTC)


 * See contribs and the new full simulated run log. The hatnotes have redlinks now, their redirects will be created in a full run. There are no more '(journal)' redirects to make, all those remaining cases are existing journals (which will be added hatnotes). Tokenzero (talk) 11:16, 22 July 2018 (UTC)
 * Oh, almost forgot: there was one bug where the bot would also add hatnotes to some redirects. This is now fixed. Tokenzero (talk) 11:26, 22 July 2018 (UTC)


 * Looks all good to me. Headbomb {t · c · p · b} 11:46, 24 July 2018 (UTC)


 * The above discussion is preserved as an archive of the debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA.