Wikipedia:Bots/Requests for approval/MinusBot
- 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: Headbomb (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 16:09, Sunday, March 5, 2017 (UTC)
Automatic, Supervised, or Manual: Automatic
Programming language(s): AWB
Source code available: Simple regex, see below, but most recent available upon request once the bot is unleashed.
Function overview: To replace hyphens by minus signs in superscripts and subscripts, as appropriate
Links to relevant discussions (where appropriate): MOS:COMMONMATH
Edit period(s): Monthly, following dumps.
Estimated number of pages affected: ~100 for the first run, then ?/month afterwards.
Exclusion compliant (Yes/No): Yes
Already has a bot flag (Yes/No): No
Function details:
- Looks for hyphen in superscripts and subscripts, and replaces them with minus signs (when appropriate)
<su(p|b)>(\d*\.?\d*)-([a-zA-Zα-ωΑ-Ω])<
, replaces with<su$1>$2−$3<
<su(p|b)>-(\d*)<
, replaces with<su$1>−$2<
- Applies AWB genfixes if it finds them (but skips whitespace-only, minor genfixes, and cosmetic genfixes if that's the only thing it does)
These regex aren't the exact ones, since there's a bit of filtering done to eliminate false positives, and I'm almost sure the Greek ranges α-ωΑ-Ω isn't valid regex, but conceptually that's what the regexes do. Headbomb {talk / contribs / physics / books} 17:15, 5 March 2017 (UTC)[reply]
Discussion
[edit]- What namesapce(s) will this be run in? — xaosflux Talk 19:01, 5 March 2017 (UTC)[reply]
- Mainspace and Draftspace, mostly. There might be manually selected pages from other namespaces (e.g. Filespace) occasionally, but I'll usually do those from my main account. Headbomb {talk / contribs / physics / books} 19:04, 5 March 2017 (UTC)[reply]
- Approved for trial (25 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. Demonstration trial. — xaosflux Talk 00:46, 6 March 2017 (UTC)[reply]
- MinusBot will need to be added to Wikipedia:AutoWikiBrowser/CheckPage before I can proceed. Headbomb {talk / contribs / physics / books} 00:58, 6 March 2017 (UTC)[reply]
- Done - Kingpin13 (talk) 01:00, 6 March 2017 (UTC)[reply]
- Regarding your summary - what is this "and other cleanup" - this BRFA didn't mention anything else? — xaosflux Talk 04:09, 6 March 2017 (UTC)[reply]
Why isn't this task exclusion compliant? AWB is exclusion compliant by default. — JJMC89 (T·C) 04:27, 6 March 2017 (UTC)[reply]
- It is? Then I guess this bot is exclusion compliant. Headbomb {talk / contribs / physics / books} 10:35, 6 March 2017 (UTC)[reply]
- You would have to purposefully enable overriding compliance, which I'm assuming you are not. — xaosflux Talk 23:38, 24 March 2017 (UTC)[reply]
{{BAGAssistanceNeeded}} /@Xaosflux: It's been a few weeks now... Headbomb {talk / contribs / physics / books} 18:10, 24 March 2017 (UTC)[reply]
- Approved. Task approved. — xaosflux Talk 23:37, 24 March 2017 (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.