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
Approved.
New to bots on Wikipedia? Read these primers!
- Approval process – How this discussion works
- Overview/Policy – What bots are/What they can (or can't) do
- Dictionary – Explains bot-related jargon
Operator: BrownHairedGirl (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
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:
Eponymous categories should appear first
- Change that category's sort key to a single space, per WP:Categorization#Guidelines_for_articles_with_eponymous_categories
- Make that category the first in the list, per MOS:CATORDER item 1:
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#Proposal:_a_bot_to_place_eponymous_categories_as_the_first_category_on_articles (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:
- Use WP:PETSCAN to get a list of all the categories which are subcats of Category:Eponymous categories
- Convert those titles to a list of articles
- 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:
- Make that category the first in the list
- Change that category's sort key to a single space, per WP:Categorization#Guidelines_for_articles_with_eponymous_categories
- Apply WP:GENFIXes
Discussion
[edit]- I don't see any reason not to approve this. Also @BrownHairedGirl: 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)[reply]
- 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). --BrownHairedGirl (talk) • (contribs) 21:44, 17 May 2020 (UTC)[reply]
Approved for trial (25 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. Primefac (talk) 17:57, 22 May 2020 (UTC)[reply]
Trial complete. @Primefac: See these 25 edits[1]. --BrownHairedGirl (talk) • (contribs) 14:11, 29 May 2020 (UTC)[reply]
- Note: the trial edits were made to samples from the list generated by this Petscan query. --BrownHairedGirl (talk) • (contribs) 14:31, 29 May 2020 (UTC)[reply]
- Source code uploaded to WP:Bots/Requests for approval/BHGbot 6/AWB module. --BrownHairedGirl (talk) • (contribs) 14:20, 29 May 2020 (UTC)[reply]
Approved. Primefac (talk) 14:59, 29 May 2020 (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.