Wikipedia:Bots/Requests for approval/BHGbot 6


 * 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

BHGbot 6
Operator:

Time filed: 10:47, Saturday, May 9, 2020 (UTC)

Function overview: Implement MOS:CATORDER for eponymous categories. If an article is categorised in an eponymous category, then:
 * Make that category the first in the list, per MOS:CATORDER item 1:
 * Change that category's sort key to a single space, per WP:Categorization
 * Change that category's sort key to a single space, per WP:Categorization

Automatic, Supervised, or Manual: Supervised initially, then automatic

Programming language(s): AutoWikiBrowser

Source code available: See WP:Bots/Requests for approval/BHGbot 6/AWB module

Links to relevant discussions (where appropriate): WT:WikiProject Categories (permalink as of now, tho more comments may follow).

Edit period(s): Initial one-time run. Further runs every month or two to catch new cases

Estimated number of pages affected: Not sure yet. My rough guesstimate is that there are are about 50,000 articles in scope, but I don't have a feel yet for how many of many of them will need this fix. https://petscan.wmflabs.org/ has been unavailable each time in the last few days when I have tried it, when it is working again, I will grab a list and start testing

Namespace(s): Articles

Exclusion compliant (Yes/No): Yes

Function details: The methodology is simple:
 * 1) Use WP:PETSCAN to get a list of all the categories which are subcats of Category:Eponymous categories
 * 2) Convert those titles to a list of articles
 * 3) USE AWB through that list of articles articles, and in each case: if the article exists, and it is categorised in a category whose title exactly matches the article name, then:
 * 4) * Make that category the first in the list
 * 5) * Change that category's sort key to a single space, per WP:Categorization
 * 6) * Apply WP:GENFIXes

Discussion

 * I don't see any reason not to approve this. Also try out my petscan instance at petscan-md.toolforge.org. It's slower, breaks sometimes, and is completely unsupported, but when the other one is down, it's better than nothing. --Mdaniels5757 (talk) 21:38, 17 May 2020 (UTC)
 * Thanks, @Mdaniels5757. Petscan has seemed in good health today, but your backup will be very useful when Petscan falls over again (as it often dies in even in the good times). --  Brown HairedGirl  (talk) • (contribs) 21:44, 17 May 2020 (UTC)
 * Primefac (talk) 17:57, 22 May 2020 (UTC)
 * @Primefac: See these 25 edits. -- Brown HairedGirl  (talk) • (contribs) 14:11, 29 May 2020 (UTC)
 * Note: the trial edits were made to samples from the list generated by this Petscan query. -- Brown HairedGirl  (talk) • (contribs) 14:31, 29 May 2020 (UTC)
 * Source code uploaded to WP:Bots/Requests for approval/BHGbot 6/AWB module. -- Brown HairedGirl  (talk) • (contribs) 14:20, 29 May 2020 (UTC)
 * Primefac (talk) 14:59, 29 May 2020 (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.