User:Curpsbot-unicodify/redirects

Optionally, the bot can also eliminate certain redirects. This is still in development and is turned off by default.

This is optional and will often be done on a separate pass, because it needs to visit other pages and is therefore much slower, and also because may be convenient for verification purposes to have these changes stand out in a separate edit instead of being mixed with character entity changes.

In this mode, the bot will: change A|B to B if and only if * "A" == "B" if diacritics are ignored * A exists and is a redirect to B]

More generally, it will: change B to B (disambig) if and only if * "A" == "B" if diacritics are ignored * A (disambig) exists and is a redirect to B (disambig)

Also, it will: change A to B if and only if * "A" == "B" if diacritics are ignored * A exists and is a redirect to B] * a previous A|B link was previously encountered in this bot run That is, the bot will normally not investigate links of the form " A " unless it has already cached the information that A is a redirect; otherwise it would have to follow every link on the page and that would be too time-consuming.

If it's a redirect but the redirect points somewhere else (call it "R") then: the bot will stop and prompt if the operator wishes to change to one of: * R * R|B * B If the operator answers "yes" to one of these, it will be noted in the edit summary as a manual intervention.

It will also trivially: change A|B to B if * "A" == "B" (completely identical, not ignoring diacritics)