User:Symplectic Map/capitalizations.js

Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
function common_capitalizations(str) {
 str = str.replace(/([^\w\/\.])april([^\w\/])/gm, '$1April$2');
 str = str.replace(/([^\w\/\.])aquarius([^\w\/])/gm, '$1Aquarius$2');
 str = str.replace(/([^\w\/\.])aries([^\w\/])/gm, '$1Aries$2');
 str = str.replace(/([^\w\/\.])aries([^\w\/])/gm, '$1Aries$2');
 str = str.replace(/([^\w\/\.])august([^\w\/])/gm, '$1August$2');
 str = str.replace(/([^\w\/\.])austrai?lia(n?[^\w\/])/gm, '$1Australia$2');
 str = str.replace(/([^\w\/\.])austria([^\w\/])/gm, '$1Austria$2');
 str = str.replace(/([^\w\/\.])X-box([^\w\/])/gim, '$1Xbox$2');
 str = str.replace(/([^\w\/\.])XBox([^\w\/])/gm, '$1Xbox$2');
 return str;
}