This is a javascript that corrects the casing of names. It's been written to correct the casing of artist and song names being provided by Global Radio EPG systems that provide dirty data.
There's a list of known casing exceptions that are checked, otherwise an alogorithm corrects the casing.
to correct a string, run the string through a javascript function:
artistCasing.fixCase(your-string-here);
Here's some test examples, click the link and it'll prepopulate the form with the input and run the conversion.
The first list is an example of known exceptions.
The second list is examples that should be auto-corrected by the algorithms. This is also used as the test suite.
Type a word or name into the input box, hit the submit button and see what the script would output.
Here's the list of non-standard artist names that the script checks against, with a link to Wikipedia for verification.