Wikipedia:Bots/Requests for approval/MinusBot
[[User:MinusBot|MinusBot]]
{{Newbot|MinusBot|}}
Operator: {{botop|Headbomb}}
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)
, replaces with(\d*\.?\d*)-([a-zA-Zα-ωΑ-Ω])< $2−$3<
, replaces with-(\d*)< −$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)
=Discussion=
: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)
:{{BotTrial|edits=25}} Demonstration trial. — xaosflux Talk 00:46, 6 March 2017 (UTC)
::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)
::{{done}} - Kingpin13 (talk) 01:00, 6 March 2017 (UTC)
:::{{BotTrialComplete}}, no issues/problem edit found. Headbomb {talk / contribs / physics / books} 01:18, 6 March 2017 (UTC)
:Regarding your summary - what is this "and other cleanup" - this BRFA didn't mention anything else? — xaosflux Talk 04:09, 6 March 2017 (UTC)
::Edits that made "extra" changes: [https://en.wikipedia.org/w/index.php?title=Superconductivity&diff=prev&oldid=768830041 1], [https://en.wikipedia.org/w/index.php?title=Silicon_tetrabromide&diff=prev&oldid=768829890 2], [https://en.wikipedia.org/w/index.php?title=Selenium_hexasulfide&diff=prev&oldid=768829845 3], [https://en.wikipedia.org/w/index.php?title=Selenium_disulfide&diff=prev&oldid=768829831 4], [https://en.wikipedia.org/w/index.php?title=Robert_Cava&diff=prev&oldid=768829775 5], [https://en.wikipedia.org/w/index.php?title=Respiratory_system&diff=prev&oldid=768829745 6], [https://en.wikipedia.org/w/index.php?title=Relative_permittivity&diff=prev&oldid=768829719 7], [https://en.wikipedia.org/w/index.php?title=Ramond%E2%80%93Ramond_field&diff=prev&oldid=768829689 8]. — xaosflux Talk 04:15, 6 March 2017 (UTC)
:::Function details says about AWB genfixes so I would guess that's what they are. TheMagikCow (talk) 08:18, 6 March 2017 (UTC)
::::AWB genfixes, yes, as outlined in the function details. Headbomb {talk / contribs / physics / books} 10:35, 6 March 2017 (UTC)
Why isn't this task exclusion compliant? AWB is exclusion compliant by default. — JJMC89 (T·C) 04:27, 6 March 2017 (UTC)
:It is? Then I guess this bot is exclusion compliant. Headbomb {talk / contribs / physics / books} 10:35, 6 March 2017 (UTC)
::You would have to purposefully enable overriding compliance, which I'm assuming you are not. — xaosflux Talk 23:38, 24 March 2017 (UTC)
{{t1|BAGAssistanceNeeded}} /{{Ping|xaosflux}} It's been a few weeks now... Headbomb {talk / contribs / physics / books} 18:10, 24 March 2017 (UTC)
:{{BotApproved}} Task approved. — xaosflux Talk 23:37, 24 March 2017 (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.