Subject: | Capitalisation of track and artist names |
LyricWiki has a policy for the correct capitalisation of artists and
track names at:
http://lyrics.wikia.com/LyricWiki:Page_Names
Most of the time there is a redirect to the correct page if you get the
case wrong when viewing the site but not when editing, which this module
uses. Here is an example:
Correct case:
http://lyrics.wikia.com/index.php?title=Garbage:A_Stroke_Of_Luck&action=edit
Incorrect case:
http://lyrics.wikia.com/index.php?title=Garbage:A_stroke_of_luck&action=edit
This can be resolved by using some code such as:
$artist = __correctCase($artist);
$song = __correctCase($song);
sub __correctCase{
my $string = shift;
my @words = split(" ", $string);
$string = join(" ", map(ucfirst, @words));
return $string;
}
Thanks