Aim of the bot is not fixing ALL broken section links, but to make human work as low as possible.
Best
On Sun, Jan 4, 2015 at 9:16 AM, MZMcBride z@mzmcbride.com wrote:
Amir Ladsgroup wrote:
I wrote a bot to fix broken section links based on history of target article, I ran it in several wikis including English Wikipedia. https://en.wikipedia.org/wiki/Wikipedia:Bots/Requests_for_approval/Dexbot
I can run it in any wikis, It uses fuzzy logic and it should calibrated with the target wiki.
There's also this database report: https://en.wikipedia.org/wiki/Wikipedia:DBR/Broken_section_anchors
Fixing broken section anchors is difficult as it typically requires human judgment. Some cases are trivial (section heading was lightly edited), but many cases require re-thinking where the redirect is targeted to altogether. For example, "No good deed goes unpunished" points to "The road to hell is paved with good intentions#Similar aphorisms", but that section is now completely removed from the article as is any mention of that phrase. Perhaps the redirect should point elsewhere, perhaps it should be deleted, etc. In other cases, it sometimes makes sense to revert the section heading change as it was wrong and sometimes it makes sense to add an additional {{anchor}} in order to support the == heading == and alternate plausible anchors to the same section. Implementing artificial intelligence to resolve broken section anchors is... difficult. :-)
But technically showing broken section links with different color or element id is not easy (AFAIK) since sections of pages are not being stored in database.
https://www.mediawiki.org/wiki/Manual:Redirect_table has rd_fragment. https://www.mediawiki.org/wiki/Manual:Pagelinks_table does not have a similar field. A fragment field for pagelinks would probably only make sense if we also tracked individual link instances on a particular page. Currently it's binary tracking (page links to another page or not).
MZMcBride
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l