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 Approved.
Operator: Tokenzero (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
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): Wikipedia:Bot requests#Redirects of OMICS journals
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:
#REDIRECT[[OMICS Publishing Group]] [[Category:OMICS Publishing Group academic journals]]
and create a talk page for that redirect, containing {{WPJournals}}. 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:
{{Confused|text=[[Foobar: Open Access]], published by the [[OMICS Publishing Group]]}}
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
[edit]@Tokenzero: Approved for trial (25 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. 10 "plain" redirects, 10 "(journal)" redirects, 5 hatnotes. Headbomb {t · c · p · b} 20:46, 21 July 2018 (UTC)[reply]
- 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)[reply]
- Trial complete. 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)[reply]
- 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)[reply]
- 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.