User:Bikabot

This bot has been approved at Bots/Requests for approval.

Overview
Purpose: help bring the existing Anime and manga articles in compliance with the new guidelines regarding demographic tags in Animanga infoboxes, as described in WT:MOS-AM; check that they are categorized accordingly.

Automatic or Manually Assisted: supervised automatic.

Language: Perl, using the perlwikipedia framework.

Edit period(s): one-time run.

Maintainer: User:Bikasuishin.

Details
As mentioned above, there are two tasks that this bot should carry out in order eventually: Development for those two tasks will be conducted separately.
 * 1) Fix the demographic tags in infoboxes according to the new guidelines.
 * 2) Make sure that articles belong to demographic categories (Category:Shōnen, Category:Shōjo, Category:Seinen, Category:Josei, Category:Kodomo anime and manga) that match their stated demographic tags.

Pass 1
Specifications for this task are well-understood, and a tentative working implementation is available already. It has been approved for a trial run at WP:RBA.

Breakdown of the task:
 * Go through every article transcluding the Template:Infobox animanga/Header template.
 * If a demographic tag is present, remove it, and copy it back to each manga sub-box as appropriate.
 * Otherwise, add an empty demographic tag to each manga sub-box.
 * Log every change, as well as all pages that couldn't be changed due to a failure in parsing or the presence of several conflicting demographic tags.

Source code: /Source/pass1.pl

Pass 2
The details of this task are currently under discussion and thus not fully specified yet. It may be necessary to postpone it until after consensus is reached regarding the demographic categories rename proposal.

Logs and testing material

 * /Sandbox
 * /Pass1Log
 * /Pass1TrialLog