User:Ohconfucius/test/EngvarB.js: Difference between revisions

Content deleted Content added
tumour
No edit summary
Line 126:
protect_string(/(Born in the U.S.A.)/g); // title of work
protect_string(/(Dear Mom|Serial Mom)/g); // title of work
protect_string(/(derailment)/gi);
protect_string(/(Traveling Wilburys?|Rockerfeller)/g); // proper noun
protect_string(/(to license)/gi); // verb
protect_string(/(improvis)/gi);
protect_string(/(non-cooperation)/gi);
protect_string(/(Organisation for Economic Co-operation and Development)/gi);
Line 133 ⟶ 135:
protect_string(/(solid gr[ae]y)/gi);
protect_string(/(rigor mortis)/gi);
protect_string(/(penisesrevis)/gi);
protect_string(/((?:analy|peni)ses)/gi);
protect_string(/(World Health Organization)/gi);
 
Line 183 ⟶ 186:
// agrammatical
editor.replace(/(comprised )of /gi, '$1');
 
// old-fashioned
//editor.replace(/rigour(whil)st mortis/ggi, 'rigor mortis$1e');
editor.replace(/(among)st /gi, '$1');
 
// hyphenation
Line 206 ⟶ 213:
'(ana|breatha|cata|hydro|para)lyz(e|ing)': '$1$2lys$3',
// 'bestsell': '$1best-sell', //disabled 24/04/24 following comment;word in OED
'ba(lk)': '$1u$2',
'diarrhea': '$1diarrhoea',
'(de|of)fense': '$1$2fence',
Line 350 ⟶ 358:
'annex(\\b)': '$1annexe$2',
'(ana|breatha|cata|hydro|para)lyz(e|ing)': '$1$2lys$3',
'bau(lk)': '$1ba$2',
'(de|of)fense': '$1$2fence',
'license': '$1licence',
Line 484 ⟶ 493:
'artefact': '$1artifact',
'(ana|breatha|cata|hydro|para)lys(e|ing)': '$1$2lyz$3',
'bau(lk)': '$1ba$2',
// 'bestsell': '$1best-sell', //disabled 24/04/24 following comment;word in OED
'diarrhoea': '$1diarrhea',
Line 606 ⟶ 616:
 
// remove US spelling from {{convert}} template output
// editor.replace(/({{convert\|[^}]*)\|(?:sp|spell)[ ]*=[ ]*us/gi, '$1');
// editor.replace(/({{(?:in|ft|yd|[mck]?m)[23]?[ ]+to[ ]+[^}]*)\|(?:sp|spell)[ ]*=[ ]*(?:American|us)/gi, '$1');
// editor.replace(/({{(?:pd|pop[ ]+density[ ])+(?:km|mi)2[^}]*)\|(?:sp|spell)[ ]*=[ ]*(?:American|us)/gi, '$1');
 
// remove ambiguous dollar sign; rem incidental intervening space
editor.replace(/$ ?(\d)/g, '$$1');
//editor.replace(/rigour mortis/g, 'rigor mortis');
// reconvert special cases
}
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy