Operator: Anomie ( talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 23:37, Thursday, March 3, 2016 ( UTC)
Automatic, Supervised, or Manual: Automatic
Programming language(s): Perl
Source code available: User:AnomieBOT/source/tasks/EnDashRedirectCreator.pm
Function overview: Create redirects from the title with hyphens for pages with titles containing en-dashes.
Links to relevant discussions (where appropriate): WP:BOTREQ#Bot for dashes
Edit period(s): Periodic
Estimated number of pages affected: 230735 redirects will be created for the first run, then it depends on how many new titles with en-dashes are created.
Exclusion compliant (Y/N): Yes (not that it matters)
Already has a bot flag (Y/N): Yes
Function details: The bot will look for existing pages with titles containing en-dashes ("–") where the corresponding title with en-dashes replaced with hyphens ("-") does not exist. It will then create the title with hyphens as a redirect to the title with en-dashes. If this would result in a double redirect, it will bypass the redirect.
Created redirects will be tagged with {{ R from modification}}. The bot code is a minor modification of the code from AnomieBOT 71. Anomie ⚔ 23:37, 3 March 2016 (UTC) reply
Probably want to put a period in that edit summary, but I see no other issues. An expansion of the task to titles containing em-dashes would be reasonable (I think?), though I imagine there are far fewer titles containing — than –. Approved. — Earwig talk 06:59, 8 March 2016 (UTC) reply