Operator: Kadane ( talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 16:10, Tuesday, March 19, 2019 ( UTC)
Automatic, Supervised, or Manual: automatic
Programming language(s): Python
Source code available: Not published yet
Function overview: Tags redirects with {{
R to disambiguation page}}, {{
R from unnecessary disambiguation}}, and {{
R from incomplete disambiguation}} if it meets criteria described in function details.
Links to relevant discussions (where appropriate): Wikipedia:Bot_requests#Tag_with_Template:R_from_unnecessary_disambiguation
Edit period(s): Monthly
Estimated number of pages affected: ~56,417 first run
Exclusion compliant (Yes/No): No
Already has a bot flag (Yes/No): Yes
Function details:
Note: This BRFA only covers the functionality mentioned in Case 2. Case 1 and Case 3 have been stricken
Case 1:
If a redirect exists
Foo (bar) ->
Foo
where bar does not equal disambiguation AND Foo is NOT a disambiguation page, then tag
Foo (bar) with {{
R from unnecessary disambiguation}}
Currently 39,963 articles fit this case
Case 2:
If a redirect exists
Foo (bar) ->
Foo
where bar does not equal disambiguation AND
Foo is IS a disambiguation page then tag with {{
R from incomplete disambiguation}}.
Currently 16,427 articles fit this case
Case 3:
If a redirect exists
Foo (disambiguation) ->
Foo
AND
Foo is a disambiguation page AND
Foo (disambiguation) is NOT malformed, then tag
Foo (bar) with {{
R to disambiguation page}}
Currently 27 articles fit this case
The following functionality/logic exists for all 3 cases:
Foo (disambiguation) ->
Foo
and disambiguation is malformed log to
User:KadaneBot/Task3/Malformed disambiguationsComment @ Kadane: The following should be tagged as {{ R from incomplete disambiguation}} instead of {{ R from unnecessary disambiguation}}
Those can be identified by the landing page being a disambiguation page.
This one should be skipped, or tagged with something else (investigating)
These ones should be skipped as malformed DAB pages (missing space, capital D), but collecting them so they can be RFD's would be good.
Headbomb { t · c · p · b} 17:11, 19 March 2019 (UTC) reply
Better, although
Should be tagged with {{ R from incomplete disambiguation}} instead of {{ R from unnecessary disambiguation}}. Headbomb { t · c · p · b} 09:31, 20 March 2019 (UTC) reply
quoting=csv.QUOTE_NONE
, which resulted in some lines being skipped when the database query was being scanned. Because of this some articles and disambiguation pages were being ignored. This is fixed now. I clicked through most of the cases and I can't find any errors.
User:KadaneBot/Sandbox is updated.
Kadane (
talk) 15:17, 20 March 2019 (UTC)
replyMaybe a full list should be created so we can purge all cases that shouldn't be tagged. Everything else look fine though. Headbomb { t · c · p · b} 18:03, 20 March 2019 (UTC) reply
\s\(.* (album|song|single|EP|soundtrack|network|channel|episode|series|film|journal|magazine|website|company|publisher|newspaper|company|station|decade|numeral|number|game|novel|book|gene)\)
since those are safe.
Headbomb {
t ·
c ·
p ·
b} 21:02, 20 March 2019 (UTC)
reply
User:KadaneBot/Task3/Case 1 for {{
R from unnecessary disambiguation}}
User:KadaneBot/Task3/Case 2 for {{
R from incomplete disambiguation}}
User:KadaneBot/Task3/Case 3 for {{
R to disambiguation}}
Kadane ( talk) 21:52, 20 March 2019 (UTC) reply
So are
Extended content
|
---|
Headbomb { t · c · p · b} 22:19, 20 March 2019 (UTC) reply
There are actually a few more, which I've sent to RFD.
Headbomb { t · c · p · b} 22:49, 20 March 2019 (UTC) reply
@ Kadane:, actually could you break User:KadaneBot/Task3/Case 1 in sections of 100 KB tops? Those pages are pretty slow to load/edit (I have scripts that classify type of links, which slow down these pages considerably). Headbomb { t · c · p · b} 23:06, 20 March 2019 (UTC) reply
Could you also break down redirects into 'species', e.g. all those ending with \s\(*album\) into a subpage (or section), all those ending with \s(*song\) into another, and so on (and everything else considered "Other")? At least for endings in
All case insensitive. Headbomb { t · c · p · b} 23:18, 20 March 2019 (UTC) reply
Okay all edits have been sorted by 'species' and a list of all pages can be found here. @ Headbomb: Kadane ( talk) 00:09, 23 March 2019 (UTC) reply
Approved for trial. Please provide a link to the relevant contributions and/or diffs when the trial is complete. - Let's start with everything in User:KadaneBot/Task3/Edits/other/Case_3. This is something that could safely be automated. Make sure to run on the most version of the pages, since things may be updated. Headbomb { t · c · p · b} 00:11, 23 March 2019 (UTC) reply
I have completed the trial edits [2] [3] [4]. The rest were false positives. I am hesitant to mark the trial as done with only 3 edits.
May I suggest trialing either User:KadaneBot/Task3/Edits/cricketer/Case 2 (135 edits), User:KadaneBot/Task3/Edits/footballer/Case 2 (60 edits), or User:KadaneBot/Task3/Edits/politician/Case 2 (40 edits)? Kadane ( talk) 01:47, 23 March 2019 (UTC) reply
Small whitespace issues: [17], [18]. Headbomb { t · c · p · b} 04:55, 23 March 2019 (UTC) reply
For the whitespace issue, I think you can have something similar to \}\}\n+\{\{
→ }}\n{{
and \n\n+
→ \n\n
.
Headbomb {
t ·
c ·
p ·
b} 05:29, 23 March 2019 (UTC)
reply
Operator: Kadane ( talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 16:10, Tuesday, March 19, 2019 ( UTC)
Automatic, Supervised, or Manual: automatic
Programming language(s): Python
Source code available: Not published yet
Function overview: Tags redirects with {{
R to disambiguation page}}, {{
R from unnecessary disambiguation}}, and {{
R from incomplete disambiguation}} if it meets criteria described in function details.
Links to relevant discussions (where appropriate): Wikipedia:Bot_requests#Tag_with_Template:R_from_unnecessary_disambiguation
Edit period(s): Monthly
Estimated number of pages affected: ~56,417 first run
Exclusion compliant (Yes/No): No
Already has a bot flag (Yes/No): Yes
Function details:
Note: This BRFA only covers the functionality mentioned in Case 2. Case 1 and Case 3 have been stricken
Case 1:
If a redirect exists
Foo (bar) ->
Foo
where bar does not equal disambiguation AND Foo is NOT a disambiguation page, then tag
Foo (bar) with {{
R from unnecessary disambiguation}}
Currently 39,963 articles fit this case
Case 2:
If a redirect exists
Foo (bar) ->
Foo
where bar does not equal disambiguation AND
Foo is IS a disambiguation page then tag with {{
R from incomplete disambiguation}}.
Currently 16,427 articles fit this case
Case 3:
If a redirect exists
Foo (disambiguation) ->
Foo
AND
Foo is a disambiguation page AND
Foo (disambiguation) is NOT malformed, then tag
Foo (bar) with {{
R to disambiguation page}}
Currently 27 articles fit this case
The following functionality/logic exists for all 3 cases:
Foo (disambiguation) ->
Foo
and disambiguation is malformed log to
User:KadaneBot/Task3/Malformed disambiguationsComment @ Kadane: The following should be tagged as {{ R from incomplete disambiguation}} instead of {{ R from unnecessary disambiguation}}
Those can be identified by the landing page being a disambiguation page.
This one should be skipped, or tagged with something else (investigating)
These ones should be skipped as malformed DAB pages (missing space, capital D), but collecting them so they can be RFD's would be good.
Headbomb { t · c · p · b} 17:11, 19 March 2019 (UTC) reply
Better, although
Should be tagged with {{ R from incomplete disambiguation}} instead of {{ R from unnecessary disambiguation}}. Headbomb { t · c · p · b} 09:31, 20 March 2019 (UTC) reply
quoting=csv.QUOTE_NONE
, which resulted in some lines being skipped when the database query was being scanned. Because of this some articles and disambiguation pages were being ignored. This is fixed now. I clicked through most of the cases and I can't find any errors.
User:KadaneBot/Sandbox is updated.
Kadane (
talk) 15:17, 20 March 2019 (UTC)
replyMaybe a full list should be created so we can purge all cases that shouldn't be tagged. Everything else look fine though. Headbomb { t · c · p · b} 18:03, 20 March 2019 (UTC) reply
\s\(.* (album|song|single|EP|soundtrack|network|channel|episode|series|film|journal|magazine|website|company|publisher|newspaper|company|station|decade|numeral|number|game|novel|book|gene)\)
since those are safe.
Headbomb {
t ·
c ·
p ·
b} 21:02, 20 March 2019 (UTC)
reply
User:KadaneBot/Task3/Case 1 for {{
R from unnecessary disambiguation}}
User:KadaneBot/Task3/Case 2 for {{
R from incomplete disambiguation}}
User:KadaneBot/Task3/Case 3 for {{
R to disambiguation}}
Kadane ( talk) 21:52, 20 March 2019 (UTC) reply
So are
Extended content
|
---|
Headbomb { t · c · p · b} 22:19, 20 March 2019 (UTC) reply
There are actually a few more, which I've sent to RFD.
Headbomb { t · c · p · b} 22:49, 20 March 2019 (UTC) reply
@ Kadane:, actually could you break User:KadaneBot/Task3/Case 1 in sections of 100 KB tops? Those pages are pretty slow to load/edit (I have scripts that classify type of links, which slow down these pages considerably). Headbomb { t · c · p · b} 23:06, 20 March 2019 (UTC) reply
Could you also break down redirects into 'species', e.g. all those ending with \s\(*album\) into a subpage (or section), all those ending with \s(*song\) into another, and so on (and everything else considered "Other")? At least for endings in
All case insensitive. Headbomb { t · c · p · b} 23:18, 20 March 2019 (UTC) reply
Okay all edits have been sorted by 'species' and a list of all pages can be found here. @ Headbomb: Kadane ( talk) 00:09, 23 March 2019 (UTC) reply
Approved for trial. Please provide a link to the relevant contributions and/or diffs when the trial is complete. - Let's start with everything in User:KadaneBot/Task3/Edits/other/Case_3. This is something that could safely be automated. Make sure to run on the most version of the pages, since things may be updated. Headbomb { t · c · p · b} 00:11, 23 March 2019 (UTC) reply
I have completed the trial edits [2] [3] [4]. The rest were false positives. I am hesitant to mark the trial as done with only 3 edits.
May I suggest trialing either User:KadaneBot/Task3/Edits/cricketer/Case 2 (135 edits), User:KadaneBot/Task3/Edits/footballer/Case 2 (60 edits), or User:KadaneBot/Task3/Edits/politician/Case 2 (40 edits)? Kadane ( talk) 01:47, 23 March 2019 (UTC) reply
Small whitespace issues: [17], [18]. Headbomb { t · c · p · b} 04:55, 23 March 2019 (UTC) reply
For the whitespace issue, I think you can have something similar to \}\}\n+\{\{
→ }}\n{{
and \n\n+
→ \n\n
.
Headbomb {
t ·
c ·
p ·
b} 05:29, 23 March 2019 (UTC)
reply