User:Symplectic Map/capitalizations.js

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; }