User:Samuel Wiki/regextypofix.js

//Create 'winc' function:

function winc(s) { document.write(' '); } //'winc' function allows buttons to be added toolbar winc('User:Omegatron/monobook.js/addlink.js');

function regextypofix { var txt = document.editform.wpTextbox1;

//Trademarks txt.value=txt.value.replace(/\b[Gg]mae[Cc]ube(s?)\b/g, 'GameCube$1'); txt.value=txt.value.replace(/\b[Xx][Bb][Oo][Xx]\b/g, 'Xbox'); txt.value=txt.value.replace(/\b[Ss][Oo][Nn][Yy]\b/g, 'Sony');

//Proper nouns

//U.S. States txt.value=txt.value.replace(/\b[Cc]al(?:for?n?|i?fo[nr]r?)i(an?s?)\b/g, 'Californi$1'); txt.value=txt.value.replace(/\b[Cc]ola?rad(o|ans?)\b/g, 'Colorad$1'); txt.value=txt.value.replace(/\b[Dd]ele?war(es?|ians?)\b/g, 'Delawar$1'); txt.value=txt.value.replace(/\b[Ff]lordi?a(n?s?)\b/g, 'Florida$1'); //(For Georgia, see Countries) txt.value=txt.value.replace(/\b[Ii]l(?:[li]a?noi|ll+[ai]noi?|l+[ai]ni?o|l+ioni)s\b/g, 'Illinois'); txt.value=txt.value.replace(/\b[Ll]ou(?:siani?|isiani)(a|ans?)\b/g, 'Louisian$1'); txt.value=txt.value.replace(/\b[Mm]as(?:(?:ss+|)[aeu]ch?u?s+et*|s*[eu]ch?u?s+et*|s*[aeu]cu?s+et*|s*[aeu]ch?s+et*|s*[aeu]ch?u?ss+et*|s*[aeu]ch?u?s+e(?:tt|))ts\b/g, 'Massachusetts'); txt.value=txt.value.replace(/\b[Mm]in(?:nn+e|e|ni)sot(a|ans?)\b/g, 'Minnesot$1'); txt.value=txt.value.replace(/\b[Mm]i(?:s(?:ss+|)is+ip+|s+is(?:ss+|)ip+|s+is+ip(?:pp+|))i(|ans?)\b/g, 'Mississippi$1'); txt.value=txt.value.replace(/\b[Nn]eveda(|ns?)\b/g, 'Nevada$1'); txt.value=txt.value.replace(/\b[Pp]en(?:sylva|n?sylvan)nia(|ns?)\b/g, 'Pennsylvania$1'); txt.value=txt.value.replace(/\b[Tt]en(?:(?:nn+|)ess+e*|n+es(?:ss+|)e*|n+ess+(?:ee+|))(e|ans?)\b/g, 'Tennesse$1'); //Cities txt.value=txt.value.replace(/\b[Cc]in(?:ncinn?at?|cinat?|cinnat)t(i|ians?|us)\b/g, 'Cincinnat$1'); txt.value=txt.value.replace(/\b[Cc]openhagan\b/g, 'Copenhagen'); txt.value=txt.value.replace(/\b[Ll](?:as\s*[Aa]nge?le?|[ao]s\s*[Aa]ng(?:le|el))s\b/g, 'Los Angeles'); txt.value=txt.value.replace(/\bNew\s*[Dd]ehli\b/g, 'New Delhi'); txt.value=txt.value.replace(/\b[Pp]hil(?:i?delph|adelp|adeph)ia(|ns?)\b/g, 'Philadelphia$1'); txt.value=txt.value.replace(/\b[Rr]e(?:kj|jkj?)avik\b/g, 'Reykjavik'); txt.value=txt.value.replace(/\b[Ss]tockhome?\b/g, 'Stockholm'); //Ethnic groups txt.value=txt.value.replace(/\bsaxon(s?|y|ism)\b/g, 'Saxon$1'); //Countries txt.value=txt.value.replace(/\b[Aa]b(?:ysin?|yssin|bys+in?)nia(|ns?)\b/g, 'Abyssinia$1'); txt.value=txt.value.replace(/\bEgyptain(s)?\b/g, 'Egyptian$1'); txt.value=txt.value.replace(/\b[Gg]eo(?:gr?i|rig)a(n?s?)\b/g, 'Georgia$1'); txt.value=txt.value.replace(/\bGhanian(s?)\b/g, 'Ghanaian$1'); txt.value=txt.value.replace(/\b(?:[Ii]srea|israe)l(|is?|ites?)\b/g, 'Israel$1'); txt.value=txt.value.replace(/\b[Kk]azakstan\b/g, 'Kazakhstan'); txt.value=txt.value.replace(/\bparmesan\b/g, 'Parmesan'); txt.value=txt.value.replace(/\b[Ss]uadi+\s*[Aa]rabia\b/g, 'Saudi Arabia'); txt.value=txt.value.replace(/\b[Tt]ubingen\b/g, 'Tübingen'); txt.value=txt.value.replace(/\b[Uu]zbekystan\b/g, 'Uzbekistan'); //Personal names txt.value=txt.value.replace(/\bPin(?:nocc?|oc)hio\b/g, 'Pinocchio'); //Missing accents txt.value=txt.value.replace(/\bJoan Miro\b/g, 'Joan Miró'); txt.value=txt.value.replace(/\bSalvador Dali\b/g, 'Salvador Dalí'); txt.value=txt.value.replace(/\bCesar Franck\b/g, 'César Franck'); txt.value=txt.value.replace(/\bNicc?oll?o Macc?hiavell?i\b/g, 'Niccolò Machiavelli'); txt.value=txt.value.replace(/\bJan(ac|ač|ác)ek\b/g, 'Janáček'); txt.value=txt.value.replace(/\bJose Ferrer\b/g, 'José Ferrer'); txt.value=txt.value.replace(/\bLes Miserables\b/g, 'Les Misérables'); txt.value=txt.value.replace(/\bHerge\b/g, 'Hergé'); txt.value=txt.value.replace(/\bRene Descartes\b/g, 'René Descartes'); //Others txt.value=txt.value.replace(/\b[Pp]alm [dD](?:\'|`)[Oo]r\b/g, 'Palme d\'Or');

//Other words

txt.value=txt.value.replace(/\b(P|p)(?:eop[el]|oeple)(d?|s)\b/g, '$1eople$2'); txt.value=txt.value.replace(/\b(O|o)rch[aiou]?stra(s?|ted?|tions?|ting|ters?|l|lly)\b/g, '$1rchestra$2'); txt.value=txt.value.replace(/\b([Oo])p(?:pen?|en)ning(s?)\b/g, '$1pening$2'); txt.value=txt.value.replace(/\b([Oo])rphange(s?)\b/g, '$1rphanage$2'); txt.value=txt.value.replace(/\b(A|a)mongest\b/g, '$1mongst'); txt.value=txt.value.replace(/\b(E|e)val[au]t(e[ds]?|ing|ion|ive|ors?)\b/g, '$1valuat$2'); txt.value=txt.value.replace(/\b([Uu]ne|E|e)mply(s?|e[edr]?s?|ing|ment|ab(le|ility))\b/g, '$1mploy$2'); txt.value=txt.value.replace(/\b(J|j)ounr(al(s?|ism|ists?|l?ing)|ey(s?|ed|m[ae]n))\b/g, '$1ourn$2'); txt.value=txt.value.replace(/\b(C|c)eleb[ei]rt(y|ies)\b/g, '$1elebrit$2'); txt.value=txt.value.replace(/\b(P|p)ion(?:n|n?ee)e+r(s|ed|ing)?\b/g, '$1ioneer$2'); txt.value=txt.value.replace(/\b(H|h)umilat(e[ds]?|i(ng|ve|on)|or[sy]?)\b/g, '$1umiliat$2'); txt.value=txt.value.replace(/\b([Ee]n|[Dd]is)co(?:urge?|urage|rage?)(e(d|r?s?)?|ing(|ly))\b/g, '$1courag$2'); txt.value=txt.value.replace(/\b(P|p)lacque(s?)\b/g, '$1laque$2'); txt.value=txt.value.replace(/\b(E|e)xtra-(curricular|m(?:arit|ur)als?|terrestrials?)\b/g, '$1xtra$2'); txt.value=txt.value.replace(/\b(I|i)ntra-(murals?|state|uterine)\b/g, '$1ntra$2'); txt.value=txt.value.replace(/\b(F|f)ianll?y\b/g, '$1inally'); txt.value=txt.value.replace(/\bloosley\b/g, 'loosely'); txt.value=txt.value.replace(/\b(L|l)oosly\b/g, '$1oosely'); txt.value=txt.value.replace(/\b([BbCcFfMmRrTtWw]a|([BbHhLlVv]|[Ss]tr)i)keing\b/g, '$1king'); txt.value=txt.value.replace(/\b(M|m)usem(s?)\b/g, '$1useum$2'); txt.value=txt.value.replace(/\b(A|a)c(?:ccoun|oun|co[un])t(s?|ed|an(ts?|cy)|ing)\b/g, '$1ccount$2'); txt.value=txt.value.replace(/\b([Ii]nf|F|f)am(?:eous|ouse)(ly)?\b/g, '$1amous$2'); txt.value=txt.value.replace(/\b(C|c)ompeteing\b/g, '$1ompeting'); txt.value=txt.value.replace(/\b(A|a|[Uu]na)mbigi?ous(ly|ness)?\b/g, '$1mbiguous$2'); txt.value=txt.value.replace(/\b([Oo]verw|[Uu]nderw|[Ll]ightw|[Mm]iddlew|[Hh]eavyw|[Ff]lyw|[Cc]ounterw|[Ww]elterw|[Hh]undredw|[Ww])ieght(s|less)?\b/g, '$1eight$2'); txt.value=txt.value.replace(/\b(C|c)onfont(s?|ing|ation(al|ists?)?|ers?|ed)\b/g, '$1onfront$2'); txt.value=txt.value.replace(/\b(F|f)acilites\b/g, '$1acilities'); txt.value=txt.value.replace(/\b([Ll]ef|[Rr]igh)t\s*hande(d|rs?)\b/g, '$1t-hande$2'); txt.value=txt.value.replace(/\b(S|s)tep-((?:fa|mo|bro)ther|parent|daughter|son|sister|child(?:|ren))(s)?\b/g, '$1tep$2$3'); txt.value=txt.value.replace(/\b(N|n)otib(l[ey]|ility)\b/g, '$1otab$2'); txt.value=txt.value.replace(/\b(R|r)es(?:[cs]usc?|[cs]?uss?|[cs]?uc[cs]?)ita(t(e[ds]?|ors?|ing|ive|ions?)|ble|nts?)\b/g, '$1esuscita$2'); txt.value=txt.value.replace(/\b(P|p)r(?:imie|eme?i)r(e[ds]?|ing|)\b/g, '$1remier$2'); txt.value=txt.value.replace(/\b(P|p)red(?:[ai][cs]+es+[eo]|[aie](?:s|[cs]{2,})es+[eo]|[aie][cs]+es[eo]|[aie][cs]+es+e)r(s?)\b/g, '$1redecessor$2'); txt.value=txt.value.replace(/\bgran(?:|d-)son(s)?\b/g, 'grandson$1'); txt.value=txt.value.replace(/\b(G|g)ran(?:|d-)((?:fa|mo)ther|parent|daughter|child(?:|ren))(s)?\b/g, '$1rand$2$3'); txt.value=txt.value.replace(/\b(S|s)tep-((?:fa|mo)ther|parent|daughter|child(?:|ren))(s)?\b/g, '$1tep$2$3'); txt.value=txt.value.replace(/\b(I|i)nlu(de[ds]?|ding|sions?|sive(|ness))\b/g, '$1nclu$2'); txt.value=txt.value.replace(/\b(I|i)nbetween\b/g, '$1n between'); txt.value=txt.value.replace(/\b(I|i)[mn]psir(ed?|es|ing|ation(|al))\b/g, '$1nspir$2'); txt.value=txt.value.replace(/\b(R|r)ichochet(s?|ed)\b/g, '$1icochet$2'); txt.value=txt.value.replace(/\b(C|c)ath[ae]ch?is([mt]s?|tic)\b/g, '$1atechis$2'); txt.value=txt.value.replace(/\baquir(es?|ed|ing)\b/g, 'acquir$1'); txt.value=txt.value.replace(/\b([Aa]c|[Ii]n|[Rr]e)quis(?:tio|itoi?)n(s?)\b/g, '$1quisition$2'); txt.value=txt.value.replace(/\b([Rr]ed|D|d)is(?:rt?ic?t|t?ri[ct])(s?|ed|ing)\b/g, '$1istrict$2'); txt.value=txt.value.replace(/\b(P|p)ar(?:r+is+h?i?|is+i?|is+h)oner(s?|ship)\b/g, '$1arishioner$2'); txt.value=txt.value.replace(/\b(D|d)uing\b/g, '$1uring'); txt.value=txt.value.replace(/\b(B|b|[Rr]eb)u(?:idl?|li?d|ilid)((|ing|er)s?)\b/g, '$1uild$2'); txt.value=txt.value.replace(/\b(S|s)up(?:|pp+)ort(s?|ers?|ed|ing|ive(|ness|ly))\b/g, '$1upport$2'); txt.value=txt.value.replace(/\b(D|d)is(?:(?:|ss+)[aeio]d[ae]|s+[aeo]d[ae]|s+[aeio]da)n(ts?|ce)\b/g, '$1issiden$2'); txt.value=txt.value.replace(/\b(P|p)roball?y\b/g, '$1robably'); txt.value=txt.value.replace(/\b(E|e)xacavat(e[ds]?|ing|ions?|ors?)\b/g, '$1xcavat$2'); txt.value=txt.value.replace(/\b(C|c|Inc|inc)(?:r+ect|or(?:rr+|)ec?tc?|or+etc?)(s?|ed|ing(ly)?|ions?|ly|[ai](ble|bility)|or|ness)\b/g, '$1orrect$2'); txt.value=txt.value.replace(/\b(R|r)ec(?:c+on+[aeiou]+s+[aei]+|c*on(?:nn+|)+[aeiou]+s+[aei]+|c*on+(?:[eiou]?[aeiou]?|[aeiou]?[aeou]?)s+[aei]+|c*on+[aeiou]+s(?:ss+|)[aei]+|c*on+[aeiou]+s+(?:[ei]|ai))nce(s|)\b/g, '$1econnaissance$2'); txt.value=txt.value.replace(/\b([Pp]?r|R)(?:eis|si|es)di?en(ts?|c[ey]|[ct]ial|cies)\b/g, '$1esiden$2'); txt.value=txt.value.replace(/\b([Aa]mbi|[Cc]a[pu]|[Ff][ai]cti|[Ii]nfec|[Nn]utri|[Rr]epeti)t(?:i?oui|oiu|iuo)s(ly|ness)?\b/g, '$1tious$2'); txt.value=txt.value.replace(/\b([Pp]re|[Ss]uspi|[Vv]i)scious(ly|ness)?\b/g, '$1cious$2'); txt.value=txt.value.replace(/\b([Cc]ons|[Gg]ra|[Jj]udi|[Ll]us|[Mm]ali|[Pp]re(?:|co|da)|[Ss]p[ae]|[Ss]uspi|[Vv][eo]ra|[Vv]i)c(?:i?oui|oiu|iuo)s(ly|ness)?\b/g, '$1cious$2'); txt.value=txt.value.replace(/\b([CcVv]a|[CcFf]u|[Dd]eli|[Hh]ila|[Ii]llust|[Ii]nju|[Mm]yste|[Nn]oto|[Pp]reca|[Ss]e|[Vv]icto)r(?:i?oui|oiu|iuo)s(ly|ness)?\b/g, '$1rious$2'); txt.value=txt.value.replace(/\b(H|h)on(e[ds]?|ing)\s+in\s+on\b/g, '$1om$2 in on'); txt.value=txt.value.replace(/\b([Aa][lm]|[LlSs]|[Ww]r)omg\b/g, '$1ong'); txt.value=txt.value.replace(/\b(I|i)(?:n|n{3,})ovat(e[ds]?|ing|ions?|ive|or[sy]?)\b/g, '$1nnovat$2'); txt.value=txt.value.replace(/\b(I|i)(?:n|n{3,})umerab(l[ey]|ility|leness)\b/g, '$1nnumerab$2'); txt.value=txt.value.replace(/\b(F|f|[Uu]nf)u(?:lfill+|fil?)l(s?|ed|ing|ment)\b/g, '$1ulfill$2'); txt.value=txt.value.replace(/\b(P|p)rof(?:es{2,}|fes?)s(or(s?|ships?)|ion(s?|als?|ally)|e[ds]|ing)?\b/g, '$1rofess$2'); txt.value=txt.value.replace(/\b(A|a|[Ii]na)c(?:cess+|cc+es+)s(ib(l[ey]|ilit(y|ies))|e[ds]|ing|or(y|ies)?|ions?)?\b/g, '$1ccess$2'); txt.value=txt.value.replace(/\b(M|m)imic(ing|ed)\b/g, '$1imick$2'); txt.value=txt.value.replace(/\b(N|n)ewstand(s?)\b/g, '$1ewsstand$2'); txt.value=txt.value.replace(/\b([Aa][du]d|[Cc]oal|[Dd]emol|[Ee]d|(?:[Ee]x|[Ii]n|[Pp]ro)hib|[Tt]rad|[Tt]u)it(?:oi?|ioi)n(s?|al|ally|is[mt]s?)\b/g, '$1ition$2'); txt.value=txt.value.replace(/\b(P|p)eripherial(s|ly)?\b/g, '$1eripheral$2'); txt.value=txt.value.replace(/\b(S|s|[Dd]iss|[Uu]ns)ati?sif(y|ying|ie[ds]|act(ion|ory|orily))\b/g, '$1atisf$2'); txt.value=txt.value.replace(/\b(S|s)egement(s?|ed|ing|ations?)\b/g, '$1egment$2'); txt.value=txt.value.replace(/\b([Cc]are|[Uu]se|[Pp]eace|[Ee]vent|([Uu]ns|[Ss])uccess)full\b/g, '$1ful'); txt.value=txt.value.replace(/\b(A|a)lonside\b/g, '$1longside'); txt.value=txt.value.replace(/\b([Cc]o|I|i|[DdMm]isi|[IiUu]nco|[Rr]eco)mf(i|o)rm(s?|ed|ing|ati(ons?|ve(ly)?)|abl[ey]|(|al)(|ity))\b/g, '$1nf$2rm$3'); txt.value=txt.value.replace(/\b(A|a)war(?:ne|enes)ss+\b/g, '$1wareness'); txt.value=txt.value.replace(/\b(P|p)rop(?:ieta|rieto)r(y|ily|ies)\b/g, '$1roprietar$2'); txt.value=txt.value.replace(/\b(E|e)duact(ed?|es|ing|ors?|ion(|al|ally))\b/g, '$1ducat$2'); txt.value=txt.value.replace(/\b(M|m)ightly\b/g, '$1ightily'); txt.value=txt.value.replace(/\b([Mm]on|[Pp]ropri)(?:at[ae]|ete)r(y|ily|is[mt]s?|ies)\b/g, '$1etar$2'); txt.value=txt.value.replace(/\b(V|v|[Rr]ev|[Pp]rev|[Oo]verv)eiw(s?|ed|ing|ers?|able)\b/g, '$1iew$2'); txt.value=txt.value.replace(/\b(S|s)olist(s)?\b/g, '$1oloist$2'); txt.value=txt.value.replace(/\b([Dd]isloy|[LlRr]oy|[Pp]en|[Mm]ayor|[Aa]dmir)alit(y|ies)/g, '$1alt$2'); txt.value=txt.value.replace(/\b([Cc]ont|T|t)emp(?:ora|erar)(y|ily)/g, '$1emporar$2'); txt.value=txt.value.replace(/\b(P|p)(?:r?up|upr)os(e([sd]?|ful|less)(|ly)|ing)\b/g, '$1urpos$2'); txt.value=txt.value.replace(/\b(A|a)nerob(es?|ic(?:s?|ally))\b/g, '$1naerob$2'); txt.value=txt.value.replace(/\b(I|i)nter(?:ive|vei)w(s?|ed|ing|ers?)\b/g, '$1nterview$2'); txt.value=txt.value.replace(/\b(E|e)let?tri(cs?|city|cians?|cal(|ly)|fy(|ing)|fi(e[ds]|cation))\b/g, '$1lectri$2'); txt.value=txt.value.replace(/\b([Ii]n(?:dis)?|[Dd]is|[Ee]x)(?:ctinc|ti[cn]|ticnt)(s?|(ive|)(|ly)|ions?)\b/g, '$1tinct$2'); txt.value=txt.value.replace(/\b([Cc]on|[Rr]e|[Rr]edi)stict(s|ed|ing|ions?|ive|ively)?\b/g, '$1strict$2'); txt.value=txt.value.replace(/\b(C|c)ylinderical(ly)?\b/g, '$1ylindrical$2'); txt.value=txt.value.replace(/\b(M|m)ountai?nious(|ly)\b/g, '$1ountainous$2'); txt.value=txt.value.replace(/\b(M|m)ou(?:tai|n?tia)n(s?|eer(s?|ing)|ous)\b/g, '$1ountain$2'); txt.value=txt.value.replace(/\b([Dd]ec|[Aa]ss)idi?ous(|ly)\b/g, '$1iduous$2'); txt.value=txt.value.replace(/\b(W|w)herupon\b/g, '$1hereupon'); txt.value=txt.value.replace(/\b(M|m)in(?:si|en?s|ins)t(ers?|ry|ries)\b/g, '$1inist$2'); txt.value=txt.value.replace(/\b(T|t|[Ee]xt|[Nn]ont)radi(?:t|cti)on(s?|al|ally|alis[mt]s?)\b/g, '$1radition$2'); txt.value=txt.value.replace(/\b([Dd]e|[Ii]n|[Pp]r[eo]|[Cc]on|[Cc]ircum|[Ss]ub)scr?ip(?:t|iti)(ons?|ve|vely)\b/g, '$1scripti$2'); txt.value=txt.value.replace(/\b(Q|q|[Dd]isq)ualifi(y|ying)\b/g, '$1ualif$2'); txt.value=txt.value.replace(/\b([Ss])urveil(?:l?e|a)nce\b/g, '$1urveillance'); txt.value=txt.value.replace(/\b([Rr]e|[Oo]ut)so[ru]c(e[sd]?|ing|eful(|ly|ness))\b/g, '$1sourc$2'); txt.value=txt.value.replace(/\b([Ii]nt|[Pp]|[Rr]ep)roducton(s)?\b/g, '$1roduction$2'); txt.value=txt.value.replace(/\b(A|a)cient(s)?\b/g, '$1ncient$2'); txt.value=txt.value.replace(/\b(T|t|[Nn]ont)ec(?:i?ni|hini?|ini?)(cal(ly|ity)?|ques?|cians?)\b/g, '$1echni$2'); txt.value=txt.value.replace(/\b(S|s|[Ii]ns)ec(?:rui|ui?re?)t(y|ies)\b/g, '$1ecurit$2'); txt.value=txt.value.replace(/\b([Cc]on|[Ee]x|[Ii]n|[Oo]c|[Pp]re|[Ss]e)culd(es?|ed|ing)\b/g, '$1clud$2'); txt.value=txt.value.replace(/\b(A|a)lmun(us|ae?|i)\b/g, '$1lumn$2'); txt.value=txt.value.replace(/\b(A|a)lumin(us|ae|i)\b/g, '$1lumn$2'); txt.value=txt.value.replace(/\b(F|f)oud?nation(s)?\b/g, '$1oundation$2'); txt.value=txt.value.replace(/\b([Mm]od|[Ss]pec|[Ii]dent|[Pp]ur|[Uu]n|[Nn]ot|[Qq]ual|[Mm]agn)(?:fici?ati?|ifcati?|ificiati?|ificat)on(s)?\b/g, '$1ification$2'); txt.value=txt.value.replace(/\b(T|t)emp(?:eratu|are?a?tur|re?atur|a?rea?tur)(es?)\b/g, '$1emperatur$2'); txt.value=txt.value.replace(/\b([Cc]osmo|[Mm]etro|[Nn]ea)polit(?:ia|ai)n(s?|ism)\b/g, '$1politan$2'); txt.value=txt.value.replace(/\b([Ss]ub|[Cc]on|[RrDd]e|[Pp]ro)s(?:itut|titu)(es?|ed|ing|ions?)\b/g, '$1stitut$2'); txt.value=txt.value.replace(/\b([Rr]ep|[DdMm]isp|[Ee]mp|P|p)lacment(s?)\b/g, '$1lacement$2'); txt.value=txt.value.replace(/\b(L|l)ikley\b/g, '$1ikely'); txt.value=txt.value.replace(/\b(A|a)c(?:cro|c?or)ss\b/g, '$1cross'); txt.value=txt.value.replace(/\b(S|s)itutat(e[sd]?|ing|ions?)\b/g, '$1ituat$2'); txt.value=txt.value.replace(/\b(W|w)ebstite(s)?\b/g, '$1ebsite$2'); txt.value=txt.value.replace(/\b(L|l)egende?ry\b/g, '$1egendary'); txt.value=txt.value.replace(/\b(F|f)inancai?l(ly)?\b/g, '$1inancial$2'); txt.value=txt.value.replace(/\b(I|i)m+ediate?ley\b/g, '$1mmediately'); txt.value=txt.value.replace(/\b(D|d)ev(?:o?lop|[eo]lope)(s?|ed|ers?|ing|ment(s?|al(ly)?))\b/g, '$1evelop$2'); txt.value=txt.value.replace(/\b(P|p)ri(?:ci|nc)p(als?|ally|le[ds]?)\b/g, '$1rincip$2'); txt.value=txt.value.replace(/\b(A|a)bilites\b/g, '$1bilities'); txt.value=txt.value.replace(/\b([Ii]n|[Uu]l)(?:i?ti?mate?le|(i|t|iti)mate?le?)y\b/g, '$1timately'); txt.value=txt.value.replace(/\b(C|c)hruch(es)?\b/g, '$1hurch$2'); txt.value=txt.value.replace(/\b([Vv])erter(ans?)\b/g, '$1eter$2'); txt.value=txt.value.replace(/\b([Vv])er?ter[ae]?n[ae]r(y|ies|ians?)\b/g, '$1eterinar$2'); txt.value=txt.value.replace(/\b([Cc])ontary\b/g, '$1ontrary'); txt.value=txt.value.replace(/\b([Dd]il)l?e(?:nm|mn|mmm+)a(s)?\b/g, '$1emma$2'); txt.value=txt.value.replace(/\bdil(?:e|lem?)ma(s?)\b/g, 'dilemma$1'); txt.value=txt.value.replace(/\b([Pp])ratic(es?|ed|ing|al|ally)\b/g, '$1ractic$2'); txt.value=txt.value.replace(/\b([Rr])ougly\b/g, '$1oughly'); txt.value=txt.value.replace(/\b(S|s)lighty\b/g, '$1lightly'); txt.value=txt.value.replace(/\b([Ee])x(?:au|hua)st(s?|ed|ing|ion|ive|ively)\b/g, '$1xhaust$2'); txt.value=txt.value.replace(/\b([Aa]n|[DdRr]e|[Pp]ro|[Mm]ispro)nuo?nc(es?|ed|ing|ements?)\b/g, '$1nounc$2'); txt.value=txt.value.replace(/\b([Ee])xcempt(s?|ed|ing|ions?)\b/g, '$1xempt$2'); txt.value=txt.value.replace(/\b([Ss]ub|[Cc]on|[Ii]ncon)siquen(ces?|t(ial)?(ly)?)\b/g, '$1sequen$2'); txt.value=txt.value.replace(/\b([Ee]m|[Uu]nem|[Rr]ede|[Dd]e)ployement(s?)\b/g, '$1ployment$2'); txt.value=txt.value.replace(/\b([Ii])nfilitrat(es?|ed|ions?|ing|ors?)\b/g, '$1nfiltrat$2'); txt.value=txt.value.replace(/\bgariss?on(s?|ed)\b/g, 'garrison$1'); txt.value=txt.value.replace(/\b(E|e)x(?:isi|sis)t(s?|ing|ed|ence)\b/g, '$1xist$2'); txt.value=txt.value.replace(/\b([Hh]uman|[Pp]aran|[Aa]n[de]r|[Cc]ub|[Tt](?:abl|or|yph)|[Ss]ter|[AaOo]v|[Dd]ev)iod(s?|ed|ing|ance|al)\b/g, '$1oid$2'); txt.value=txt.value.replace(/\b(A|a)r(?:itis|tsi)t(s?|ic|ically)\b/g, '$1rtist$2'); txt.value=txt.value.replace(/\b(I|i)nti?uti(ons?|ve|vely)\b/g, '$1ntuiti$2'); txt.value=txt.value.replace(/\b(I|i)mput(s?|ting|ted)\b/g, '$1nput$2'); txt.value=txt.value.replace(/\b(P|p|[Ii]mp)rision(s?|ers?|ed|ing|ment)\b/g, '$1rison$2'); txt.value=txt.value.replace(/\b(S|s)ervent(s?)\b/g, '$1ervant$2'); txt.value=txt.value.replace(/\b([Rr]elat|[Cc]hamp|[Cc]ompan)ionsih?p(s?)\b/g, '$1ionship$2'); txt.value=txt.value.replace(/\b(N|n)um(?:eri|ber)ous(|ness|ly)\b/g, '$1umerous$2'); txt.value=txt.value.replace(/\b(A|a)ss(?:s+ign|ing)(s|ing|ed|ments?)\b/g, '$1ssign$2'); txt.value=txt.value.replace(/\b(R|r)emeber(s?|ed|ing)\b/g, '$1emember$2'); txt.value=txt.value.replace(/\b(C|c|[Dd]isc)ontiu(e[sd]?|ing|al(ly)?)\b/g, '$1ontinu$2'); txt.value=txt.value.replace(/\baslo\b/g, 'also'); txt.value=txt.value.replace(/\b(D|d)iet(y|ies)\b/g, '$1eit$2'); txt.value=txt.value.replace(/\bgramaphone(s?)\b/g, 'gramophone$1'); txt.value=txt.value.replace(/\b(S|s|[Ff]rees|[Ll]ifes)(?:ytl|tly)((?:|i[sz])(?:e[sd]?|ings?)|ist(?:|ic)s?|ish(?:|ly))\b/g, '$1tyl$2'); txt.value=txt.value.replace(/\b(T|t)oursi(m|ts?)\b/g, '$1ouris$2'); txt.value=txt.value.replace(/\b(A|a)c(?:cc+|)laim(s?|ed|ing)\b/g, '$1cclaim$2'); txt.value=txt.value.replace(/\b([Aa]c|[DdRr]e|[Dd]is|[Ee]x|[Pp]ro)cliam(s?|ed|ers?|ing)\b/g, '$1claim$2'); txt.value=txt.value.replace(/\b(M|m)oniter(s?|ed|ing)\b/g, '$1onitor$2'); txt.value=txt.value.replace(/\b(L|[Gg]?l|[Uu]nl|[Mm]o)istn(s?|ed|er(?:ship)?s?|ing|able)\b/g, '$1isten$2'); txt.value=txt.value.replace(/\b(T|t)ransp(?:[^a]r.|ar[^e])n(t|tly|ce|cy|tness)\b/g, '$1ransparen$2'); txt.value=txt.value.replace(/\b([Cc]urr|[Rr]ec|[Ss]il|[Ii]nt|[Ee]vid|[Pp]res)enlty\b/g, '$1ently'); txt.value=txt.value.replace(/\b(B|b)eeing(s?)\b/g, '$1eing$2'); txt.value=txt.value.replace(/\b(M|m)issle(s?)\b/g, '$1issile$2'); txt.value=txt.value.replace(/\b(C|c)ollasp(e[sd]?|ing|ible)\b/g, '$1ollaps$2'); txt.value=txt.value.replace(/\b(A|a)v(?:a?ra?|er)g(es?|ed|ing)\b/g, '$1verag$2'); txt.value=txt.value.replace(/\b(H|h)(?:e?ighth)(|s|en(?:s?|ed|ing|ers?))\b/g, '$1eight$2'); txt.value=txt.value.replace(/\b(I|i)m(?:m+idi?|(?:mm+)?ea?di?|m+ea?d|m+eadi?)ate?(|ly)\b/g, '$1mmediate$2'); txt.value=txt.value.replace(/\b(I|i)mmensly\b/g, '$1mmensely'); txt.value=txt.value.replace(/\b(I|i)npenetrab(l[ey]|ilit(ies|y))/g, '$1mpenetrab$2'); txt.value=txt.value.replace(/\b([Ii]t|[Mm]y|[Yy]our|[Hh]i[ms]|[Hh]er|[Oo]ne|[Oo]ur|[Tt]hy)(?:sle?|esl)f\b/g, '$1self'); txt.value=txt.value.replace(/\b([Oo]ur|[Yy]our|[Tt]hem|[Tt]heir)sle?ves\b/g, '$1selves'); txt.value=txt.value.replace(/\b(V|v)icint(y|ies)\b/g, '$1icinit$2'); txt.value=txt.value.replace(/\b(F|f)ranchiz(e[ders]?|ing)(?!\s+[Bb]oy[sz])\b/g, '$1ranchis$2'); txt.value=txt.value.replace(/\b(E|e|[Nn]one|[Qq]uinte)s(?:sentai|sentua|sesita|sencia|en[tc]ia)l(s?|ly|ity|ities|ness)\b/g, '$1ssential$2'); txt.value=txt.value.replace(/\b(E|e)s+en[tc]ialy\b/g, '$1ssentially'); txt.value=txt.value.replace(/\b(L|l)iqour(s?|ed|ices?)\b/g, '$1iquor$2'); txt.value=txt.value.replace(/\b(P|p)olitcal(|ly)\b/g, '$1olitical$2'); txt.value=txt.value.replace(/\b(C|c)om(?:m[ei]t(?:ee?|te)|it[te]ee?)(s?)\b/g, '$1ommittee$2'); txt.value=txt.value.replace(/\b([Cc])hor?nicl(e[ds]?|ers?|ing)\b/g, '$1hronicl$2'); txt.value=txt.value.replace(/\b(U|u)niveri?s(?:iti|e?ti?)(y|ies)\b/g, '$1niversit$2'); txt.value=txt.value.replace(/\b(I|i)nvesment(s?)\b/g, '$1nvestment$2'); txt.value=txt.value.replace(/\b(P|p)r(?:opo|apa)gand(as?|i[sz]e[ds]?|ists?)\b/g, '$1ropagand$2'); txt.value=txt.value.replace(/\b(P|p)r?o(?:tr|rt)a(y(?:als?|s|ed|ing)?|it(?:ure)?s?)\b/g, '$1ortra$2'); txt.value=txt.value.replace(/\b(R|r)ecrut(s?|ing|ed|ments?|ers?)\b/g, '$1ecruit$2'); txt.value=txt.value.replace(/\b(S|s)ynogog(s?|ues?|al|ical)\b/g, '$1ynagog$2'); txt.value=txt.value.replace(/\b([Pp]?r|R)esidental(|ly)\b/g, '$1esidential$2'); txt.value=txt.value.replace(/\b([Cc]on|[Ii]ncon|[Ss]ub)seqent((|ial)(|ly))\b/g, '$1sequent$2'); txt.value=txt.value.replace(/\bgrammer(s?|ians?)\b/g, 'grammar$1'); txt.value=txt.value.replace(/\b(B|b)urg(?:u?le|ula)r(s?|y|ies|i[sz](e[sd]?|ing))\b/g, '$1urglar$2'); txt.value=txt.value.replace(/\b(P|p)rof(?:fes+ion+al?|esion+al?|essionnal?|essional)l(s?|ly|ism)?\b/g, '$1rofessional$2'); txt.value=txt.value.replace(/\b([Ii]n|[RrDd]e)cumban(ts?|cy|cies|tly)\b/g, '$1cumben$2'); txt.value=txt.value.replace(/\b(I|i)mpedenc(es?)\b/g, '$1mpedanc$2'); txt.value=txt.value.replace(/\b(L|l)egionaire?(s?)\b/g, '$1egionnaire$2'); txt.value=txt.value.replace(/\b(O|o)p(?:pe|er)rat(e[sd]?|ing|ion(s?|al|ally))\b/g, '$1perat$2'); txt.value=txt.value.replace(/\b(O|o)p(?:pe|er)rationn?al(|ly)\b/g, '$1perational$2'); txt.value=txt.value.replace(/\b(I|i)nfluanc(es?|ed|ing)\b/g, '$1nfluenc$2'); txt.value=txt.value.replace(/\b(H|h)eyd(a|e)ys\b/g, '$1eyd$2y'); txt.value=txt.value.replace(/\b([gr]|[Ff]org|[Bb]eg)ot(?:|tt)en\b/g, '$1otten'); txt.value=txt.value.replace(/\b(O|o)ver(id(es?|den|ing)|ode)\b/g, '$1verr$2'); txt.value=txt.value.replace(/\b(P|p)lan(?:at[ae]|ete)r(y|iums?|ia)\b/g, '$1lanetar$2'); txt.value=txt.value.replace(/\b(F|f)eirce(r?|st|ly|ness)\b/g, '$1ierce$2'); txt.value=txt.value.replace(/\b(O|o)p(?:o|pe)(nents?|se[ds]?|sing|sites?)\b/g, '$1ppo$2'); txt.value=txt.value.replace(/\bsence(s?|d|less(|ly))\b/g, 'sense$1'); txt.value=txt.value.replace(/\b(L|l|[Cc]oll)eaugu?e(r?s?|d)\b/g, '$1eague$2'); txt.value=txt.value.replace(/\b([Ss])erver(e|ely|ity|al|ally|ance)\b/g, '$1ever$2'); txt.value=txt.value.replace(/\b([Bb]oy|[Gg]irl|[Bb]e)freind(s?)\b/g, '$1friend$2'); txt.value=txt.value.replace(/\b(F|f|[Uu]nf)reind(s|ly|ships?|liness)\b/g, '$1riend$2'); txt.value=txt.value.replace(/\b(G|g)irfr(?:ie|ei)nd(s?)\b/g, '$1irlfriend$2'); txt.value=txt.value.replace(/\b([Dd]e|[Cc]om)patment(s?|al(|ly|i[sz]e[ds]?))\b/g, '$1partment$2'); txt.value=txt.value.replace(/\b(D|d)ete(?:rmin|m)in(e[ds]?|ing|ate|ations?)\b/g, '$1etermin$2'); txt.value=txt.value.replace(/\b(D|d)iff?[aie]?ren(?:tiatiat|[cs]iat|)(e[ds]?|ing|ions?)\b/g, '$1ifferentiat$2'); txt.value=txt.value.replace(/\b(E|e|[Ii]ne)l(?:lig[ai]|iga?)b(le|ility)\b/g, '$1ligib$2'); txt.value=txt.value.replace(/\b(E|e)r(?:on[ei]?|roni?)ous(|ly)?\b/g, '$1rroneous$2'); txt.value=txt.value.replace(/\b(H|h)el(?:icopto|ecopte)r(s?)\b/g, '$1elicopter$2'); txt.value=txt.value.replace(/\b(P|p)e(?:for|rfo)m(s?|ed|ers?|ing|able|ances?)\b/g, '$1erform$2'); txt.value=txt.value.replace(/\b([Uu]nf|F|f)or(see(n|able|ing|r?s?)|(cast|tell|doom|stall|warn)(s?|ers?|ing)|(bod|clos)(es?|ing|ingly)|(court|castle|deck|face|finger|front|ground|hand|head|lock|brain|mast|name|sail|stay|noon|paw|leg|runner|quarter|taste|word)s?|foot|feet|most|told)\b/g, '$1ore$2'); txt.value=txt.value.replace(/\b(A|a)tleast\b/g, '$1t least'); txt.value=txt.value.replace(/\b(S|s)pecifc(s?|ity|ally|ations?)\b/g, '$1pecific$2'); txt.value=txt.value.replace(/\b(N|n)(ever|one)(?:the\s+|\s+the)\s?less\b/g, '$1$2theless'); txt.value=txt.value.replace(/\b([Ii])n(?:so\s+|\s+so)\s?far\b/g, '$1nsofar'); txt.value=txt.value.replace(/\b(E|e|[Ii]ne)fect(ive|ual)(|ly|ness)\b/g, '$1ffect$2$3'); txt.value=txt.value.replace(/\b([Bb]i|[Tt]ri|[Uu]ni|[Mm]otor|[Rr]e|[Ee]pi)cylc?(e[ds]?|(er|ist|able)s?|ing|ic)\b/g, '$1cycl$2'); txt.value=txt.value.replace(/\b(?:([Dd]is)s?)?([Aa])(?:s?pp?|p)oint((|ment|ee)s?|(ed|ing)(|ly)|ive)\b/g, '$1$2ppoint$3'); txt.value=txt.value.replace(/\b([Pp])ersu(e[sd]?|ers?|ing|its?|able|ant|ance)\b/g, '$1ursu$2'); txt.value=txt.value.replace(/\b(B|b)uisiness(|es|like)\b/g, '$1usiness$2'); txt.value=txt.value.replace(/\b([Gg]en|[Nn]em)[ai]s([ie]s)\b/g, '$1es$2'); txt.value=txt.value.replace(/\b(U|u)nkown\b/g, '$1nknown');

//A

txt.value=txt.value.replace(/\b(A|a)(?:dba|bo)ndon+(s?|ing|e[de]|ment)\b/g, '$1bandon$2'); txt.value=txt.value.replace(/\b(A|a)breviat(e[sd]?|ions?|ing|ors?)\b/g, '$1bbreviat$2'); txt.value=txt.value.replace(/\b(A|a)b(?:ber?|e)ra(tions?|nt|ntly|nc[ey]|ted)\b/g, '$1berra$2'); txt.value=txt.value.replace(/\b(A|a|[Dd]e)b(?:il|li)t(y|ies)\b/g, '$1bilit$2'); txt.value=txt.value.replace(/\b(A|a)bortifican(ts?)\b/g, '$1bortifacien$2'); txt.value=txt.value.replace(/\b(A|a)bs(?:cen[sc]|ens)(es?)\b/g, '$1bsenc$2'); txt.value=txt.value.replace(/\b([Aa]b|[Rr]e)solutly\b/g, '$1solutely'); txt.value=txt.value.replace(/\b(A|a)sorb(s?|ed|ing|ent|ency)\b/g, '$1bsorb$2'); txt.value=txt.value.replace(/\b(A|a)bsorb[st]i(on|ve)\b/g, '$1bsorpti$2'); txt.value=txt.value.replace(/\b(A|a)bund(?:and|en)(t|tly|ce)\b/g, '$1bundan$2'); txt.value=txt.value.replace(/\b(A|a)c(?:edd?e|cadd?e|c?ada|ad)mm?(i[ce]s?|ically|y)\b/g, '$1cadem$2'); txt.value=txt.value.replace(/\b([Aa]c|[Dd]e)c?ellerat(e[sd]?|ing|ion|or[sy]?|ive)\b/g, '$1celerat$2'); txt.value=txt.value.replace(/\b(A|a|[Uu]na)c(?:c?ept[^a]|epta)(ble|bility|nces?|nt)\b/g, '$1ccepta$2'); txt.value=txt.value.replace(/\b(A|a|[Ii]na)c(?:c?essa|essi|cesi)b(l[ey]|ilit(y|ies))\b/g, '$1ccessib$2'); txt.value=txt.value.replace(/\b(A|a)ccen?sion\b/g, '$1ccession'); txt.value=txt.value.replace(/\b(A|a)c(?:c?ess[^o]|esso|ceso)r(y|ies|iz(e[sd]?|ing))\b/g, '$1ccessor$2'); txt.value=txt.value.replace(/\b(A|a)ccc+ident(s|al)?\b/g, '$1ccident$2'); txt.value=txt.value.replace(/\b(A|a)c+ident(?:a?|ial)ly\b/g, '$1ccidentally'); txt.value=txt.value.replace(/\b(A|a)c+limiti(z|s)(e[sd]?|ing|ation)\b/g, '$1cclimati$2$3'); txt.value=txt.value.replace(/\b(A|a)c(?:com[aeo]?|omm?[aeo]?|comm[ae]?)dat(e[ds]?|ing|ions?)\b/g, '$1ccommodat$2'); txt.value=txt.value.replace(/\b(A|a)c+ompai?nn?(?:ye?|ie?|e)(d|s)\b/g, '$1ccompanie$2'); txt.value=txt.value.replace(/\b(A|a)complish(|e[sd]|ing|ments?)\b/g, '$1ccomplish$2'); txt.value=txt.value.replace(/\b(A|a)c(?:ord|cor)in(g|gly)\b/g, '$1ccordin$2'); txt.value=txt.value.replace(/\b(A|a)c+ord(?:eo|ia)(ns?)\b/g, '$1ccordio$2'); txt.value=txt.value.replace(/\b(A|a|[Ii]na)cur+a(cy|cies|te|tely)\b/g, '$1ccura$2'); txt.value=txt.value.replace(/\b(A|a)(?:c+us|cu)s(e[sdr]?|ing|al|able|ati(on|ve)s?|ator(y|ial|ially))\b/g, '$1ccus$2'); txt.value=txt.value.replace(/\b(A|a)custo(m|med)\b/g, '$1ccusto$2'); txt.value=txt.value.replace(/\b(A|a|[Oo]vera|[Uu]ndera)che?iv(e[sdr]?|ing|ements?|abl[ey])\b/g, '$1chiev$2'); txt.value=txt.value.replace(/\b(A|a)ch(?:ie|ei)vmen(ts?)\b/g, '$1chievemen$2'); txt.value=txt.value.replace(/\b(A|a)c?knowl(?:deg|ed|egd?)(e[sd]?|ing|e?ments?)\b/g, '$1cknowledg$2'); txt.value=txt.value.replace(/\b(A|a)c?knowl(?:edg?e|dege?|egd?e?)ing\b/g, '$1cknowledging'); txt.value=txt.value.replace(/\b(A|a)ccoustic(s?|al|ally)\b/g, '$1coustic$2'); txt.value=txt.value.replace(/\b(A|a)(?:cc|)qu(?:ai|ia)nt(|s|ed|edly|ing|ance(|ship)s?)\b/g, '$1cquaint$2'); txt.value=txt.value.replace(/\b(A|a)c?qu(?:ai|ia)ntenc(e(|ship)s?)\b/g, '$1cquaintanc$2'); txt.value=txt.value.replace(/\b(A|a)(?:d?qu?i?|cq[iu])(re[sd]?|ring|siti(ons?|ve|vely))\b/g, '$1cqui$2'); txt.value=txt.value.replace(/\b(A|a)(?:c?qui(?:tt)?|quitt?)t(ed|ing|a(l|nce)s?)\b/g, '$1cquit$2'); txt.value=txt.value.replace(/\b(A|a)(?:c?quitt+|quit+)(s?)\b/g, '$1cquit$2'); txt.value=txt.value.replace(/\b(A|a)ccros[st]\b/g, '$1cross'); txt.value=txt.value.replace(/\b(A|a)ctivly\b/g, '$1ctively'); txt.value=txt.value.replace(/\b(A|a)ctivit?es\b/g, '$1ctivities'); txt.value=txt.value.replace(/\b(A|a)ctu[al]ly\b/g, '$1ctually'); txt.value=txt.value.replace(/\b(A|a)dap(?:a?|ata)tion(s?|al|ally)\b/g, '$1daptation$2'); txt.value=txt.value.replace(/\b(A|a)dd(?:it[io]|tio)n(s?|al|ally)\b/g, '$1ddition$2'); txt.value=txt.value.replace(/\b(A|a)d(?:itional?|d?itiona)(|ly)\b/g, '$1dditional$2'); txt.value=txt.value.replace(/\b(A|a)d(?:dre|res?)s(|e[sd]|ing|e[er]s?|able|ability)\b/g, '$1ddress$2'); txt.value=txt.value.replace(/\b(A|a)dhear(|s)\b/g, '$1dhere$2'); txt.value=txt.value.replace(/\b([Aa]d|[Cc]o|[Ii]n)hea?ran(ts?|tly|ce)\b/g, '$1heren$2'); txt.value=txt.value.replace(/\b(A|a)dmin(?:in?str|ster|inster)(s?|ed|ing)\b/g, '$1dminister$2'); txt.value=txt.value.replace(/\b(A|a)dmi(?:n|nini?)strat(e[sd]?|ing|ors?|ions?|ive(|ly))\b/g, '$1dministrat$2'); txt.value=txt.value.replace(/\b(A|a)d+missa(ble|bility)\b/g, '$1dmissi$2'); txt.value=txt.value.replace(/\b(A|a)ddmiss?i(ons?|ble|bility)\b/g, '$1dmissi$2'); txt.value=txt.value.replace(/\b(A|a)d+mite(d|dly)\b/g, '$1dmitte$2'); txt.value=txt.value.replace(/\b(A|a)dolecs?en(ts?|ce)\b/g, '$1dolescen$2'); txt.value=txt.value.replace(/\b(A|a)ddopt(s?|ed|i(ng|ve|ons?))\b/g, '$1dopt$2'); txt.value=txt.value.replace(/\b(A|a)dultr(y|ate[sd]?|ati(ng|on)|er|ous)\b/g, '$1dulter$2'); txt.value=txt.value.replace(/\b(A|a)davanc(e[sd]?|ing|ements?)\b/g, '$1dvanc$2'); txt.value=txt.value.replace(/\b(A|a)dventrous\b/g, '$1dventurous'); txt.value=txt.value.replace(/\b(A|a)dvr?esar(y|ies|ial)\b/g, '$1dversar$2'); txt.value=txt.value.replace(/\b(A|a|[Ii]na)dvertan(t|tly|ce|cy)\b/g, '$1dverten$2'); txt.value=txt.value.replace(/\b(A|a)dvert(?:ie?s|ize)(r?s?|d|ments?)\b/g, '$1dvertise$2'); txt.value=txt.value.replace(/\b(A|a)dvert(?:s|i?z)ing\b/g, '$1dvertising'); txt.value=txt.value.replace(/\b(A|a)erie(l|ls)\b/g, '$1eria$2'); txt.value=txt.value.replace(/\b(A|a)reodynami(cs?|cal)\b/g, '$1erodynami$2'); txt.value=txt.value.replace(/\b(A|a)(?:stheti|e?sthetia|e?stheci)(cs?|cal|cal?ly)\b/g, '$1estheti$2'); txt.value=txt.value.replace(/\b(A|a)ff?i(?:la|llia)t(e[sd]?|ing|ion)\b/g, '$1ffiliat$2'); txt.value=txt.value.replace(/\b(A|a)ffici[oa]nad(os?)\b/g, '$1ficionad$2'); txt.value=txt.value.replace(/\b(A|a)for(?:men|e?mem)tioned\b/g, '$1forementioned'); txt.value=txt.value.replace(/\b(A|a)fri[ck]aane(rs?)\b/g, '$1frikane$2'); txt.value=txt.value.replace(/\b(A|a)g(?:aisn?t|ainnst|ia?nst|aints?)\b/g, '$1gainst'); txt.value=txt.value.replace(/\b(A|a)g(?:g?[ae]?re|r[aei])vat(e[sd]?|ing|ions?)\b/g, '$1ggravat$2'); txt.value=txt.value.replace(/\b(A|a)greg+at(e[sd]?|ing|ions?)\b/g, '$1ggregat$2'); txt.value=txt.value.replace(/\b(A|a)g(?:g?re|res)s(ions?|ive(|ness|ly)|ors?)\b/g, '$1ggress$2'); txt.value=txt.value.replace(/\b(A|a)g(?:rie|g?rei)v(e[sd]?|ing)\b/g, '$1ggriev$2'); txt.value=txt.value.replace(/\b(A|a|[Dd]isa)g(?:gre+|re|reee)(|s|d|ing|ments?|abl[ey])\b/g, '$1gree$2'); txt.value=txt.value.replace(/\b(A|a)greemn(ts?)\b/g, '$1greemen$2'); txt.value=txt.value.replace(/\b(A|a)(?:gricu|rgicul)tur(es?|al)\b/g, '$1gricultur$2'); txt.value=txt.value.replace(/\b(A|a)irbourne?\b/g, '$1irborne'); txt.value=txt.value.replace(/\b(A|a)i(?:rc|cr|rrcr)ar?f(ts?)\b/g, '$1ircraf$2'); txt.value=txt.value.replace(/\b([Aa]|[Aa]ir|[Ii]n|[Oo]ut|[Bb]ack|[Mm]id|[Dd]own|[Uu]p|[Bb]attle|[Ss]pring|[Cc]an|[Mm]ine|[Mm]a(?:ns|[ks]e)|[Ss]cho|[Bb][lr]oo[km]|[Cc]hester)feild(s?|ers?)\b/g, '$1field$2'); txt.value=txt.value.replace(/\b(A|a)ipor(ts?)\b/g, '$1irpor$2'); txt.value=txt.value.replace(/\b(A|a)l(?:l?bie|lbei)t\b/g, '$1lbeit'); txt.value=txt.value.replace(/\b(A|a)lc(?:ho|hoho|h?oha|h?aho)l(s?|ics?|ism)\b/g, '$1lcohol$2'); txt.value=txt.value.replace(/\b(A|a)lochol(s?|ics?|ism)\b/g, '$1lcohol$2'); txt.value=txt.value.replace(/\b(A|a)lgebraical\b/g, '$1lgebraic'); txt.value=txt.value.replace(/\b(A|a)lgorh?itm(s?|ic)\b/g, '$1lgorithm$2'); txt.value=txt.value.replace(/\b(A|a)lientat(e[ds]?|ing)\b/g, '$1lienat$2'); txt.value=txt.value.replace(/\b(A|a|[Mm]isa|[Rr]ea)llign(s?|ed|ing|ments?)\b/g, '$1lign$2'); txt.value=txt.value.replace(/\b(A|a)ll\s+intensive\s+purposes\b/g, '$1ll intents and purposes'); txt.value=txt.value.replace(/\b(A|a)l(?:l?ed|e)g(e[sd]?|ing|edly)\b/g, '$1lleg$2'); txt.value=txt.value.replace(/\b(A|a)ll?ed?ge[ld]y\b/g, '$1llegedly'); txt.value=txt.value.replace(/\b(A|a)ll?egi?enc(es?)\b/g, '$1llegianc$2'); txt.value=txt.value.replace(/\b(A|a)l(?:l?i|e)viat(e[sd]?|ing|ion|or)\b/g, '$1lleviat$2'); txt.value=txt.value.replace(/\b(A|a)l(?:lop|oph)on(es?|ic)\b/g, '$1llophon$2'); txt.value=txt.value.replace(/\b(A|a)lott?(ed|ing|ments?)\b/g, '$1llott$2'); txt.value=txt.value.replace(/\b(A|a)low(s|ed|ing|abl[ey]|ances?)\b/g, '$1llow$2'); txt.value=txt.value.replace(/\b([AaIi])lus(ions?|ive(|ly)|ory)\b/g, '$1llus$2'); txt.value=txt.value.replace(/\b(A|a)l(?:mso|oms)t\b/g, '$1lmost'); txt.value=txt.value.replace(/\b(A|a)longwith\b/g, '$1long with'); txt.value=txt.value.replace(/\b(A|a)(?:llready|l+reayd|ready|l+red+y)\b/g, '$1lready'); txt.value=txt.value.replace(/\b(A|a)lternitive(s?|ly)\b/g, '$1lternative$2'); txt.value=txt.value.replace(/\b(A|a)l(?:lth|t)ought?\b/g, '$1lthough'); txt.value=txt.value.replace(/\b(A|a)lltogether\b/g, '$1ltogether'); txt.value=txt.value.replace(/\b(A|a)l+w(?:asy|yas)\b/g, '$1lways'); txt.value=txt.value.replace(/\b(A|a)mbi?dextero?u(s|ly)\b/g, '$1mbidextrou$2'); txt.value=txt.value.replace(/\b(A|a)malg[ou]m(s?|at(e[sd]?|ing|ion))\b/g, '$1malgam$2'); txt.value=txt.value.replace(/\b(A|a)m+(?:[aeiou]tuer|[aeiou]ture|[eiou]teur)(s?|is[hm]|ishly)\b/g, '$1mateur$2'); txt.value=txt.value.replace(/\b(A|a)merliorat(e[sd]?|ing|ion)\b/g, '$1meliorat$2'); txt.value=txt.value.replace(/\b(A|a)(?:m|d)mend(|s|ed|ments?|ing|able|atory)\b/g, '$1mend$2'); txt.value=txt.value.replace(/\b(A|a)mendman(ts?)\b/g, '$1mendmen$2'); txt.value=txt.value.replace(/\b(A|a)mmenit(y|ies)\b/g, '$1menit$2'); txt.value=txt.value.replace(/\b(A|a)m?muntio(ns?)\b/g, '$1mmunitio$2'); txt.value=txt.value.replace(/\b(A|a)mock\b/g, '$1mok'); txt.value=txt.value.replace(/\b(A|a)mo?un(g|gst)\b/g, '$1mon$2'); txt.value=txt.value.replace(/\b(A|a)mourou(s|sly)\b/g, '$1morou$2'); txt.value=txt.value.replace(/\b(A|a)m(?:moun|ou)t(|s|ed|ing)\b/g, '$1mount$2'); txt.value=txt.value.replace(/\b(A|a)mmus(e[sd]?|ing|ments?)\b/g, '$1mus$2'); txt.value=txt.value.replace(/\b([Bb]e|a|A)musemn(ts?)\b/g, '$1musemen$2'); txt.value=txt.value.replace(/\b(A|a)n(?:n?al|nal?)l(?:oge|ag)(y|ies|ous)\b/g, '$1nalog$2'); txt.value=txt.value.replace(/\b(A|a)nalitic(s?|al|ally)\b/g, '$1nalytic$2'); txt.value=txt.value.replace(/\b(A|a)narchi(?:|st)m\b/g, '$1narchism'); txt.value=txt.value.replace(/\b(A|a)n(?:sest[oe]|ceste)(rs?)\b/g, '$1ncesto$2'); txt.value=txt.value.replace(/\b(A|a)ncest(?:[oe]r|ri)(y|ies|al)\b/g, '$1ncestr$2'); txt.value=txt.value.replace(/\b(A|a)ncill?iary\b/g, '$1ncillary'); txt.value=txt.value.replace(/\b(A|a)nenom(es?)\b/g, '$1nemon$2'); txt.value=txt.value.replace(/\b(A|a)n(?:n?i?hili|[ni]hil+)at(e[sd]?|ing|ions?|ors?|ive)\b/g, '$1nnihilat$2'); txt.value=txt.value.replace(/\b(A|a)nivers[ae]r(y|ies)\b/g, '$1nniversar$2'); txt.value=txt.value.replace(/\b([Aa]n|[Pp]ro|[Mm]ispro|[DdRr]e)(?:nou|oun)c(ed?|ing|e(r?|ment)s?)\b/g, '$1nounc$2'); txt.value=txt.value.replace(/\b(A|a)nn?oun?cmen(ts?)\b/g, '$1nnouncemen$2'); txt.value=txt.value.replace(/\b(A|a)n(?:nua|ual)ly\b/g, '$1nnually'); txt.value=txt.value.replace(/\b(A|a)nn?ull(s?|ments?|ar)\b/g, '$1nnul$2'); txt.value=txt.value.replace(/\b(A|a)n(?:nu|ul)l(ed|ing)\b/g, '$1nnull$2'); txt.value=txt.value.replace(/\b(A|a)nnoint(s?|ed|ings?|ments?)\b/g, '$1noint$2'); txt.value=txt.value.replace(/\b(A|a)nomol(y|ies|ous(|ly)|istic(|ally))\b/g, '$1nomal$2'); txt.value=txt.value.replace(/\b(A|a)nonim(ity|ous)\b/g, '$1nonym$2'); txt.value=txt.value.replace(/\b(A|a)ntarti(ca?)\b/g, '$1ntarcti$2'); txt.value=txt.value.replace(/\b(A|a)nthromorphi(zation|c|cally|s[mt]s?|ze[sd]?)\b/g, '$1nthropomorphi$2'); txt.value=txt.value.replace(/\b(A|a)nytying\b/g, '$1nything'); txt.value=txt.value.replace(/\b([Aa]nti|[Hh]ypo|[Pp]aren|[Ss]yn)th[ai]s([ie]s|i[sz]e[sdr]?)\b/g, '$1thes$2'); txt.value=txt.value.replace(/\b([Aa]ny|[Nn]o|[Ss]ome)hwere\b/g, '$1where'); txt.value=txt.value.replace(/\b(A|a)parteid\b/g, '$1partheid'); txt.value=txt.value.replace(/\b(A|a)p(?:ar|part)men(t|ts)\b/g, '$1partmen$2'); txt.value=txt.value.replace(/\b[Aa]p(?:e|pen?)nines\b/g, 'Apennines'); txt.value=txt.value.replace(/\b(A|a)pocolyp(ses?|tic(|al|ally|ism))\b/g, '$1pocalyp$2'); txt.value=txt.value.replace(/\b(A|a)ppolog(y|ies|ize[sd]?|(etic|ist|ia|ue)s?)\b/g, '$1polog$2'); txt.value=txt.value.replace(/\b(A|a|[Uu]na)pp?ol[ae]getic(s?|al(|ly))\b/g, '$1pologetic$2'); txt.value=txt.value.replace(/\b(A|a)p(?:p?arr[ae]|arr?[ae]|p?ara)l(s?|l?ing|l?ed)\b/g, '$1pparel$2'); txt.value=txt.value.replace(/\b(A|a)p(?:p*ea?r[aei]|(?:pp+|)[ea]a?r[aei]|p*arr+[aei]|p*arr?[ai])n(t|tly)\b/g, '$1pparen$2'); txt.value=txt.value.replace(/\b(A|a)pp?ealling\b/g, '$1ppealing'); txt.value=txt.value.replace(/\b(A|a|[Dd]isa)p(?:p?earea?|p?era|p?reara|eara)nc(es?)\b/g, '$1ppearanc$2'); txt.value=txt.value.replace(/\b(A|a)ppelat(e|ions?|ive(|ly|ness))\b/g, '$1ppellat$2'); txt.value=txt.value.replace(/\b(A|a)p(?:licati|plicait)o(ns?)\b/g, '$1pplicatio$2'); txt.value=txt.value.replace(/\b(A|a)plie(d|s)\b/g, '$1pplie$2'); txt.value=txt.value.replace(/\b([Aa]p|[Dd]e)pr(?:icai|ie?cia|ecai|eacia)(te[sd]?|ti(ng|on|ve)|bl[ey]|tory?)\b/g, '$1precia$2'); txt.value=txt.value.replace(/\b(A|a)prehensi(ve|ons?)\b/g, '$1pprehensi$2'); txt.value=txt.value.replace(/\b(A|a)proach(|e[ds]|ing|abl[ey]|ability)\b/g, '$1pproach$2'); txt.value=txt.value.replace(/\b(A|a)p+roachs\b/g, '$1pproaches'); txt.value=txt.value.replace(/\b(A|a|[Ii]na)p(?:propropia|ropri?a|proprai?)t(e[ds]?|ely|ing|eness|ions?|ors?)\b/g, '$1ppropriat$2'); txt.value=txt.value.replace(/\b(A|a|[Dd]isa)prov(e[ds]?|als?|ing(|ly))\b/g, '$1pprov$2'); txt.value=txt.value.replace(/\b(A|a)pproproximat(e[ds]?|ely|ions?)\b/g, '$1pproximat$2'); txt.value=txt.value.replace(/\b(A|a)p+rox(?:am[ai]|imi|ia)t(e[sd]?|ely|ions?)\b/g, '$1pproximat$2'); txt.value=txt.value.replace(/\b(A|a)pp?rox[aei]mm?[ai]tly\b/g, '$1pproximately'); txt.value=txt.value.replace(/\b(A|a)r?b(?:ritr?a|r?ita|rbitr?e)r(y|ily|iness)\b/g, '$1rbitrar$2'); txt.value=txt.value.replace(/\b(A|a)rc(ha?)(?:e|eao|oe?)log(y|ists?|ic(|al|ally))\b/g, '$1rc$2eolog$3'); txt.value=txt.value.replace(/\b(A|a)rchiac(|al|ally)\b/g, '$1rchaic$2'); txt.value=txt.value.replace(/\b(A|a)rchi?typ(es?|al|ic(|al|ally))\b/g, '$1rchetyp$2'); txt.value=txt.value.replace(/\b(A|a)rch(?:ec?|ic)te(?:c?t|cht?)(|s|ures?|ural(|ly))\b/g, '$1rchitect$2'); txt.value=txt.value.replace(/\b(A|a)rch[ie](?:ctect|c?techt?|tet)ur(es?|al|ally)\b/g, '$1rchitectur$2'); txt.value=txt.value.replace(/\b(A|a)rgu(?:e?|ea)bl(e|y)\b/g, '$1rguabl$2'); txt.value=txt.value.replace(/\b(A|a)rguement([as]?|ive|ative(|ly)|ation|um)\b/g, '$1rgument$2'); txt.value=txt.value.replace(/\b(A|a)rmaman(ts?)\b/g, '$1rmamen$2'); txt.value=txt.value.replace(/\b(A|a)rm[ia]sta[cs](es?)\b/g, '$1rmistic$2'); txt.value=txt.value.replace(/\b(A|a)rised\b/g, '$1rose'); txt.value=txt.value.replace(/\b(A|a)rround\b/g, '$1round'); txt.value=txt.value.replace(/\b(A|a|[Rr]ea)rang(e[sdr]?|ing|ements?)\b/g, '$1rrang$2'); txt.value=txt.value.replace(/\b(A|a|[Rr]ea)rrangmen(ts?)\b/g, '$1rrangemen$2'); txt.value=txt.value.replace(/\b(A|a)rtill?ary\b/g, '$1rtillery'); txt.value=txt.value.replace(/\b(A|a)setic(s?|ally|ism)\b/g, '$1scetic$2'); txt.value=txt.value.replace(/\b(A|a)isia(ns?)\b/g, 'Asia$2'); txt.value=txt.value.replace(/\b(A|a)sside\b/g, '$1side'); txt.value=txt.value.replace(/\b(A|a)sphyxai?t(e[sd]?|ing|ion)\b/g, '$1sphyxiat$2'); txt.value=txt.value.replace(/\b(A|a)ssas[ia]n(|s|ations?)\b/g, '$1ssassin$2'); txt.value=txt.value.replace(/\b(A|a)ss(?:asi|is)nat(e[ds]?|ions?)\b/g, '$1ssassinat$2'); txt.value=txt.value.replace(/\b(A|a)ssasined\b/g, '$1ssassinated'); txt.value=txt.value.replace(/\b(A|a)ssosicatio(ns?)\b/g, '$1ssassinatio$2'); txt.value=txt.value.replace(/\b(A|a)ssassintation\b/g, '$1ssassination'); txt.value=txt.value.replace(/\b(A|a)s+assa(ns?)\b/g, '$1ssassi$2'); txt.value=txt.value.replace(/\b(A|a)s(?:s[us]a?|au)l(ts?|ted|ting)\b/g, '$1ssaul$2'); txt.value=txt.value.replace(/\b(A|a|[Dd]isa|[Rr]ea)s(?:semp|embe?)l(e[drs]?|ing|y|ies|ages?)\b/g, '$1ssembl$2'); txt.value=txt.value.replace(/\b(A|a)ssertati(ons?|ve|vely)\b/g, '$1sserti$2'); txt.value=txt.value.replace(/\b(A|a)sign(|s|ed|ing|ments?)\b/g, '$1ssign$2'); txt.value=txt.value.replace(/\b(A|a)s(?:si|is+|siss)t(s?|ed|ing|ants?|ance)\b/g, '$1ssist$2'); txt.value=txt.value.replace(/\b(A|a)ss?iss?tence\b/g, '$1ssistance'); txt.value=txt.value.replace(/\b(As|as|[Rr]e)si(?:t[ae]|ste)n(ces?|ts?|tly|tships?)\b/g, '$1sistan$2'); txt.value=txt.value.replace(/\b(A|a)s(?:oci|soi?c)ai?t(e[sd]?|ing|ions?)\b/g, '$1ssociat$2'); txt.value=txt.value.replace(/\b(A|a)sum(e[sd]?|ing(|ly)|ptions?)\b/g, '$1ssum$2'); txt.value=txt.value.replace(/\b(As|a?s|S)teriod(s?|al)\b/g, '$1teroid$2'); txt.value=txt.value.replace(/\b(A|a)stonom(y|ers?|ic(|al|ally))\b/g, '$1stronom$2'); txt.value=txt.value.replace(/\b(A|a)s(?:sy|ym|y)metr(y|ic(|al|ally))\b/g, '$1symmetr$2'); txt.value=txt.value.replace(/\b(A|a)thies(ts?|m|tic)\b/g, '$1theis$2'); txt.value=txt.value.replace(/\b(A|a)thenea(ns?)\b/g, '$1thenia$2'); txt.value=txt.value.replace(/\b(A|a)thelet(es?|ic(s?|ism|ally))\b/g, '$1thlet$2'); txt.value=txt.value.replace(/\b(A|a)ttroci(ty|ties|ous(|ly|ness))\b/g, '$1troci$2'); txt.value=txt.value.replace(/\b(A|a)tt?atch(|e[ds]|ing|able|ments?)\b/g, '$1ttach$2'); txt.value=txt.value.replace(/\b(A|a)tack(s?|ed|ing)\b/g, '$1ttack$2'); txt.value=txt.value.replace(/\b(A|a)tain(|s|ed|ing|ments?|able)\b/g, '$1ttain$2'); txt.value=txt.value.replace(/\b(A|a)ttaindre\b/g, '$1ttainder'); txt.value=txt.value.replace(/\b(A|a)t(?:emp|tem)t(|s|ed|ing|able)\b/g, '$1ttempt$2'); txt.value=txt.value.replace(/\b(A|a)t(?:tende|ende|enda)n(ts?|ces?)\b/g, '$1ttendan$2'); txt.value=txt.value.replace(/\b(A|a|[Ii]na)t(?:tens|ent)i(ons?|ve|veness)\b/g, '$1ttenti$2'); txt.value=txt.value.replace(/\b(A|a)t(?:titi|it+u|tittu)d(e?s|inal(|ly))\b/g, '$1ttitud$2'); txt.value=txt.value.replace(/\b(A|a)torne(ys?)\b/g, '$1ttorne$2'); txt.value=txt.value.replace(/\b(A|a)tract(s?|ed|ing|ions?|ors?)\b/g, '$1ttract$2'); txt.value=txt.value.replace(/\b(A|a|[Uu]na)t(?:tra|rac)tive(|ly|ness)\b/g, '$1ttractive$2'); txt.value=txt.value.replace(/\b(A|a)t(?:ribut|tributr)(e[ds]?|ing|ions?|ives?)\b/g, '$1ttribut$2'); txt.value=txt.value.replace(/\b(A|a)ude?ia?nc(es?)\b/g, '$1udienc$2'); txt.value=txt.value.replace(/\b([AaSs]|[Ii]na)uspi[st]io(ns?|us|usly)\b/g, '$1uspicio$2'); txt.value=txt.value.replace(/\b(A|a)uthe(rs?)\b/g, '$1utho$2'); txt.value=txt.value.replace(/\b(A|a)(?:uthr|ut|th)or(?:a|i|[ai]t[ai])tive(|ly|ness)\b/g, '$1uthoritative$2'); txt.value=txt.value.replace(/\b(A|a)(?:uthr?|ut|th)orit(?:i?e|ier|hie)s\b/g, '$1uthorities'); txt.value=txt.value.replace(/\b(A|a)(?:uthr?|ut|th)orith?(y|ies|tative(|ly))\b/g, '$1uthorit$2'); txt.value=txt.value.replace(/\b(A|a)uthobiograph(y|ies|ic(|al|ally))\b/g, '$1utobiograph$2'); txt.value=txt.value.replace(/\b(A|a)utoc(?:h?t|th)on(ous(|ly)|[sy]?|es|ism)\b/g, '$1utochthon$2'); txt.value=txt.value.replace(/\b(A|a)utomatica?ly\b/g, '$1utomatically'); txt.value=txt.value.replace(/\b(A|a)utomibil(es?|ing)\b/g, '$1utomobil$2'); txt.value=txt.value.replace(/\b(A|a)uto(?:monom|[mn]on|mom)ou(s|sly)\b/g, '$1utonomou$2'); txt.value=txt.value.replace(/\b(A|a)uxill?i?ar(y|ies)\b/g, '$1uxiliar$2'); txt.value=txt.value.replace(/\b(A|a)vailablity\b/g, '$1vailability'); txt.value=txt.value.replace(/\b(A|a|[Uu]na)v(?:ai|a|i)l?(?:ai?|ia?|)b(le|ility)\b/g, '$1vailab$2'); txt.value=txt.value.replace(/\b(A|a)valanc(es?)\b/g, '$1valanch$2'); txt.value=txt.value.replace(/\b(A|a)verageed\b/g, '$1veraged'); txt.value=txt.value.replace(/\b(A|a)vai?t(ion|ors?)\b/g, '$1viat$2'); txt.value=txt.value.replace(/\b(A|a)(?:ckw|wk|kw)ard(|ly|ness)\b/g, '$1wkward$2');

//B

txt.value=txt.value.replace(/\b([Bb](?:ack|attle|elow)|[Ff]ore|[Aa]bove|[Uu]nder|[Cc]amp)(?:gorun|roun|grou)(ds?)\b/g, '$1groun$2'); txt.value=txt.value.replace(/\b(B|b)arbituate(s?)\b/g, '$1arbiturate$2'); txt.value=txt.value.replace(/\b(B|b)alisti(cs?|cally|cians?)\b/g, '$1allisti$2'); txt.value=txt.value.replace(/\b(B|b)a(?:loo)n(|s|ed|ing|ists?)\b/g, '$1alloon$2'); txt.value=txt.value.replace(/\b(B|b)an(?:an|na)n(as?)\b/g, '$1anan$2'); txt.value=txt.value.replace(/\b(B|b)andwith\b/g, '$1andwidth'); txt.value=txt.value.replace(/\b(B|b)at(?:tal?|al)lio(ns?)\b/g, '$1attalio$2'); txt.value=txt.value.replace(/\b(B|b)an(?:krup|rupt)(s?|ed|cy|cies)\b/g, '$1ankrupt$2'); txt.value=txt.value.replace(/\b(B|b)asica?ly\b/g, '$1asically'); txt.value=txt.value.replace(/\b(B|b)eachea(ds?)\b/g, '$1eachhea$2'); txt.value=txt.value.replace(/\b(B|b)eated\b/g, '$1eat'); txt.value=txt.value.replace(/\b(B|b)e(?:au?|ua?)t[iy]full?(|ly)\b/g, '$1eautiful$2'); txt.value=txt.value.replace(/\b(B|b)e(?:ua|u)ty\b/g, '$1eauty'); txt.value=txt.value.replace(/\b(B|b)ecamae\b/g, '$1ecame'); txt.value=txt.value.replace(/\b(B|b)[ae]c[ce]ause\b/g, '$1ecause'); txt.value=txt.value.replace(/\b(B|b)e(?:a?cus|cuas|cous|casu)e\b/g, '$1ecause'); txt.value=txt.value.replace(/\b(B|b)ecomm(es?|ing)\b/g, '$1ecom$2'); txt.value=txt.value.replace(/\b(B|b)eg(?:gin|g?i)n(ers?|ings?)\b/g, '$1eginn$2'); txt.value=txt.value.replace(/\b(B|b)eleagur(ed?)\b/g, '$1eleaguer$2'); txt.value=txt.value.replace(/\b(B|b)eligum\b/g, 'Belgium'); txt.value=txt.value.replace(/\b(B|b|[DdMm]isb|[Uu]nb)elei(fs?)\b/g, '$1elie$2'); txt.value=txt.value.replace(/\b(B|b|[DdMm]isb|[Nn]onb|[Uu]nb)ele?iv(e[sdr]?|ing)\b/g, '$1eliev$2'); txt.value=txt.value.replace(/\b(B|b)el(?:l?igera|igere)n(ts?|tly)\b/g, '$1elligeren$2'); txt.value=txt.value.replace(/\b(B|b)ellweathe(rs?)\b/g, '$1ellwethe$2'); txt.value=txt.value.replace(/\b(B|b)en[ia]fi(ts?|tted|tting|cial|ciary|ciaries|cent)\b/g, '$1enefi$2'); txt.value=txt.value.replace(/\b(B|b)en[ei]ficai?(l|ry|ries)\b/g, '$1eneficia$2'); txt.value=txt.value.replace(/\b[Bb]ernou(?:il|)li\b/g, 'Bernoulli'); txt.value=txt.value.replace(/\b(B|b)eastiali?ty\b/g, '$1estiality'); txt.value=txt.value.replace(/\b(B|b)e(?:t[ew]en|wteen|tweem)\b/g, '$1etween'); txt.value=txt.value.replace(/\b(B|b)eyong\b/g, '$1eyond'); txt.value=txt.value.replace(/\b(B|b)ib(?:i?lo|li)graph(y|ies|ic(|al|ally)|ers?)\b/g, '$1ibliograph$2'); txt.value=txt.value.replace(/\b(B|b|[Tt]r|[Uu]n|[Mm]ult)illingual(s?|ly|is[mt]s?)\b/g, '$1ilingual$2'); txt.value=txt.value.replace(/\b(B|b)laten(t|tly|cy)\b/g, '$1latan$2'); txt.value=txt.value.replace(/\b(B|b)litzkreig\b/g, '$1litzkrieg'); txt.value=txt.value.replace(/\b([Bb]ody|[Hh]ome|[Ss]hip)[d\-]build(ers?|ing)\b/g, '$1build$2'); txt.value=txt.value.replace(/\b(B|b)onnano\b/g, '$1onanno'); txt.value=txt.value.replace(/\b(B|b)ou?ndr(y|ies)\b/g, '$1oundar$2'); txt.value=txt.value.replace(/\b(B|b)ra(?:sil?|[sz]il)lia(ns?)\b/g, 'Brazilia$2'); txt.value=txt.value.replace(/\b(B|b)reakt(?:hough|hrought|trough)(s?)\b/g, '$1reakthrough$2'); txt.value=txt.value.replace(/\b(B|b)rethe(?:n|ren)\b/g, '$1rethren'); txt.value=txt.value.replace(/\b(B|b)reif(s?|ly|ings?|ed|er|est)\b/g, '$1rief$2'); txt.value=txt.value.replace(/\b(B|b)rimeston(es?)\b/g, '$1rimston$2'); txt.value=txt.value.replace(/\b[Bb]riti?an\b/g, 'Britain'); txt.value=txt.value.replace(/\b[Bb]ritt+(ish|anni[ac])\b/g, 'Brit$1'); txt.value=txt.value.replace(/\b(B|b)r(?:a?od|oa|oada)cast(s?|ed|ers?|ing)\b/g, '$1roadcast$2'); txt.value=txt.value.replace(/\bbroadyl?\b/g, 'broadly'); txt.value=txt.value.replace(/\b(B|b|[Rr]eb|[Ii]nb|[Pp]reb|[Uu][pn]b|[Oo]verb|[Jj]erryb)uildt\b/g, '$1uilt'); txt.value=txt.value.replace(/\b(B|b)(?:ou?y|uo)an(t|cy)\b/g, '$1uoyan$2'); txt.value=txt.value.replace(/\b(B|b)(?:eaur[ao]|ure?u?)cra(ts?|tic|cy|cies)\b/g, '$1ureaucra$2'); txt.value=txt.value.replace(/\b(B|b)urried\b/g, '$1uried'); txt.value=txt.value.replace(/\b(B|b)ui?snes?s(|es|(wo)?m[ae]n|person|people|like)\b/g, '$1usiness$2');

//C

txt.value=txt.value.replace(/\b(C|c)afateri(as?)\b/g, '$1afeteri$2'); txt.value=txt.value.replace(/\b(C|c)asio(ns?)\b/g, '$1aisso$2'); txt.value=txt.value.replace(/\b(C|c|[Mm]isc|[Rr]ec)alucu?lat(e[sd]?|ing|ingly|ions?|ors?)\b/g, '$1alculat$2'); txt.value=txt.value.replace(/\b(C|c)alculs\b/g, '$1alculus'); txt.value=txt.value.replace(/\b(C|c)al(?:a|li)b(ers?|res?|rat(e[ds]?|ing|ion))\b/g, '$1alib$2'); txt.value=txt.value.replace(/\b(C|c)aligraph(y|ers|ists?|ic)\b/g, '$1alligraph$2'); txt.value=txt.value.replace(/\b[Cc]alvanis(m|ts?)\b/g, 'Calvinis$1'); txt.value=txt.value.replace(/\b[Cc]ambrige\b/g, 'Cambridge'); txt.value=txt.value.replace(/\b(C|c)am[ao]flad?g(e[sd]?|ing)\b/g, '$1amouflag$2'); txt.value=txt.value.replace(/\b(C|c)ampa(?:g?in|a?ig|ing)(s?|ed|ers?|ing)\b/g, '$1ampaign$2'); txt.value=txt.value.replace(/\b(C|c)ancel(ations?|ous)\b/g, '$1ancell$2'); txt.value=txt.value.replace(/\b(C|c)and(?:ad|i|idi)at(es?|ures?)\b/g, '$1andidat$2'); txt.value=txt.value.replace(/\b(C|c)anniste(rs?)\b/g, '$1aniste$2'); txt.value=txt.value.replace(/\b(C|c)a(?:|nn)not\b/g, '$1annot'); txt.value=txt.value.replace(/\b(C|c)annonica(ls?|lly)\b/g, '$1anonica$2'); txt.value=txt.value.replace(/\b(C|c)ap(?:er|i)b(l[ey]|ility|ilities)\b/g, '$1apab$2'); txt.value=txt.value.replace(/\b(C|c)aptial(s?|is[mt]s?|istic(|ally))\b/g, '$1apital$2'); txt.value=txt.value.replace(/\b(C|c)arreer\b/g, '$1areer'); txt.value=txt.value.replace(/\b(C|c)arefull\b/g, '$1areful'); txt.value=txt.value.replace(/\b(C|c)ar(?:r?ab?|rib|r?i)bean\b/g, 'Caribbean'); txt.value=txt.value.replace(/\b(C|c)areing\b/g, '$1aring'); txt.value=txt.value.replace(/\b[Cc]armalit(es?)\b/g, 'Carmelit$1'); txt.value=txt.value.replace(/\b([Cc]ar|[Oo]m)niv[^o]rous\b/g, '$1nivorous'); txt.value=txt.value.replace(/\b(C|c)arthagia(ns?)\b/g, 'Carthaginia$2'); txt.value=txt.value.replace(/\b(C|c)artill?(?:[ie]d?|ad)g(e|inous)\b/g, '$1artilag$2'); txt.value=txt.value.replace(/\b(C|c)art(?:ho|a)graph(y|ers?|ic)\b/g, '$1artograph$2'); txt.value=txt.value.replace(/\b(C|c)art(?:drid|ri)g(es?)\b/g, '$1artridg$2'); txt.value=txt.value.replace(/\b(C|c)as(?:et?|s?e)t(es?)\b/g, '$1assett$2'); txt.value=txt.value.replace(/\b(C|c)as(?:s?aw[ao]|s?owar|owa)r(y|ies)\b/g, '$1assowar$2'); txt.value=txt.value.replace(/\b(C|c)asualit(y|ies)\b/g, '$1asualt$2'); txt.value=txt.value.replace(/\b([Cc]ata)lou?g(es?)\b/g, '$1logu$2'); txt.value=txt.value.replace(/\b(C|c)atapault(s?|ed|ing)\b/g, '$1atapult$2'); txt.value=txt.value.replace(/\b(C|c)atastrophies\b/g, '$1atastrophes'); txt.value=txt.value.replace(/\b([Ss]ubc|C|c)atagor(y|ies|i[sz]ed|ical|ically)\b/g, '$1ategor$2'); txt.value=txt.value.replace(/\b(C|c)at(?:terpil?|t?erpi)la(rs?)\b/g, '$1aterpilla$2'); txt.value=txt.value.replace(/\b(C|c)athe?li(cs?)\b/g, '$1atholi$2'); txt.value=txt.value.replace(/\b(C|c)atholocism\b/g, '$1atholicism'); txt.value=txt.value.replace(/\b(C|c)aucasio(ns?)\b/g, '$1aucasia$2'); txt.value=txt.value.replace(/\b(C|c)u?acuse([sd])\b/g, '$1aucuse$2'); txt.value=txt.value.replace(/\b(C|c)eling(s?|ed)\b/g, '$1eiling$2'); txt.value=txt.value.replace(/\b(C|c)ellpading\b/g, '$1ellpadding'); txt.value=txt.value.replace(/\b(C|c)elcius\b/g, 'Celsius'); txt.value=txt.value.replace(/\b(C|c)emen?tare?(y|ies)\b/g, '$1emeter$2'); txt.value=txt.value.replace(/\b(C|c)ensu(rs?)\b/g, '$1enso$2'); txt.value=txt.value.replace(/\b(C|c|(?:[Bb]|[Tt]r|[Ss]em|[Ss]esqu|[Qq]uadr)ic)ente(?:nte|)nia(ls?|lly)\b/g, '$1entennia$2'); txt.value=txt.value.replace(/\b(C|c)enteral(|ly|is[mt]s?|i[sz](e[sd]?|ing))\b/g, '$1entral$2'); txt.value=txt.value.replace(/\b(C|c)entru(y|ies)\b/g, '$1entur$2'); txt.value=txt.value.replace(/\b(C|c)ermaic(s?|ists?)\b/g, '$1eramic$2'); txt.value=txt.value.replace(/\b(C|c|[Uu]nc)er[io]mon(y|ies|i(al|ous)(|ly))\b/g, '$1eremon$2'); txt.value=txt.value.replace(/\b(C|c|[Uu]nc|[Aa]sc)ertian(s?|ty|ties|ing)\b/g, '$1ertain$2'); txt.value=txt.value.replace(/\b(C|c|[Uu]nc)ertai?ni(t|l)(y|ies)\b/g, '$1ertain$2$3'); txt.value=txt.value.replace(/\b([Cc]er|[Bb]eau?|[FfMm]or|[Jj]us|[Nn]o|[Rr]a|[Rr]ec|[Tt]es|[Ii]den|[Qq]uan)ta?fi(e[ds]|abl[ey]|cates?|cations?)\b/g, '$1tifi$2'); txt.value=txt.value.replace(/\b(C|c)harim(an|en|anships?)\b/g, '$1hairm$2'); txt.value=txt.value.replace(/\b(C|c)hal(?:e|la)ng(e[ds]?|ers?|ing)\b/g, '$1halleng$2'); txt.value=txt.value.replace(/\b(C|c)hampange\b/g, '$1hampagne'); txt.value=txt.value.replace(/\b(C|c)hancel(?:o|l?e)r(s?|ship|sville)\b/g, '$1hancellor$2'); txt.value=txt.value.replace(/\b(C|c|[Ii]nterc|[Uu]nc|[Ee]xc|[Rr]ec|[Dd]isc)ha([nr])g[aei](bl[ey]|bility|bleness)\b/g, '$1ha$2gea$3'); txt.value=txt.value.replace(/\b(C|c)(?:a?hrac|arach?)t[aeo]r(s?|i[sz](e[sd]?|ing|ations?)|istics?)\b/g, '$1haracter$2'); txt.value=txt.value.replace(/\b(C|c)ha?r(?:achte|a?ct[ao]|e?cte|ate)r(s?|i[sz](e[sd]?|ing|ations?)|istics?)\b/g, '$1haracter$2'); txt.value=txt.value.replace(/\b(C|c|[Uu]nc)haracter(?:sisti|i[st]i|isiti|sti|ist|i)c(s?|ally)\b/g, '$1haracteristic$2'); txt.value=txt.value.replace(/\b(C|c)h?arasma(|tic(s?|ally))\b/g, '$1harisma$2'); txt.value=txt.value.replace(/\bcarisma(|tic(s?|ally))\b/g, 'charisma$1'); txt.value=txt.value.replace(/\b(C|c)has(rs?)\b/g, '$1hase$2'); txt.value=txt.value.replace(/\b(C|c)hemcia(ls?|lly)\b/g, '$1hemica$2'); txt.value=txt.value.replace(/\b(C|c)hemicaly\b/g, '$1hemically'); txt.value=txt.value.replace(/\b(C|c)hemestry\b/g, '$1hemistry'); txt.value=txt.value.replace(/\b(C|c)heif(s?|ly|doms?|ship|tains?)\b/g, '$1hief$2'); txt.value=txt.value.replace(/\b(C|c)hildbird\b/g, '$1hildbirth'); txt.value=txt.value.replace(/\b(C|c)hilder?e?n\b/g, '$1hildren'); txt.value=txt.value.replace(/\b(C|c)hrous(|es|ing)?\b/g, '$1horus$2'); txt.value=txt.value.replace(/\b(C|c|[Mm]isc)hoosen\b/g, '$1hosen'); txt.value=txt.value.replace(/\b(C|c)hurchs\b/g, '$1hurches'); txt.value=txt.value.replace(/\b(C|c)incin(?:n?at|a)t(i|ians?|us)\b/g, 'Cincinnat$2'); txt.value=txt.value.replace(/\b(C|c)(?:ircu|iricui?|urcui)t(s?|ed|ing|ry|ries|ous(|ly))\b/g, '$1ircuit$2'); txt.value=txt.value.replace(/\b(C|c|[Rr]ec)irculato(ns?)\b/g, '$1irculatio$2'); txt.value=txt.value.replace(/\b(C|c)ircum(?:sc?i[cs]|[cs]+ic)io(ns?)\b/g, '$1ircumcisio$2'); txt.value=txt.value.replace(/\b(C|c)ivillian(s?|iz(e[ds]?|ing|ation))\b/g, '$1ivilian$2'); txt.value=txt.value.replace(/\b(C|c)laimes\b/g, '$1laims'); txt.value=txt.value.replace(/\b(C|c)lasic(s?|al|ally|is[tm]s?|ize[ds]?|izing)\b/g, '$1lassic$2'); txt.value=txt.value.replace(/\b(C|c|[Uu]nc)lera\b/g, '$1lear'); txt.value=txt.value.replace(/\b(C|c)learea?nc(es?)\b/g, '$1learanc$2'); txt.value=txt.value.replace(/\b(C|c)laer(e[rd]|est|ly)\b/g, '$1lear$2'); txt.value=txt.value.replace(/\b(C|c)liche(|s)\b/g, '$1liché$2'); txt.value=txt.value.replace(/\b(C|c)lini?cia(l|lly)\b/g, '$1linica$2'); txt.value=txt.value.replace(/\b(C|c)linicaly\b/g, '$1linically'); txt.value=txt.value.replace(/\b(C|c)octai(ls?)\b/g, '$1ocktai$2'); txt.value=txt.value.replace(/\b(C|c|[Rr]ec)ogni(s|z)en(t|ces?|tly)\b/g, '$1ogni$2an$3'); txt.value=txt.value.replace(/\b(C|c)o-incid(e[sd]?|ent(|al|ally))\b/g, '$1oincid$2'); txt.value=txt.value.replace(/\b(C|c)ol(?:abo|l?abe)r+at(e[sd]?|ors?|ing|ions?|ive(|ly))\b/g, '$1ollaborat$2'); txt.value=txt.value.replace(/\b(C|c)olateral(|ly|ize[ds]?|izing)\b/g, '$1ollateral$2'); txt.value=txt.value.replace(/\b(C|c)ollegu(es?)\b/g, '$1olleagu$2'); txt.value=txt.value.replace(/\b(C|c)ollecto(ns?)\b/g, '$1ollectio$2'); txt.value=txt.value.replace(/\b(C|c)ol(?:ect[aei]|lecte)bl(es?)\b/g, '$1ollectibl$2'); txt.value=txt.value.replace(/\b(C|c)olel?cti(ves?|ons?|vely)\b/g, '$1ollecti$2'); txt.value=txt.value.replace(/\b(C|c)ollon(y|ies)\b/g, '$1olon$2'); txt.value=txt.value.replace(/\b(C|c)olonizators\b/g, '$1olonizers'); txt.value=txt.value.replace(/\b(C|c)ol+onad(es?)\b/g, '$1olonnad$2'); txt.value=txt.value.replace(/\b(C|c)ol(?:los?|l?o)s(al|ally|us)\b/g, '$1oloss$2'); txt.value=txt.value.replace(/\b(C|c)ombanatio(ns?)\b/g, '$1ombinatio$2'); txt.value=txt.value.replace(/\b(C|c)ombusi(on|ve|vely)\b/g, '$1ombusti$2'); txt.value=txt.value.replace(/\b(C|c)ombac(ks?)\b/g, '$1omebac$2'); txt.value=txt.value.replace(/\b(C|c)ommedi(c|ans?)\b/g, '$1omedi$2'); txt.value=txt.value.replace(/\b(C|c|[Uu]nc)o(?:nforta|mforti)bl(e|y)\b/g, '$1omfortabl$2'); txt.value=txt.value.replace(/\b([Uu]pc|[Cc])omming\b/g, '$1oming'); txt.value=txt.value.replace(/\b(C|c)omand(ee?rs?|ed|eer(ed|ing)|oe?s?|ments?)\b/g, '$1ommand$2'); txt.value=txt.value.replace(/\b(C|c)om(?:em+|me)m[oe]r[ai]t(e[sd]?|ing|ions?|ives?)\b/g, '$1ommemorat$2'); txt.value=txt.value.replace(/\b(C|c)om+em+(?:er[ai]|ori)t(e[sd]?|ing|ions?|ives?)\b/g, '$1ommemorat$2'); txt.value=txt.value.replace(/\b(C|c)omm?erici?al(s?|ly|i[sz](e[sd]?|ing|ation)|is[mt]s?)\b/g, '$1ommercial$2'); txt.value=txt.value.replace(/\b(C|c|[Dd]ec)om(?:is|mi)sio(ns?|ning|ned|ners?)\b/g, '$1ommissio$2'); txt.value=txt.value.replace(/\b(C|c)om(?:it?|m?it)tmen(ts?)\b/g, '$1ommitmen$2'); txt.value=txt.value.replace(/\b(C|c)o(?:mitt|mmit)(ees?|ed|ing|al)\b/g, '$1ommitt$2'); txt.value=txt.value.replace(/\b(C|c)omod+it(y|ies)\b/g, '$1ommodit$2'); txt.value=txt.value.replace(/\b(C|c|[Uu]nc)omme(ns?|ners?|nly|nali?t(y|ies))\b/g, '$1ommo$2'); txt.value=txt.value.replace(/\b(C|c|[Uu]nc)ommongly\b/g, '$1ommonly'); txt.value=txt.value.replace(/\b(C|c)omm?onweath\b/g, '$1ommonwealth'); txt.value=txt.value.replace(/\b(C|c)om(?:unic|minic|muin?c|mui?ni|munc?i)at(e[sd]?|ors?|ions?|ive|ively)\b/g, '$1ommunicat$2'); txt.value=txt.value.replace(/\b(C|c)om(?:u|m?un)n(al|ally|ity|ities|ions?|is[mt]s?)\b/g, '$1ommun$2'); txt.value=txt.value.replace(/\b(C|c)omapan(y|ies|ions?)\b/g, '$1ompan$2'); txt.value=txt.value.replace(/\b(C|c)omparitiv(e|ely)\b/g, '$1omparativ$2'); txt.value=txt.value.replace(/\b(C|c)omparisio(ns?)\b/g, '$1ompariso$2'); txt.value=txt.value.replace(/\b(C|c|[Ii]nc|[Hh]istoc)ompa(?:ti?[ai]b|ti?abi|bi)lit(y|ies)\b/g, '$1ompatibilit$2'); txt.value=txt.value.replace(/\b(C|c|[Ii]nc)ompati?abl([ey])\b/g, '$1ompatibl$2'); txt.value=txt.value.replace(/\b([Cc]om|[Dd]is)pensantio(ns?|nal)\b/g, '$1pensatio$2'); txt.value=txt.value.replace(/\b(C|c|[Nn]onc)omp[ie]tit(ons?|ve(|ly|ness))\b/g, '$1ompetiti$2'); txt.value=txt.value.replace(/\b(C|c)omp(?:i?li|lil)ation(s?)\b/g, '$1ompilation$2'); txt.value=txt.value.replace(/\b(C|c|[Ii]nc)omp(?:et[ai]|[ai]t[ea])n(ce|t|tly)\b/g, '$1ompeten$2'); txt.value=txt.value.replace(/\b(C|c)ompe(?:titi|i?t|t[ae]t)i(ons?|ve(|ly|ness))\b/g, '$1ompetiti$2'); txt.value=txt.value.replace(/\b(C|c)opmetito(rs?)\b/g, '$1ompetito$2'); txt.value=txt.value.replace(/\b(C|c)omplie(rs?)\b/g, '$1ompile$2'); txt.value=txt.value.replace(/\b(C|c|[Ii]nc)omplet(?:elyl|le?y)\b/g, '$1ompletely'); txt.value=txt.value.replace(/\b(C|c)ompletet?i(ng|on?)\b/g, '$1ompleti$2'); txt.value=txt.value.replace(/\b([Cc]om|[Dd]e|[Ex]x|[Oo]p|[Pp]ro)ponan(ts?)\b/g, '$1ponen$2'); txt.value=txt.value.replace(/\b(C|c)omphrehensi(ve|vely|on|ble)\b/g, '$1omprehensi$2'); txt.value=txt.value.replace(/\b(C|c)ompr(?:imis|[io]miz)(e[ds]?|ing)\b/g, '$1ompromis$2'); txt.value=txt.value.replace(/\b([Cc]om|[Pp]ro)puls[ae]r(y|ies)\b/g, '$1pulsor$2'); txt.value=txt.value.replace(/\b([Ii]ndis|[Dd]is|[Rr]e|[Dd]isre|[Ii]m|[Cc]om|[Ii]ncom)put(?:e?i|ea)b(l[ey]|ility)\b/g, '$1putab$2'); txt.value=txt.value.replace(/\b(C|c)m?opute(|rs?|d|ri[zs]e[ds]?)\b/g, '$1ompute$2'); txt.value=txt.value.replace(/\b(C|c)omputari([zs]e[ds]?|[zs]ing)\b/g, '$1omputeri$2'); txt.value=txt.value.replace(/\b(C|c|[Ii]nc)oncie(ts?|ted|ve[srd]?|ving|vab(l[ey]|ility))\b/g, '$1oncei$2'); txt.value=txt.value.replace(/\b(C|c)onsentrat(e[ds]?|ing|ions?)\b/g, '$1oncentrat$2'); txt.value=txt.value.replace(/\b(C|c)onsept(s?|ions?|ual(|ly|is[mt]s?|iz(e[ds]?|ing|ations?)))\b/g, '$1oncep$2'); txt.value=txt.value.replace(/\b(C|c|[Uu]nc)onsern(s?|ing|ed)\b/g, '$1oncern$2'); txt.value=txt.value.replace(/\b([Cc]on|[Rr]ec)cur(?:e|ra)n(t|tly|ces?)\b/g, '$1curren$2'); txt.value=txt.value.replace(/\b(C|c)omdemnat(ions?|ory)\b/g, '$1ondemnatio$2'); txt.value=txt.value.replace(/\b(C|c)ondemme([dr])\b/g, '$1ondemne$2'); txt.value=txt.value.replace(/\b(C|c)ondidtio(ns?|nal)\b/g, '$1onditio$2'); txt.value=txt.value.replace(/\b(C|c)onfidental(|ly|ity)\b/g, '$1onfidential$2'); txt.value=txt.value.replace(/\b(C|c)onfids\b/g, '$1onfides'); txt.value=txt.value.replace(/\b(C|c)onfigureabl(e|y)\b/g, '$1onfigurabl$2'); txt.value=txt.value.replace(/\b([Cc]o|I|i)nfict(s?|ing(|ly)|ed)\b/g, '$1flict$2'); txt.value=txt.value.replace(/\b(C|c)oform\b/g, '$1onform'); txt.value=txt.value.replace(/\b(C|c)ongradulat(e[sd]?|ing|ions|ory)\b/g, '$1ongratulat$2'); txt.value=txt.value.replace(/\b(C|c)ongresiona(l|lly)\b/g, '$1ongressiona$2'); txt.value=txt.value.replace(/\b(C|c)onjecutr(e[ds]?|ing)\b/g, '$1onjectur$2'); txt.value=txt.value.replace(/\b(C|c)onju[cn]n?ti(ons?|ves?|vitis)\b/g, '$1onjuncti$2'); txt.value=txt.value.replace(/\b(C|c|[Dd]isc|[Uu]nc)onect(s?|ions?|ed|ing|ives?|ors?)\b/g, '$1onnect$2'); txt.value=txt.value.replace(/\b[Cc]on(?:(?:nn+|)ec?t?icut*|n*et?c?icut*|n*ec?t?c?icut+)t\b/g, 'Connecticut'); txt.value=txt.value.replace(/\b(C|c)oniv(e[drs]?|ing)\b/g, '$1onniv$2'); txt.value=txt.value.replace(/\b(C|c)(?:o|an)notati(ons?|ve|vely)\b/g, '$1onnotati$2'); txt.value=txt.value.replace(/\b(C|c)onqu(?:er|re|erre)d\b/g, '$1onquered'); txt.value=txt.value.replace(/\b(C|c)onquere(rs?)\b/g, '$1onquero$2'); txt.value=txt.value.replace(/\b(C|c|[Ss]ubc|[Pp]rec|[Ss]emic|[Uu]nc)on[cs]io(us|usly|usness|nabl[ey])\b/g, '$1onscio$2'); txt.value=txt.value.replace(/\b([Cc]on|[Pp]re|[Nn]e|[Oo]mni|[Bb]io|[Gg]eo|[Nn]euro|[Pp]seudo)[cs]ien(t|tly|ces?|tious|tiously|tific|tifically)\b/g, '$1scien$2'); txt.value=txt.value.replace(/\b(C|c|[Ss]ubc|[Pp]rec|[Ss]emic|[Uu]nc)ons(?:ciou|ici?ous?)ness(|es)\b/g, '$1onsciousness$2'); txt.value=txt.value.replace(/\b(C|c)onsectutiv(e|ely)\b/g, '$1onsecutiv$2'); txt.value=txt.value.replace(/\b(C|c)on(?:s?cens|e?senc)us\b/g, '$1onsensus'); txt.value=txt.value.replace(/\b(C|c)onscent\b/g, '$1onsent'); txt.value=txt.value.replace(/\b([Cc]on|[Ii]ncon|[Ss]ub)squen(ces?|t|tly|tial(|ly))\b/g, '$1sequen$2'); txt.value=txt.value.replace(/\b(C|c)onsequeseces\b/g, '$1onsequences'); txt.value=txt.value.replace(/\b(C|c)onse(?:nquent|n?quentual)ly\b/g, '$1onsequently'); txt.value=txt.value.replace(/\b(C|c)onservitiv(es?|ely|ism)\b/g, '$1onservativ$2'); txt.value=txt.value.replace(/\b(C|c)on(?:cid|sdid?)e(rs?|red|ring|rabl[ey])\b/g, '$1onside$2'); txt.value=txt.value.replace(/\b(C|c)onsider(?:d|es)\b/g, '$1onsidered'); txt.value=txt.value.replace(/\b([Cc]on|[Ii]ncon|[Ii]n|[Ss]ub)sistan(t|tly|c[ey]|cies)\b/g, '$1sisten$2'); txt.value=txt.value.replace(/\b(C|c)onsol[ao]dat(e[ds]?|ing|ions?)\b/g, '$1onsolidat$2'); txt.value=txt.value.replace(/\b(C|c)onsonen(ts?|tly|tal|ces?)\b/g, '$1onsonan$2'); txt.value=txt.value.replace(/\b(C|c)onsorci(um|a)\b/g, '$1onsorti$2'); txt.value=txt.value.replace(/\b(C|c)onspiracys\b/g, '$1onspiracies'); txt.value=txt.value.replace(/\b(C|c)onspir(?:iato|ate)(rs?|rial)\b/g, '$1onspirato$2'); txt.value=txt.value.replace(/\b(C|c|[Ii]nc)onstatn\b/g, '$1onstant'); txt.value=txt.value.replace(/\b(C|c|[Ii]nc)onstanly\b/g, '$1onstantly'); txt.value=txt.value.replace(/\b(C|c)onstarnatio(ns?)\b/g, '$1onsternatio$2'); txt.value=txt.value.replace(/\b(C|c)onstitu(?:a|te)n(ts?|cy|cies)\b/g, '$1onstituen$2'); txt.value=txt.value.replace(/\b(C|c)on[st]itu[ae]nc(y|ies)\b/g, '$1onstituenc$2'); txt.value=txt.value.replace(/\b(C|c|[Rr]ec|[Uu]nc)onsitut(e[ds]?|ing|ion(s?|al(|ly|ity)))\b/g, '$1onstitut$2'); txt.value=txt.value.replace(/\b(C|c|[Uu]nc)o(?:nstitu|stitut)ion(s?|al(|ly|ity))\b/g, '$1onstitution$2'); txt.value=txt.value.replace(/\b(C|c|[Uu]nc)onstain(t?s?|ed|ing)\b/g, '$1onstrain$2'); txt.value=txt.value.replace(/\b(C|c|[RrDd]ec|[Mm]isc)o(?:nst|ntr|nsttr|ntstr|str)ucti(ng|ons?|ve|vely)\b/g, '$1onstructi$2'); txt.value=txt.value.replace(/\b(C|c)onsulan(ts?)\b/g, '$1onsultan$2'); txt.value=txt.value.replace(/\b(C|c)onsumat(e[ds]?|ing|ions?)\b/g, '$1onsummat$2'); txt.value=txt.value.replace(/\b(C|c)omsum(pti(ons?|ve)|er?s?|ed|ing|erism|mat(e[sd]?|ion))\b/g, '$1onsum$2'); txt.value=txt.value.replace(/\b(C|c)ontaines\b/g, '$1ontains'); txt.value=txt.value.replace(/\b(C|c|[Dd]ec)ontaiminat(e[ds]?|ing|ions?)\b/g, '$1ontaminat$2'); txt.value=txt.value.replace(/\b([Cc]on|[Ee]x)temporan(?:[eou]{1,2})(s|sly)\b/g, '$1temporaneou$2'); txt.value=txt.value.replace(/\b(C|c)ont(?:ampor?a|empo)r(y|ies)\b/g, '$1ontemporar$2'); txt.value=txt.value.replace(/\b([Cc]on|[Pp]re)tendo(rs?)\b/g, '$1tende$2'); txt.value=txt.value.replace(/\b(C|c)ontinualy\b/g, '$1ontinually'); txt.value=txt.value.replace(/\b(C|c|[Dd]isc)o(?:ns|un)tinu(e[sd]?|ity|ations?|(al|ous)(|ly))\b/g, '$1ontinu$2'); txt.value=txt.value.replace(/\b(C|c|[Dd]isc)ontinueing\b/g, '$1ontinuing'); txt.value=txt.value.replace(/\b(C|c|[Dd]isc)ontinous(|ly)\b/g, '$1ontinuous$2'); txt.value=txt.value.replace(/\b(C|c)on(?:stra|tar)st(s?|ing(|ly)|ed|able)\b/g, '$1ontrast$2'); txt.value=txt.value.replace(/\b(C|c)ontritutio(ns?)\b/g, '$1ontributio$2'); txt.value=txt.value.replace(/\b([Cc]on|[Dd]is|[Aa]t)tribute(rs?)\b/g, '$1tributo$2'); txt.value=txt.value.replace(/\b(C|c)ontrol(ls?)\b/g, '$1ontro$2'); txt.value=txt.value.replace(/\b(C|c|[Uu]nc)ontrol(e[dr]|ing)\b/g, '$1ontroll$2'); txt.value=txt.value.replace(/\b(C|c)ontr(?:[oa]ver?[ct]?|avers|[oa]ves)(y|ies|ial(|ly))\b/g, '$1ontrovers$2'); txt.value=txt.value.replace(/\b(C|c|[Ii]nc)onv(?:eine|vienie|enia)n(t|tly|ces?)\b/g, '$1onvenien$2'); txt.value=txt.value.replace(/\b(C|c|[Uu]nc)onve(?:tion|nti)al(|ly|is[mt]|ize[sd]?)\b/g, '$1onventional$2'); txt.value=txt.value.replace(/\b([Cc]on|[Dd]i|[Pp]er|[Ss]ub)vertio(ns?)\b/g, '$1versio$2'); txt.value=txt.value.replace(/\b(C|c)onverto(rs?)\b/g, '$1onverte$2'); txt.value=txt.value.replace(/\b(C|c|[Ii]nc)onvertabl(es?|y)\b/g, '$1onvertibl$2'); txt.value=txt.value.replace(/\b(C|c|[Uu]nc)onviced\b/g, '$1onvinced'); txt.value=txt.value.replace(/\b(C|c)o(-?)(?:ord(?:ia|[ae])|rdi)nat(e[ds]?|ions?|ors?|ing)\b/g, '$1o$2ordinat$3'); txt.value=txt.value.replace(/\b(C|c)oppied\b/g, '$1opied'); txt.value=txt.value.replace(/\b(C|c)oridal\b/g, '$1ordial'); txt.value=txt.value.replace(/\b(C|c|[Ii]nc|[Dd]isinc)orp(?:[ae]rt?|ort)at(e[ds]?|ions?|ing)\b/g, '$1orporat$2'); txt.value=txt.value.replace(/\b([Cc]or|[Dd]i|[Cc]odi)recte(rs?)\b/g, '$1recto$2'); txt.value=txt.value.replace(/\b([Cc]orr|[Rr])(?:is|e)(?:po[ns]d|spon)(s?|ed|ing(|ly)|ents?|enc(es?|y))\b/g, '$1espond$2'); txt.value=txt.value.replace(/\b(C|c)orr[ei]spondan(ts?|ces?|cy)\b/g, '$1orresponden$2'); txt.value=txt.value.replace(/\b(C|c)o(?:r[aei]do|rr?[aei]doo|c?o?rr[ae]do)(rs?)\b/g, '$1orrido$2'); txt.value=txt.value.replace(/\b(C|c)orosi(ons?|ves?|vely)\b/g, '$1orrosi$2'); txt.value=txt.value.replace(/\b(C|c)ouci(ls?)\b/g, '$1ounci$2'); txt.value=txt.value.replace(/\b(C|c)ount?ires\b/g, '$1ountries'); txt.value=txt.value.replace(/\b(C|c)oururie(rs?)\b/g, '$1ourie$2'); txt.value=txt.value.replace(/\b(C|c)onvenant(s?|ed|ing|al|ally|[oe]rs?|ees?)\b/g, '$1ovenant$2'); txt.value=txt.value.replace(/\b(C|c)reaeted\b/g, '$1reated'); txt.value=txt.value.replace(/\b(C|c|[Ii]nc)r(?:ead[ia]|eda)b(l[ey]|ility)\b/g, '$1redib$2'); txt.value=txt.value.replace(/\b(C|c)riterias\b/g, '$1riteria'); txt.value=txt.value.replace(/\b(C|c)ritereon\b/g, '$1riterion'); txt.value=txt.value.replace(/\b(C|c)r(?:ti|it)c(al|ally|ize[ds]?|izing|isms?)\b/g, '$1ritic$2'); txt.value=txt.value.replace(/\b(C|c)ritisi[sz]?(ms?|e[ds]?|ing)\b/g, '$1riticis$2'); txt.value=txt.value.replace(/\b(C|c)riti[zs](e[ds]?|ing)\b/g, '$1riticiz$2'); txt.value=txt.value.replace(/\b(C|c)rockodil(es?)\b/g, '$1rocodil$2'); txt.value=txt.value.replace(/\b(C|c)uriousit(y|ies)\b/g, '$1uriosit$2'); txt.value=txt.value.replace(/\b([Cc]rue|[LlRr]oya|[Nn]ove|[Pp]ena|[Ss]pecia)tl(y|ies)\b/g, '$1lt$2'); txt.value=txt.value.replace(/\b(C|c)rusie(rs?|d)\b/g, '$1ruise$2'); txt.value=txt.value.replace(/\b(C|c)rystali(s|z)atio(ns?)\b/g, '$1rystalli$2atio$3'); txt.value=txt.value.replace(/\b(C|c)usin(es?)\b/g, '$1uisin$2'); txt.value=txt.value.replace(/\b(C|c)ul(?:lina|iner?|inar)ry\b/g, '$1ulinary'); txt.value=txt.value.replace(/\b(C|c|F|f)uliminat(e[ds]?|ing|ions?)\b/g, '$1ulminat$2'); txt.value=txt.value.replace(/\b(C|c)umulatative\b/g, '$1umulative'); txt.value=txt.value.replace(/\b(C|c)ur(?:r?entel|r?en[lt]|ente?l|rente?le)e?y\b/g, '$1urrently'); txt.value=txt.value.replace(/\b(C|c)(?:iriculu|urricule)m\b/g, '$1urriculum'); txt.value=txt.value.replace(/\b(C|c)(?:yc|i)lind(ers?|rical(|ly))\b/g, '$1ylind$2');

//D

txt.value=txt.value.replace(/\b(D|d)almatio(ns?)\b/g, '$1almatia$2'); txt.value=txt.value.replace(/\b(D|d)au(?:gt?h|gt|hg?t)er(s?)\b/g, '$1aughter$2'); txt.value=txt.value.replace(/\b(D|d)ebateabl(e|y)\b/g, '$1ebatabl$2'); txt.value=txt.value.replace(/\b(D|d)ecaf(?:fi?e?|ei)nat(e[ds]?|ing|ion)\b/g, '$1ecaffeinat$2'); txt.value=txt.value.replace(/\b(D|d)ecath[ae]l(ons?|etes?)\b/g, '$1ecathl$2'); txt.value=txt.value.replace(/\b(D|d)esi(de[ds]?|ding|sions?|dedly)\b/g, '$1eci$2'); txt.value=txt.value.replace(/\b(D|d|[Uu]nd)ecideabl(e|y)\b/g, '$1ecidabl$2'); txt.value=txt.value.replace(/\b(D|d|[Uu]nd)ecidely\b/g, '$1ecidedly'); txt.value=txt.value.replace(/\b(D|d|[Ii]nd)e(?:cis|sc?isi|sici)(ons?|ve|vely)\b/g, '$1ecisi$2'); txt.value=txt.value.replace(/\b(D|d)eafult(s?|ed|ing)\b/g, '$1efault$2'); txt.value=txt.value.replace(/\b(D|d)efenden(ts?)\b/g, '$1efendan$2'); txt.value=txt.value.replace(/\b(D|d)effen([cs])(es?|ive(|ly|ness)|ibl[ey]|eless)\b/g, '$1efen$2$3'); txt.value=txt.value.replace(/\b([Dd]e|[Ii]n|[Tt]rans|[Cc]on|[Pp]re)f(?:e|fer?)r(ing|e[dr]|als?)\b/g, '$1ferr$2'); txt.value=txt.value.replace(/\b(D|d)ef(?:fn?in|f?inin)(e[ds]?|ing|itions?)\b/g, '$1efin$2'); txt.value=txt.value.replace(/\b(D|d|[Ii]nd)ef(?:fin[iae]te?|f?in[ae]te?|f?init)(|s|ly|ness)\b/g, '$1efinite$2'); txt.value=txt.value.replace(/\b(D|d|[Ii]nd)eff?in[ae]te?i(ons?|ve|vely)\b/g, '$1efiniti$2'); txt.value=txt.value.replace(/\b(D|d)ef+i(?:nit|nti|nint?i?)(ons?|ve(s?|ly|ness))\b/g, '$1efiniti$2'); txt.value=txt.value.replace(/\b(D|d)elagat(e[ds]?|ing|ions?)\b/g, '$1elegat$2'); txt.value=txt.value.replace(/\b(D|d)eliberae?tly\b/g, '$1eliberately'); txt.value=txt.value.replace(/\b(D|d)eliniat(e[ds]?|ing|ions?|ors?)\b/g, '$1elineat$2'); txt.value=txt.value.replace(/\b(D|d)eleriou(s|sly)\b/g, '$1eliriou$2'); txt.value=txt.value.replace(/\b(D|d|[Mm]isd)eme(?:no|a?ne)(rs?)\b/g, '$1emeano$2'); txt.value=txt.value.replace(/\b(D|d|[Uu]nd)e(?:om|mor)cra(cy|cies|ts?|tic(|ally))\b/g, '$1emocra$2'); txt.value=txt.value.replace(/\b(D|d)emolisio(ns?)\b/g, '$1emolitio$2'); txt.value=txt.value.replace(/\b([DdRr])emo(?:stra|nstar?)t(e[sd]?|ing|ions?|ive(s?|ly)|ors?)\b/g, '$1emonstrat$2'); txt.value=txt.value.replace(/\b(D|d)enegrat(e[ds]?|ing|ors?|ions?)\b/g, '$1enigrat$2'); txt.value=txt.value.replace(/\b(D|d)erivia?ti(ves?|ons?)\b/g, '$1erivati$2'); txt.value=txt.value.replace(/\b(D|d)(?:iriv|eriviat)(e[ds]?|ing|ations?)\b/g, '$1eriv$2'); txt.value=txt.value.replace(/\b(D|d)erog[io]tory\b/g, '$1erogatory'); txt.value=txt.value.replace(/\b([Dd]e|[Tt]ran|[Cc]onde|A|a)c[cs]?end(a|e)n[td](s?)\b/g, '$1scend$2nt$3'); txt.value=txt.value.replace(/\b(D|d|[Pp]r)(?:esc|escri|ecr|iscr)ib(e[ds]?|ing)\b/g, '$1escrib$2'); txt.value=txt.value.replace(/\b(D|d)e(?:scr?|s?cri?)ipte(rs?)\b/g, '$1escripto$2'); txt.value=txt.value.replace(/\b(D|d)es+[aei]cat(e[ds]?|ions?)\b/g, '$1esiccat$2'); txt.value=txt.value.replace(/\b(D|d)es(?:sig|gi)n(s?|ed|ers?|ing)\b/g, '$1esign$2'); txt.value=txt.value.replace(/\b(D|d)esinger(s?)\b/g, '$1esigner$2'); txt.value=txt.value.replace(/\b(D|d|[Uu]nd)esireab(les?|ly|ility)\b/g, '$1esirab$2'); txt.value=txt.value.replace(/\b(D|d)esp[ai]rat(e|ely|ion)\b/g, '$1esperat$2'); txt.value=txt.value.replace(/\b(D|d)ispicabl(e|y)\b/g, '$1espicabl$2'); txt.value=txt.value.replace(/\b(D|d)establiz(e[drs]?|ing|ation)\b/g, '$1estabiliz$2'); txt.value=txt.value.replace(/\b(D|d)esinatio(ns?)\b/g, '$1estinatio$2'); txt.value=txt.value.replace(/\b(D|d)estory(s?|ed|ers?|ing)\b/g, '$1estroy$2'); txt.value=txt.value.replace(/\b(D|d)estroie(d|rs?)\b/g, '$1estroye$2'); txt.value=txt.value.replace(/\b(D|d|[Ii]nd|[Nn]ond)(?:ist?|esct?|es)ruct(|ive(|ly|ness)|ions?|ible)\b/g, '$1estruct$2'); txt.value=txt.value.replace(/\b(D|d)etatch(|e[ds]|ing|ments?|able)\b/g, '$1etach$2'); txt.value=txt.value.replace(/\b(D|d)etaill(s?|ed|ing)\b/g, '$1etail$2'); txt.value=txt.value.replace(/\b(D|d|[Ii]nd)ectect(s?|ed|ing|ors?|ions?|ives?|abl[ey])\b/g, '$1etect$2'); txt.value=txt.value.replace(/\b(D|d)ete(?:o?r|rior)iat(e[ds]?|ing|ion)\b/g, '$1eteriorat$2'); txt.value=txt.value.replace(/\b([Dd]e|nu)tr[ea]men(ts?|tal)\b/g, '$1trimen$2'); txt.value=txt.value.replace(/\b(D|d)ev(?:[ei]sta|asa?)t(e[ds]?|ing|ion)\b/g, '$1evastat$2'); txt.value=txt.value.replace(/\b(D|d)evelopp(e[dr]|ers|ing|ments?)\b/g, '$1evelop$2'); txt.value=txt.value.replace(/\b(D|d)e(?:vol[oe]|levo|vel)p[oe]?men(ts?|tal)\b/g, '$1evelopmen$2'); txt.value=txt.value.replace(/\b(D|d)i(?:ab|bo)lica(l|lly)\b/g, '$1iabolica$2'); txt.value=txt.value.replace(/\b([Mm]ono|[Dd]ia|[Ee]pi|[Aa]na|[Pp]ro)lou?g(e[sdr]?|ing)\b/g, '$1logu$2'); txt.value=txt.value.replace(/\b(D|d)iamate(rs?)\b/g, '$1iamete$2'); txt.value=txt.value.replace(/\b(D|d)ichtom(y|ies)\b/g, '$1ichotom$2'); txt.value=txt.value.replace(/\b(D|d|[Ii]nd)if(?:er?|f[ai]?)ren(t|tly|ce[sd]?|cing|tia(ls?|te[ds]?|ting|tions?|ble|bility|e?))\b/g, '$1ifferen$2'); txt.value=txt.value.replace(/\b(D|d)if(?:f?iculi|icul)t(|l?y|ies)\b/g, '$1ifficult$2'); txt.value=txt.value.replace(/\b(D|d)ifus(er?[sd]?|ing|ely|eness|ion|ive)\b/g, '$1iffus$2'); txt.value=txt.value.replace(/\b(D|d)(?:e|il)lapidat(e[ds]?|ion)\b/g, '$1ilapidat$2'); txt.value=txt.value.replace(/\b(D|d)ime(?:nt?|sn)ion(s?|al(|ly|ity))\b/g, '$1imension$2'); txt.value=txt.value.replace(/\b(D|d)iminuiti(ves?|vely|ons?)\b/g, '$1iminuti$2'); txt.value=txt.value.replace(/\b(D|d)em?minish(|e[sd]|ing|ments?|abl[ey])\b/g, '$1iminish$2'); txt.value=txt.value.replace(/\b(D|d)ioses(es?|an)\b/g, '$1ioces$2'); txt.value=txt.value.replace(/\b(D|d)iplomancy\b/g, '$1iplomacy'); txt.value=txt.value.replace(/\b(D|d|[Ii]nd)(?:riectl|irect)y\b/g, '$1irectly'); txt.value=txt.value.replace(/\b(D|d)isagr(?:e|eee)(|d|s|ments?|abl[ey])\b/g, '$1isagree$2'); txt.value=txt.value.replace(/\b(D|d)issagre?emen(ts?)\b/g, '$1isagreemen$2'); txt.value=txt.value.replace(/\b(D|d)is(?:ap+ear|sap+ear?)r(s?|ed|ing|ances?)\b/g, '$1isappear$2'); txt.value=txt.value.replace(/\b(D|d)iss?app?earenc(es?)\b/g, '$1isappearanc$2'); txt.value=txt.value.replace(/\b(D|d)issarr?ay\b/g, '$1isarray'); txt.value=txt.value.replace(/\b(D|d)iaste(rs?)\b/g, '$1isaste$2'); txt.value=txt.value.replace(/\b(D|d)isa(?:ste|t)rou(s|sly)\b/g, '$1isastrou$2'); txt.value=txt.value.replace(/\b(D|d)i[cs]ipl(es?|ine[ds]?|ining)\B/g, '$1iscipl$2'); txt.value=txt.value.replace(/\b(D|d|[Uu]nd)i[sc]ic?plin(e[ds]?|ing)\b/g, '$1isciplin$2'); txt.value=txt.value.replace(/\b(D|d)iconnect(s?|ed|ing|ions?)\b/g, '$1isconnect$2'); txt.value=txt.value.replace(/\b(D|d|[Rr]ed)icover([ys]?|e[dr]|ing|ies)\b/g, '$1iscover$2'); txt.value=txt.value.replace(/\b(D|d)iscrepen[cs](y|ies)\b/g, '$1iscrepanc$2'); txt.value=txt.value.replace(/\b(D|d)icuss(|ed|ing|ions?)\b/g, '$1iscuss$2'); txt.value=txt.value.replace(/\b(D|d)istain(s?|ed|ing|ful(|ly|ness))\b/g, '$1isdain$2'); txt.value=txt.value.replace(/\b(D|d)isquis(e[ds]?|ing)\b/g, '$1isguis$2'); txt.value=txt.value.replace(/\b(D|d)esintegrat(e[ds]?|ing|ion|ors?)\b/g, '$1isintegrat$2'); txt.value=txt.value.replace(/\b(D|d)issobedi[ea]n(t|ce|tly)\b/g, '$1isobedien$2'); txt.value=txt.value.replace(/\b(D|d)esorde(rs?|rly)\b/g, '$1isorde$2'); txt.value=txt.value.replace(/\b(D|d)esorient(s?|ed|ing)\b/g, '$1isorient$2'); txt.value=txt.value.replace(/\b(D|d)isparingly\b/g, '$1isparagingly'); txt.value=txt.value.replace(/\b(D|d)ispell\b/g, '$1ispel'); txt.value=txt.value.replace(/\b(D|d|[Ii]nd)ispenc(e[ds]?|ing|abl[ey])\b/g, '$1ispens$2'); txt.value=txt.value.replace(/\b(D|d)isatisf(y|ied|action)\b/g, '$1issatisf$2'); txt.value=txt.value.replace(/\b(D|d)isem+inat(e[ds]?|ing|ions?)\b/g, '$1isseminat$2'); txt.value=txt.value.replace(/\b(D|d)isolv(ed?|ing)\b/g, '$1issolv$2'); txt.value=txt.value.replace(/\b(D|d|[Ii]nd)isti(?:gui|ng(?:[iu]|qui))sh(|e[ds]|ing|abl[ey])\b/g, '$1istinguish$2'); txt.value=txt.value.replace(/\b(D|d)i(?:tri|stru)but(e[ds]?|ing|ors?|ions?)\b/g, '$1istribut$2'); txt.value=txt.value.replace(/\b(D|d)isric(ts?)\b/g, '$1istric$2'); txt.value=txt.value.replace(/\b(D|d)iviso(ns?)\b/g, '$1ivisio$2'); txt.value=txt.value.replace(/\b(D|d)occument(s?|ed|a(tion|ry|ries))\b/g, '$1ocument$2'); txt.value=txt.value.replace(/\b(D|d)ocumenatr(y|ies)\b/g, '$1ocumentar$2'); txt.value=txt.value.replace(/\b([Dd]o|[Pp]redo|[Ll]u)min(?:e|ia)(nt|ntly|nce|te[sd]?|ting|tions?|tors?)\b/g, '$1mina$2'); txt.value=txt.value.replace(/\b(D|d)ominaton\b/g, '$1omination'); txt.value=txt.value.replace(/\b(D|d)ra(f|ugh)t(m[ae]n|wom[ae]n|manship)\b/g, '$1ra$2ts$3'); txt.value=txt.value.replace(/\b(D|d)ravadian\b/g, '$1ravidian'); txt.value=txt.value.replace(/\b(D|d)ruming\b/g, '$1rumming');

//E

txt.value=txt.value.replace(/\b(E|e)achother\b/g, '$1ach other'); txt.value=txt.value.replace(/\b(E|e)alier\b/g, '$1arlier'); txt.value=txt.value.replace(/\b(E|e)earl(y|ier|iest)\b/g, '$1arl$2'); txt.value=txt.value.replace(/\b(E|e|[Uu]ne)arnt\b/g, '$1arned'); txt.value=txt.value.replace(/\b(E|e)(?:cc|g)lecti(cs?|cally|cism)\b/g, '$1clecti$2'); txt.value=txt.value.replace(/\b(E|e)clisps?(e[sd]?|ing)\b/g, '$1clips$2'); txt.value=txt.value.replace(/\b(E|e)c[ce]onom(y|ies|ics?|ical|ically|ists?)\b/g, '$1conom$2'); txt.value=txt.value.replace(/\b(E|e|[Uu]ne)conomicaly\b/g, '$1conomically'); txt.value=txt.value.replace(/\b(E|e)conomics(ts?)\b/g, '$1conomis$2'); txt.value=txt.value.replace(/\b(E|e)ditt(ed|ing|or(|ial)s?)\b/g, '$1dit$2'); txt.value=txt.value.replace(/\b(E|e)f?fectivly\b/g, '$1ffectively'); txt.value=txt.value.replace(/\b(E|e|[Ii]ne)ff[ei]ci?en(t|tly|cy|cies)\b/g, '$1fficien$2'); txt.value=txt.value.replace(/\b([Ii]n|[EeAa]f|[Cc]on)f(?:ule|lua)n(t|tly|ces?|tial(|ly))\b/g, '$1fluen$2'); txt.value=txt.value.replace(/\b(E|e)llect(ed|ions?|ing|ive(s?|ly)|or(s?|al|ally|ates?)|able|ability|ioneer(s?|ed|ing))\b/g, '$1lect$2'); txt.value=txt.value.replace(/\b(E|e)lectria(l|lly)\b/g, '$1lectrica$2'); txt.value=txt.value.replace(/\b(E|e)lectricly\b/g, '$1lectrically'); txt.value=txt.value.replace(/\b(E|e)le(?:ctric|trici)(ty|ans?)\b/g, '$1lectrici$2'); txt.value=txt.value.replace(/\b(E|e)limenta(l|ry)\b/g, '$1lementa$2'); txt.value=txt.value.replace(/\b(E|e)l[ei]ment(?:a|e?r)y\b/g, '$1lementary'); txt.value=txt.value.replace(/\b(E|e)lphan(ts?)\b/g, '$1lephan$2'); txt.value=txt.value.replace(/\b(E|e)licid(ed|ing)\b/g, '$1licit$2'); txt.value=txt.value.replace(/\b(E|e)l(?:emin|imi)at(e[ds]?|ing|ions?)\b/g, '$1liminat$2'); txt.value=txt.value.replace(/\b(E|e)mbar(?:as|ra)s(|e[ds]|ing(|ly)|ments?)\b/g, '$1mbarrass$2'); txt.value=txt.value.replace(/\b(E|e)mbar(?:ra|as)se?(ments?|ing|d)\b/g, '$1mbarrass$2'); txt.value=txt.value.replace(/\b(E|e)mbezz?ell(e[drs]?|ing|ment)\b/g, '$1mbezzl$2'); txt.value=txt.value.replace(/\b(E|e)mblamatic(|ally)\b/g, '$1mblematic$2'); txt.value=txt.value.replace(/\b(E|e)mmigrat(e[sd]?|ing|ions?)\b/g, '$1migrat$2'); txt.value=txt.value.replace(/\b(E|e)m(?:miss?ar?|m?isar?|m?iss?ar)r(y|ies)\b/g, '$1missar$2'); txt.value=txt.value.replace(/\b(E|e)(?:m+i[stc]|mmi(?:ss?|t|c))io(ns?)\b/g, '$1missio$2'); txt.value=txt.value.replace(/\b(E|e)m(?:m?i|mit?)t(e[dr]|ing)\b/g, '$1mitt$2'); txt.value=txt.value.replace(/\b(E|e)mph[as]is(|ed?|ing)\b/g, '$1mphasis$2'); txt.value=txt.value.replace(/\b(E|e)mphai([sz]ed?)\b/g, '$1mphasi$2'); txt.value=txt.value.replace(/\b(E|e)mphys[iy]ma\b/g, '$1mphysema'); txt.value=txt.value.replace(/\b(E|e)mperic(al|ally|is[mt])\b/g, '$1mpiric$2'); txt.value=txt.value.replace(/\b([Ee]n|[Dd]e)cyph(ers?)\b/g, '$1ciph$2'); txt.value=txt.value.replace(/\b([Ee]n|[Dd]e)cryptiio(ns?)\b/g, '$1cryptio$2'); txt.value=txt.value.replace(/\b(E|e)ncylc?opedi(as?|c)\b/g, '$1ncyclopedi$2'); txt.value=txt.value.replace(/\b(E|e)ndevo(u?rs?|u?red|u?ring)\b/g, '$1ndeavo$2'); txt.value=txt.value.replace(/\b([Ee]ndo|[Mm]ega|[Mm]ono)lithes\b/g, '$1liths'); txt.value=txt.value.replace(/\b(E|e)nforceing\b/g, '$1nforcing'); txt.value=txt.value.replace(/\b(E|e|[Dd]ise)ngagmen(ts?)\b/g, '$1ngagemen$2'); txt.value=txt.value.replace(/\b(E|e)ng(?:i?ene|n?e|in)er(s?|ed|ing)\b/g, '$1ngineer$2'); txt.value=txt.value.replace(/\b(E|e)nchancemen(ts?)\b/g, '$1nhancemen$2'); txt.value=txt.value.replace(/\b(E|e)nlargmen(ts?)\b/g, '$1nlargemen$2'); txt.value=txt.value.replace(/\b(E|e)nglightenmen(ts?)\b/g, '$1nlightenmen$2'); txt.value=txt.value.replace(/\b(E|e)mnity\b/g, '$1nmity'); txt.value=txt.value.replace(/\b(E|e)nourmou(s|sly)\b/g, '$1normou$2'); txt.value=txt.value.replace(/\b(E|e|[Dd]ise)ntaglemen(ts?)\b/g, '$1ntanglemen$2'); txt.value=txt.value.replace(/\b(E|e)nteratin(ments?|ing|s?|ed)\b/g, '$1ntertain$2'); txt.value=txt.value.replace(/\b([Uu]ne|E|e)nthusais(ts?|tic|m)/g, '$1nthusias$2'); txt.value=txt.value.replace(/\b(E|e|[Nn]one)ntitit(y|ies)\b/g, '$1ntit$2'); txt.value=txt.value.replace(/\b(E|e)ntie?ri?([lt]y|ties)/g, '$1ntire$2'); txt.value=txt.value.replace(/\b(E|e)ntitlied\b/g, '$1ntitled'); txt.value=txt.value.replace(/\b(E|e)nt(?:era|re)nc(e[sd]?|ing|ement)\b/g, '$1ntranc$2'); txt.value=txt.value.replace(/\b(E|e)ntrep(?:er?neu|r?enue?)r(s?|ed|ing|ships?|ial(ly)?)\b/g, '$1ntrepreneur$2'); txt.value=txt.value.replace(/\b(E|e)nvi?(?:rion?|ro|orn?)men(ts?|tal(|ly|ists?))\b/g, '$1nvironmen$2'); txt.value=txt.value.replace(/\b(E|e)p(?:idso|i?sio|isoi|ispo|siso)d(es?|ic|ical(|ly))\b/g, '$1pisod$2'); txt.value=txt.value.replace(/\b(E|e|[Nn]one)quil(?:l?ib|libr)(iums?|ia|ate[ds]?|ating)\b/g, '$1quilibr$2'); txt.value=txt.value.replace(/\b(E|e)q(?:u?ip|iu?p?)pi?ment\b/g, '$1quipment'); txt.value=txt.value.replace(/\b(E|e)quip(ed|ing)\b/g, '$1quipp$2'); txt.value=txt.value.replace(/\b(E|e)qui(?:ale|v[aie]la|le|vlal[ea])n(ts?|tly|ces?)\b/g, '$1quivalen$2'); txt.value=txt.value.replace(/\b(E|e)rradica(bl[ey]|te[sd]?|tors?|ting|tions?)\b/g, '$1radica$2'); txt.value=txt.value.replace(/\b(E|e)rrect(s?|ing|ed|ions?|ly)\b/g, '$1rect$2'); txt.value=txt.value.replace(/\b(E|e)rati(c|cally)\b/g, '$1rrati$2'); txt.value=txt.value.replace(/\b(E|e)ratica?ly\b/g, '$1rratically'); txt.value=txt.value.replace(/\b(E|e)rrupt(s?|ed|ing|ions?)\b/g, '$1rupt$2'); txt.value=txt.value.replace(/\b(E|e)[sx]peciall?y\b/g, '$1specially'); txt.value=txt.value.replace(/\b(E|e)ssens(es?)\b/g, '$1ssenc$2'); txt.value=txt.value.replace(/\b(E|e)stab(?:ish|lis|ilish)(e[ds]?|ing|ments?)\b/g, '$1stablish$2'); txt.value=txt.value.replace(/\b(E|e)sitmat(es?|ed|ing|ions?)\b/g, '$1stimat$2'); txt.value=txt.value.replace(/\b(E|e)thnocentricm\b/g, '$1thnocentrism'); txt.value=txt.value.replace(/\b(E|e)ur(?:opi|po?e)a(ns?|ni[sz]e[sd]?|ni[sz]ation)\b/g, '$1uropea$2'); txt.value=txt.value.replace(/\b(E|e)ven(?:htu|ti?)al(|ly|it(y|ies))\b/g, '$1ventual$2'); txt.value=txt.value.replace(/\b(E|e)ventualy\b/g, '$1ventually'); txt.value=txt.value.replace(/\b(E|e)verthing\b/g, '$1verything'); txt.value=txt.value.replace(/\b(E|e)xerbat(e[sd]?|ing|ions?)\b/g, '$1xacerbat$2'); txt.value=txt.value.replace(/\b(E|e|[Ii]ne)xcact\b/g, '$1xact'); txt.value=txt.value.replace(/\b(E|e)xag(?:er?|ger)rat(e[sd]?|ing|ions?)\b/g, '$1xaggerat$2'); txt.value=txt.value.replace(/\b(E|e)xhalted\b/g, '$1xalted'); txt.value=txt.value.replace(/\b(E|e|[Uu]ne)xaminated\b/g, '$1xamined'); txt.value=txt.value.replace(/\b(E|e)x(?:em|ma)pl(es?)\b/g, '$1xampl$2'); txt.value=txt.value.replace(/\b(E|e)x(?:ced|ee)d(ed|ing|ingly)\b/g, '$1xceed$2'); txt.value=txt.value.replace(/\b(E|e)xcel(ls?)\b/g, '$1xce$2'); txt.value=txt.value.replace(/\b(E|e)x(?:ell?[ae]|cel[ae]|cella)n(t|tly|c[ey])\b/g, '$1xcellen$2'); txt.value=txt.value.replace(/\b(E|e)xept(|ing|ional(|ly))\b/g, '$1xcept$2'); txt.value=txt.value.replace(/\b(E|e)xerp(ts?|ted|ting)\b/g, '$1xcerp$2'); txt.value=txt.value.replace(/\b(E|e)xc(?:hanch|ang)(e[sd]?|ing)\b/g, '$1xchang$2'); txt.value=txt.value.replace(/\b(E|e)xlud(es?|ing)\b/g, '$1xclud$2'); txt.value=txt.value.replace(/\b(E|e)xculsivly\b/g, '$1xclusively'); txt.value=txt.value.replace(/\b(E|e)xcecut(e[sd]?|ing|i(on|ve)s?)\b/g, '$1xecut$2'); txt.value=txt.value.replace(/\b(E|e)x(?:cercis|ercies|ersi[sz]|ecis)(e[sdr]?|ing)\b/g, '$1xercis$2'); txt.value=txt.value.replace(/\b([Ee]x|[Ii]n|[Pp]ro)(?:hib|ibi)tion(s?|is[mt]s?)\b/g, '$1hibition$2'); txt.value=txt.value.replace(/\b(E|e)xliled\b/g, '$1xiled'); txt.value=txt.value.replace(/\b(E|e|[Nn]one|[Pp]ree|[Cc]oe)xist(?:[aei]ns|[ai]nc)e\b/g, '$1xistence'); txt.value=txt.value.replace(/\b(E|e|[Nn]one|[Pp]ree|[Cc]oe)xist[ai]nt(|ial(|ly))\b/g, '$1xistent$2'); txt.value=txt.value.replace(/\b(E|e)xonorate\b/g, '$1xonerate'); txt.value=txt.value.replace(/\b(E|e)xoskelat(ons?|al)\b/g, '$1xoskelet$2'); txt.value=txt.value.replace(/\b(E|e)xapansi(ons?|ve|vely)\b/g, '$1xpansi$2'); txt.value=txt.value.replace(/\b(E|e|[Uu]ne)xpeced\b/g, '$1xpected'); txt.value=txt.value.replace(/\b(E|e)xp(?:edit|iditi)o(ns?|nary)\b/g, '$1xpeditio$2'); txt.value=txt.value.replace(/\b(E|e)xpell(|s)\b/g, '$1xpel$2'); txt.value=txt.value.replace(/\b(E|e|[Ii]ne)xp(?:eria|iere)nc(e[ds]?|ing)\b/g, '$1xperienc$2'); txt.value=txt.value.replace(/\b(E|e)xpe(?:ime|rima)nt(s?|al|ally)\b/g, '$1xperiment$2'); txt.value=txt.value.replace(/\b(E|e)xp(?:ali|la)(ns?|ning)\b/g, '$1xplai$2'); txt.value=txt.value.replace(/\b(E|e)xpla?inat(ions?|ory)\b/g, '$1xplanat$2'); txt.value=txt.value.replace(/\b([Ee]x|[Ii]m)plic(t|tly)\b/g, '$1plici$2'); txt.value=txt.value.replace(/\b([Ee]x|[Ii]m)plic(?:il?t|tl)y\b/g, '$1plicitly'); txt.value=txt.value.replace(/\b(E|e)xplo(?:ta|iti)ti(ons?|ve|vely)\b/g, '$1xploitati$2'); txt.value=txt.value.replace(/\b(E|e)xress(ed|ions?|ive)\b/g, '$1xpress$2'); txt.value=txt.value.replace(/\b(E|e)xpropiat(e[ds]?|ing|ions?)\b/g, '$1xpropriat$2'); txt.value=txt.value.replace(/\b(E|e|[Ov]vere)xtentio(ns?)\b/g, '$1xtensio$2'); txt.value=txt.value.replace(/\b(E|e)xtensivly\b/g, '$1xtensively'); txt.value=txt.value.replace(/\b(E|e)x(?:ertern|trn|te[rn])al\b/g, '$1xternal'); txt.value=txt.value.replace(/\b(E|e)xtint\b/g, '$1xtinct'); txt.value=txt.value.replace(/\b(E|e)xtradictio(ns?)\b/g, '$1xtraditio$2'); txt.value=txt.value.replace(/\b(E|e)xtrordinar(y|ily)\b/g, '$1xtraordinar$2'); txt.value=txt.value.replace(/\b(E|e)xtrav[ae]n?g[ae]n(t|tly|ces?)\b/g, '$1xtravagan$2'); txt.value=txt.value.replace(/\b(E|e)xt(?:eme|remem|rem)le?y\b/g, '$1xtremely');

//F

txt.value=txt.value.replace(/\b([Ff])acil(?:[it][ae]|ite)t(e[ds]?|ing|ions?)\b/g, '$1acilitat$2'); txt.value=txt.value.replace(/\b(F|f|[Uu]nf)amillia(r|rly|l|rity)\b/g, '$1amilia$2'); txt.value=txt.value.replace(/\b(F|f)acis(m|ts?|tic)\b/g, '$1ascis$2'); txt.value=txt.value.replace(/\b([Ff]au|[Gg]ui)tl(y|ier|iest|iness)\b/g, '$1lt$2'); txt.value=txt.value.replace(/\b(F|f)av(ou?)rit(s?)\b/g, '$1av$2rite$3'); txt.value=txt.value.replace(/\b(F|f)ued(s?|ing|ed|al)\b/g, '$1eud$2'); txt.value=txt.value.replace(/\b([FfWwYy]|[Uu]n[fwy]|[Ww]indsh)eild(s?|y|ed|ing|ers?|able)\b/g, '$1ield$2'); txt.value=txt.value.replace(/\bfire?y\b/g, 'fiery'); txt.value=txt.value.replace(/\b(F|f|[Ii]nf|[Ii]ndef|[Dd]ef|[Aa]ff)(?:finite?|f?in[ae]te?|f?init)(s?|ly|ness)\b/g, '$1init$2'); txt.value=txt.value.replace(/\b(F|f)rs(ts?|ly)\b/g, '$1irs$2'); txt.value=txt.value.replace(/\b(F|f)lamb[ou][ou]y[ae]n(t|ce|tly)\b/g, '$1lamboyan$2'); txt.value=txt.value.replace(/\b(F|f)leg(ed|e?ling|ing)\b/g, '$1ledg$2'); txt.value=txt.value.replace(/\b(F|f)l(?:uoro|oure)sc(e[ds]?|ent|ence|ing)\b/g, '$1luoresc$2'); txt.value=txt.value.replace(/\b(F|f|[Hh]ydrof|[Dd]if|[Tt]rif|[Tt]etraf|[Pp]entaf|[Hh]exaf)lour(o|esc(e[sd]?|ing|en(t|ce))|i(c|[dn]es?|dat(e[sd]?|ing|ion)))\b/g, '$1luor$2'); txt.value=txt.value.replace(/\b(F|f)ol(?:o|l?)w(ing|ed|ers?)\b/g, '$1ollow$2'); txt.value=txt.value.replace(/\b([Uu]nf|F|f|[Mm]isf)or(?:etun[ai]|tuni|tuan)t(ely|es?)\b/g, '$1ortunat$2'); txt.value=txt.value.replace(/\b(F|f)or(?:iegn|eing)(|ers?|isms?)\b/g, '$1oreign$2'); txt.value=txt.value.replace(/\b(F|f|[Ii]nf|[DdMm]isinf|[Pp]?[DdRr]ef|[Cc]onf|[Mm]alf|[Tt]ransf)om+ati(on|ve|vely)\b/g, '$1ormati$2'); txt.value=txt.value.replace(/\b([Uu]nf|F|f)ortun[ae]t(s?|ly|ness)\b/g, '$1ortunate$2'); txt.value=txt.value.replace(/\b(F|f)ourt(y|ieth)\b/g, '$1ort$2'); txt.value=txt.value.replace(/\b(F|f|[Dd][yi]sf|[Mm]alf|[Cc]of)u[cn]tion(s?|al|ality|ed|ing)\b/g, '$1unction$2'); txt.value=txt.value.replace(/\b(F|f)und[^a]ment(s?|al(s?|is[mt]s?|ity|ly))\b/g, '$1undament$2'); //Furthur is the name of a bus, so separate rules for big-F and little-f txt.value=txt.value.replace(/\bFu(?:rthu|the)r(s|ed|ing|ances?|more|most)\b/g, 'Further$1'); txt.value=txt.value.replace(/\bfu(?:rthu|the)r(s?|ed|ing|ances?|more|most)\b/g, 'further$1');

//G

txt.value=txt.value.replace(/\b(G|g|[Ii]nterg)alatic\b/g, '$1alactic'); txt.value=txt.value.replace(/\b(G|g)allax(y|ies)\b/g, '$1alax$2'); txt.value=txt.value.replace(/\b(G|g)alviniz(e[drs]?|ing|ation)\b/g, '$1alvaniz$2'); txt.value=txt.value.replace(/\b(Mahatma|Mohandas(|\s+K\.)|Indira|Sonia)\s+[Gg](?:ha|ah)ndi\b/g, '$1 Gandhi'); txt.value=txt.value.replace(/\b(G|g)arnison(s?|ed|ing)\b/g, '$1arrison$2'); txt.value=txt.value.replace(/\b(G|g)uag(e[ds]?|ing)\b/g, '$1aug$2'); txt.value=txt.value.replace(/\b(G|g)eneolog(y|ies|ical(|ly))\b/g, '$1enealog$2'); txt.value=txt.value.replace(/\b(G|g)eneraly\b/g, '$1enerally'); txt.value=txt.value.replace(/\b([RrDd]eg|G|g)en(?:ra|erat)t(e[ds]?|ors?|ing|ion(s?|al(ly)?))\b/g, '$1enerat$2'); txt.value=txt.value.replace(/\b(G|g)enociad(es?|al|ally)\b/g, '$1enocid$2'); txt.value=txt.value.replace(/\b(G|g)eographicia(l|lly)\b/g, '$1eographica$2'); txt.value=txt.value.replace(/\b(G|g)naww(ed|ing|s)\b/g, '$1naw$2'); txt.value=txt.value.replace(/\b(G|g)odes(s|ses)\b/g, '$1oddes$2'); txt.value=txt.value.replace(/\b(G|g)odounov\b/g, '$1odunov'); txt.value=txt.value.replace(/\b(G|g|[Oo]ng|[Ff]oreg|[Oo]utg)oign\b/g, '$1oing'); txt.value=txt.value.replace(/\b[Gg]othenberg\b/g, 'Gothenburg'); txt.value=txt.value.replace(/\b(G|g)ottleib\b/g, 'Gottlieb'); txt.value=txt.value.replace(/\b(G|g)overance\b/g, '$1overnance'); txt.value=txt.value.replace(/\b(G|g)ov(?:orn?m|en?r?m|ermn?|ernmn|ernem)en?t(s?|al|ally)\b/g, '$1overnment$2'); txt.value=txt.value.replace(/\b(G|g)(?:uver?n[eo]|overne|venro)r(s?|ships?)\b/g, '$1overnor$2'); txt.value=txt.value.replace(/\b(G|g|[Dd]isg|[Uu]ng)ra(c|t)efull(|ly|ness)\b/g, '$1ra$2eful$3'); txt.value=txt.value.replace(/\b(G|g)raf(?:it?|fit)t(i|o|ists?)\b/g, '$1raffit$2'); txt.value=txt.value.replace(/\b([Uu]ng|G|g)ramatical(|ly|ity)\b/g, '$1rammatical$2'); txt.value=txt.value.replace(/\b([Uu]ng|G|g)ram+aticaly\b/g, '$1rammatically'); txt.value=txt.value.replace(/\b(G|g|[Uu]ng)re?atful(|ness|ly)\b/g, '$1rateful$2'); txt.value=txt.value.replace(/\b(G|g)ratui?tious(|ly|ness)\b/g, '$1ratuitous$2'); txt.value=txt.value.replace(/\b(G|g)r(?:ievi|eiv)ous(|ly|ness)\b/g, '$1rievous$2'); txt.value=txt.value.replace(/\b(G|g)(?:una|au)nine\b/g, '$1uanine'); txt.value=txt.value.replace(/\b(G|g)auarana\b/g, '$1uarana'); txt.value=txt.value.replace(/\b(G|g)(?:[au]r[ae]|aur[ae]|uare)nte+([sd]?|ing)\b/g, '$1uarantee$2'); txt.value=txt.value.replace(/\b([Uu]ng|G|g)aurd(ed|ing|edly|ians?)\b/g, '$1uard$2'); txt.value=txt.value.replace(/\b(G|g)uatamala(|ns?)\b/g, 'Guatemala$2'); txt.value=txt.value.replace(/\b(G|g|[Mm]isg)uidence\b/g, '$1uidance'); txt.value=txt.value.replace(/\b[Gg]uin(?:es|n?e)s\b/g, 'Guinness'); txt.value=txt.value.replace(/\b(G|g)ut(?:u|t?a|t?e)ral(|ism|ness|ly)\b/g, '$1uttural$2');

//H

txt.value=txt.value.replace(/\b(H|h)aba?eus\b/g, '$1abeas'); txt.value=txt.value.replace(/\b([Hh]|[Ii]nh)abitent(s?)\b/g, '$1abitant$2'); txt.value=txt.value.replace(/\b(H|h)absbourg\b/g, '$1absburg'); txt.value=txt.value.replace(/\b(H|h)al(?:l?owea|owe[ea]?)n\b/g, '$1alloween'); txt.value=txt.value.replace(/\b(H|h)ap?pended\b/g, '$1appened'); txt.value=txt.value.replace(/\b(H|h)ar(?:ras+|r?as|r+as+e)(|e[sd]|ing(s?|ly)|ments?)\b/g, '$1arass$2'); txt.value=txt.value.replace(/\b([Hh]ead|[Hh]ind|[Ff]ore)quater(s?|ed|ing)\b/g, '$1quarter$2'); txt.value=txt.value.replace(/\b(H|h)aviest\b/g, '$1eaviest'); txt.value=txt.value.replace(/\b(H|h)ea?villy\b/g, '$1eavily'); txt.value=txt.value.replace(/\b[Hh]eidelburg\b/g, 'Heidelberg'); txt.value=txt.value.replace(/\b(H|h)elpped\b/g, '$1elped'); txt.value=txt.value.replace(/\b(H|h)elpfull\b/g, '$1elpful'); txt.value=txt.value.replace(/\b(H|h)em(?:mor?|o)rh?ag(e[sd]?|ing|ic)\b/g, '$1emorrhag$2'); txt.value=txt.value.replace(/\b(H|h)eridit(y|ary)\b/g, '$1eredit$2'); txt.value=txt.value.replace(/\b(H|h)er(?:ri|r?[ae])tage?(|s)\b/g, '$1eritage$2'); txt.value=txt.value.replace(/\b(H|h)eros\b/g, '$1eroes'); txt.value=txt.value.replace(/\b(H|h|[Kk]ilo[Hh]|[Mm]ega[Hh]|[Gg]iga[Hh])ertzs\b/g, '$1ertz'); txt.value=txt.value.replace(/\b(H|h)esi(?:st[ae]|te)n(t|tly|cy)\b/g, '$1esitan$2'); txt.value=txt.value.replace(/\b(H|h)eterogen(ous|ity)\b/g, '$1eterogene$2'); txt.value=txt.value.replace(/\b(H|h)eirarch(y?|ies|(|ic)(|al|ally))\b/g, '$1ierarch$2'); txt.value=txt.value.replace(/\b(H|h)(?:ierogl|eirogly)ph(s?|ic(s?|al|ally))\b/g, '$1ieroglyph$2'); txt.value=txt.value.replace(/\b(H|h)eigh(er|est|ness)\b/g, '$1igh$2'); txt.value=txt.value.replace(/\b(H|h)illari(ty|ous(|ly|ness))\b/g, '$1ilari$2'); txt.value=txt.value.replace(/\b(H|h)ind(?:er[ea]|ren?)nc(es?)\b/g, '$1indranc$2'); txt.value=txt.value.replace(/\b(H|h)ip(?:o|p?op)potamu(s|ses)\b/g, '$1ippopotamu$2'); txt.value=txt.value.replace(/\b(H|h|[Pp]reh)(?:istoric|sitor)i(c|ans?|cal(|ly))\b/g, '$1istori$2'); txt.value=txt.value.replace(/\b(H|h)omogeneiz(e[sd]?|ing|ation)\b/g, '$1omogeniz$2'); txt.value=txt.value.replace(/\b(H|h)onora?y\b/g, '$1onorary'); txt.value=txt.value.replace(/\b(H|h|[Dd]ish)ounour(s?|e[de]|ing|ifics?|abl[ey])\b/g, '$1onour$2'); txt.value=txt.value.replace(/\b(H|h)or(?:rif[iy]?|iff?y?)(|ing)\b/g, '$1orrify$2'); txt.value=txt.value.replace(/\b(H|h|[Ii]nh)ospitibl(e|y)\b/g, '$1ospitabl$2'); txt.value=txt.value.replace(/\b(H|h)umanites\b/g, '$1umanities'); txt.value=txt.value.replace(/\b(H|h)um[ie]noi(ds?)\b/g, '$1umanoi$2'); txt.value=txt.value.replace(/\b(H|h)umoural\b/g, '$1umoral'); txt.value=txt.value.replace(/\b(H|h)um(?:e|ou)rous(|ly|ness)\b/g, '$1umorous$2'); txt.value=txt.value.replace(/\b(H|h)undered(s?|ths?)\b/g, '$1undred$2'); txt.value=txt.value.replace(/\b(H|h)ydr[oa]p(il|ob)(es?|i[ac]|icity)\b/g, '$1ydroph$2$3'); txt.value=txt.value.replace(/\b(H|h)ygein(e|i(c|st)s?)\b/g, '$1ygien$2'); txt.value=txt.value.replace(/\b(H|h)ypocra[cs](y|ies)\b/g, '$1ypocris$2'); txt.value=txt.value.replace(/\b(H|h)ypocrit(s)?\b/g, '$1ypocrite$2');

//I //Look for some "In-" words under their roots: "(In)Root"

txt.value=txt.value.replace(/\b(I|i)denti(t|f)iy\b/g, '$1denti$2y'); txt.value=txt.value.replace(/\b(I|i)d[ie]osync(?:h?rac|hras)(y|ies)\b/g, '$1diosyncras$2'); txt.value=txt.value.replace(/\b(I|i)gnoren(t|tly|ce)\b/g, '$1gnoran$2'); txt.value=txt.value.replace(/\bem?mediat(e|ely)\b/g, 'immediat$1'); txt.value=txt.value.replace(/\b(I|i)mpl[ia]ment(s?|e[dr]?|al|ing|ations?)\b/g, '$1mplement$2'); txt.value=txt.value.replace(/\bempris?son(s?|ed|ing|ment)\b/g, 'imprison$1'); txt.value=txt.value.replace(/\b(I|i)mpriso(?:ne|)ment\b/g, '$1mprisonment'); txt.value=txt.value.replace(/\b(I|i)mp(?:re|or)v(e[ds]?|ing|ements?|is(e[sd]?|ing|ations?))\b/g, '$1mprov$2'); txt.value=txt.value.replace(/\b(I|I)n(?:nac?|a)cura(cy|cies|te|tely)\b/g, '$1naccura$2'); txt.value=txt.value.replace(/\b(I|i)na(?:gu|ugau?|uge)ra(te[ds]?|ting|tor|tions?|ls?)\b/g, '$1naugura$2'); txt.value=txt.value.replace(/\b([Cc]oi|I|i)ncedental+y\b/g, '$1ncidentally'); txt.value=txt.value.replace(/\b(I|i)(?:cin[ea]|n?[cs]ina|nsin[ea])rat(e[sd]?|ing|ions?|ors?)\b/g, '$1ncinerat$2'); txt.value=txt.value.replace(/\b([Ii]n|[Dd]e)cres(e[drs]?|ing(|ly)|able)\b/g, '$1creas$2'); txt.value=txt.value.replace(/\b([Ii]ndis|[Dd]is|[Cc]om)pensib(l[ey]|ility|leness)\b/g, '$1pensab$2'); txt.value=txt.value.replace(/\b[Uu]niversity of Indiana\b/g, 'Indiana University'); txt.value=txt.value.replace(/\b(I|i)ndiginou(s|sly)\b/g, '$1ndigenou$2'); txt.value=txt.value.replace(/\bune(d|lig|xhaust|xpress)[ia]b(le|ly|ility)\b/g, 'ine$1ib$2'); txt.value=txt.value.replace(/\bun(e|su)ff?ici[ea]n(t|tly|cy)\b/g, 'in$1fficien$2'); txt.value=txt.value.replace(/\bUn(e|su)ff?ici[ea]n(t|tly|cy)\b/g, 'In$1fficien$2'); txt.value=txt.value.replace(/\buneff?ect(ive|ual)(|ly|ness)\b/g, 'ineffect$1$2'); txt.value=txt.value.replace(/\bUneff?ect(ive|ual)(|ly|ness)\b/g, 'Ineffect$1$2'); txt.value=txt.value.replace(/\b(I|i)nfanty\b/g, '$1nfantry'); txt.value=txt.value.replace(/\b(I|i|[Nn]oni)nfectuous(|ly|ness)\b/g, '$1nfectious$2'); txt.value=txt.value.replace(/\b(I|i)nflama(tions?|tory|bl[ey]|bility)\b/g, '$1nflamma$2'); txt.value=txt.value.replace(/\benflam(e[ds]?|ing)\b/g, 'inflam$1'); txt.value=txt.value.replace(/\b(I|i)nfluencial\b/g, '$1nfluential'); txt.value=txt.value.replace(/\b(I|i)nheritenc(es?)\b/g, '$1nheritanc$2'); txt.value=txt.value.replace(/\b(I|i)nit(?:al|ia)ly\b/g, '$1nitially'); txt.value=txt.value.replace(/\b(I|i)ni(?:ti|cia)ti(ves?|ons?)\b/g, '$1nitiati$2'); txt.value=txt.value.replace(/\b([Ii])nuend(o|oes)\b/g, '$1nnuend$2'); txt.value=txt.value.replace(/\b(I|i)n(?:noc?|oc)cula(t(e[sd]?|or[ys]?)|ti(ng|ons?|ve)|b(le|ility)|nts?)\b/g, '$1nocula$2'); txt.value=txt.value.replace(/\b(I|i)nsted\b/g, '$1nstead'); txt.value=txt.value.replace(/\b([Ii])ns(?:titu|itut)(e[ds]?|ing|ions?)\b/g, '$1nstitut$2'); txt.value=txt.value.replace(/\b(I|i)nterg(ers?|rity|ra(ls?|n[dt]s?|ble|bility|te[sd]?|tors?|ti(ve|ng|on(|ist)s?)))\b/g, '$1nteg$2'); txt.value=txt.value.replace(/\b(I|i)ntel(?:[eil]|l[ae])gen(cer?s?|t|tly|tsia)\b/g, '$1ntelligen$2'); txt.value=txt.value.replace(/\b(I|i|[Dd]isi)nt(?:re|er)s(ts?|ting|ted)\b/g, '$1nteres$2'); txt.value=txt.value.replace(/\b(I|i)nterfereing\b/g, '$1nterfering'); txt.value=txt.value.replace(/\b(I|i)nte(?:rnati|natio?)nal(s?|ly)\b/g, '$1nternational$2'); txt.value=txt.value.replace(/\b(I|i|[Mm]isi|[Rr]ei)nte(?:pre|rper?e?)t(s?|ed|ers?|ations?|ive(|ly))\b/g, '$1nterpret$2'); txt.value=txt.value.replace(/\b(I|i|[Rr]ei)nt[aeo]r?duc(e[ds]?|ing|tions?|tory)\b/g, '$1ntroduc$2'); txt.value=txt.value.replace(/\b(I|i)nvente(rs?)\b/g, '$1nvento$2'); txt.value=txt.value.replace(/\b(I|i)nvinc(?:e[ia]?|a)b(l[ey]|ility|leness)\b/g, '$1nvincib$2'); txt.value=txt.value.replace(/\b(I|i)nvolvment\b/g, '$1nvolvement');

//J

txt.value=txt.value.replace(/\b(J|j)ewl(|le)ry\b/g, '$1ewel$2ry'); txt.value=txt.value.replace(/\b(J|j)uvinil(es?|ity|eness|ely|ia)\b/g, '$1uvenil$2');

//K

txt.value=txt.value.replace(/\b(K|k)in[dt]erga(?:t|rd)(ens?)\b/g, '$1indergart$2'); txt.value=txt.value.replace(/\b(K|k|[Aa]ck)nowlege([ds]?|abl[ey]|ableness|ability)\b/g, '$1nowledge$2');

//L

txt.value=txt.value.replace(/\b(L|l)ab(?:r?a|or)tor(y|ies)\b/g, '$1aborator$2'); txt.value=txt.value.replace(/\b(L|l)abor[iou]{1,2}s(|ly|ness)\b/g, '$1aborious$2'); txt.value=txt.value.replace(/\b(L|l)aquer(s?|ed|ing|ers?)\b/g, '$1acquer$2'); txt.value=txt.value.replace(/\b(L|l)ayed\b/g, '$1aid'); txt.value=txt.value.replace(/\b(L|l)ang(?:aua?|u|uan)ge(s?)\b/g, '$1anguage$2'); txt.value=txt.value.replace(/\b(L|l)arg(elle?|e?le)y\b/g, '$1argely'); txt.value=txt.value.replace(/\b(L|l)avr?ae\b/g, '$1arvae'); txt.value=txt.value.replace(/\b(L|l)astest\b/g, '$1atest'); txt.value=txt.value.replace(/\b(L|l|[Uu]nl|[Rr]el)eran(s?|t|ed|ing)\b/g, '$1earn$2'); txt.value=txt.value.replace(/\b([Ii]ll|L|l)(?:igit[ai]?m[ai]|egit[ae]m[ai]|[ei]git[ai]?mi)(te([sd]?|ly|ness)|cy|cies|ti(ng|ons?|[sz](e[sd]?|ing))|tors?)\b/g, '$1egitima$2'); txt.value=txt.value.replace(/\b(L|l)iesur(e|ely)\b/g, '$1eisur$2'); txt.value=txt.value.replace(/\b(L|l)en(?:ght|th)(s?|y|en(s?|e[dr]|ing)|ways|wise|ily|iness)\b/g, '$1ength$2'); txt.value=txt.value.replace(/\b(L|l)enian(t|tly|c[ey])\b/g, '$1enien$2'); txt.value=txt.value.replace(/\b(L|l)evle\b/g, '$1evel'); txt.value=txt.value.replace(/\b(L|l)ev[ae]tat(e[ds]?|ing|ions?|ors?)\b/g, '$1evitat$2'); txt.value=txt.value.replace(/\b(L|l)iaso(ns?)\b/g, '$1iaiso$2'); txt.value=txt.value.replace(/\b(L|l)ibell\b/g, '$1ibel'); txt.value=txt.value.replace(/\b(L|l)ibar(y|ies|ians?)\b/g, '$1ibrar$2'); txt.value=txt.value.replace(/\b(L|l)isc?en(c|s)(ed?|ing|(ee?|ure|or)s?)\b/g, '$1icen$2$3'); txt.value=txt.value.replace(/\b(L|l)(?:euten|ieutent)an(ts?|cy)\b/g, '$1ieutenan$2'); txt.value=txt.value.replace(/\b([Ll]i[vk])elyho?o(ds?)\b/g, '$1elihoo$2'); txt.value=txt.value.replace(/\b(L|l)ibguist(s?|ic(s?|ally))\b/g, '$1inguist$2'); txt.value=txt.value.replace(/\b(L|l|[Ii]ll)it(?:ara|eri?)(tes?|ture|cy|l|lly|tim?|ry|lis[mt]s?)\b/g, '$1itera$2'); txt.value=txt.value.replace(/\b(L|l)o([nv]e|rd|w)l(?:ynes?|ine)s\b/g, '$1o$2liness'); txt.value=txt.value.replace(/\b(L|l)o([nv]e|rd|w)ly(ness|est|er)\b/g, '$1o$2li$3'); txt.value=txt.value.replace(/\b(L|l)uckilly\b/g, '$1uckily'); txt.value=txt.value.replace(/\b(L|l)ieing\b/g, '$1ying');

//M

txt.value=txt.value.replace(/\b([Mm]agni|[Bb]ene|[Mm]uni)f(?:ica|[ae]ce)n(t|tly|ce)\b/g, '$1ficen$2'); txt.value=txt.value.replace(/\b(M|m)a(?:i?ntia|ntai)n(s?|e[dr]|ing|able|ability)\b/g, '$1aintain$2'); txt.value=txt.value.replace(/\b(M|m)ai?nt(?:[ae]i?n[ae]|ian[ae]|[ae]|ene)nce\b/g, '$1aintenance'); txt.value=txt.value.replace(/\b(M|m|[Mm]ism)an(?:ag|ge)(ments?|ab(l[ey]|leness|ility))\b/g, '$1anage$2'); txt.value=txt.value.replace(/\b(M|m|[Oo]utm)an(|o)(?:u|ue|e)ver(ed|s?|ing)\b/g, '$1an$2euver$3'); txt.value=txt.value.replace(/\b(M|m)an(?:afac?|[au]fa)tur(e[sd]?|ers?|ing)\b/g, '$1anufactur$2'); txt.value=txt.value.replace(/\b(M|m)ar+[aie]ge(s?|able)\b/g, '$1arriage$2'); txt.value=txt.value.replace(/\b(M|m)asculinlity\b/g, '$1asculinity'); txt.value=txt.value.replace(/\b(M|m)asquarad(e[sdr]?|ing)\b/g, '$1asquerad$2'); txt.value=txt.value.replace(/\b(M|m)atha?matic(s?|ians?|al|ally)\b/g, '$1athematic$2'); txt.value=txt.value.replace(/\b(M|m)ayon(?:n?ais|ais?)s(es?)\b/g, '$1ayonnais$2'); txt.value=txt.value.replace(/\b(M|m)ede?(ia?)e?v[aei]l(|ly|is[mt]s?)\b/g, '$1ed$2eval$3'); txt.value=txt.value.replace(/\b(M|m)ed(?:[ea]tt?er?|itt?e|itter)ran[ea]{1,2}n\b/g, '$1editerranean'); txt.value=txt.value.replace(/\b([Rr]em|[Dd]ism|M|m)emeber(s?|ed|ing)\b/g, '$1ember$2'); txt.value=txt.value.replace(/\b(M|m)omento(e?s?)\b/g, '$1emento$2'); txt.value=txt.value.replace(/\b(M|m)emio(rs?|rists?)\b/g, '$1emoi$2'); txt.value=txt.value.replace(/\b(M|m)erchendi(s|z)(e[drs]?|ers|ing[s]?)\b/g, '$1erchandi$2$3'); txt.value=txt.value.replace(/\b(M|m)esseg(e[rds]?|ing)\b/g, '$1essag$2'); txt.value=txt.value.replace(/\b(M|m)eto?erolog(y|ists?|ic(|al(|ly)))\b/g, '$1eteorolog$2'); txt.value=txt.value.replace(/\b(M|m)i(?:llit[ae]|milite)r(y|ies|ily|is[tm]s?|istic|i[sz](e[ds]?|ing|ation))\b/g, '$1ilitar$2'); txt.value=txt.value.replace(/\bmil(?:en?|le)ni(um|a|al(|ly|is[tm]))\b/g, 'millenni$1'); txt.value=txt.value.replace(/\b([Mm]ulti[mb]|[MmBb]|[Tt]r)illionare(s+|sses)\b/g, '$1illionaire$2'); txt.value=txt.value.replace(/\b(M|m)in[ai]tur(es?|iz(e[ds]?|ation|ing))\b/g, '$1iniatur$2'); txt.value=txt.value.replace(/\b(M|m)ischei(f|vous(|ly|ness))\b/g, '$1ischie$2'); txt.value=txt.value.replace(/\b(M|m)isch(?:ei?vi?|ievi)ous(|ly|ness)\b/g, '$1ischievous$2'); txt.value=txt.value.replace(/\b(M|m)ispell(s?|ings?|ed)\b/g, '$1isspell$2'); txt.value=txt.value.replace(/\b(M|m|[Uu]nm)istakeabl(y|e)\b/g, '$1istakabl$2'); txt.value=txt.value.replace(/\b(M|m)on(?:est[ae]?|asta?)r(y|ies|ial)\b/g, '$1onaster$2'); txt.value=txt.value.replace(/\b(M|m)orgag(e[eds]?|ing)\b/g, '$1ortgag$2'); txt.value=txt.value.replace(/\b(M|m)ulipl(e[stx]?|y|ie[srd]|ying|ica(tions?|tive|nds?)|iable|icity)\b/g, '$1ultipl$2'); txt.value=txt.value.replace(/\b(M|m)un(?:in?c?pi?|icipi|cip)al(|ly|ity|ities)\b/g, '$1unicipal$2'); txt.value=txt.value.replace(/\b(M|m)usi?cial([se]?|ly|ity)\b/g, '$1usical$2');

//N

txt.value=txt.value.replace(/\b(N|n|[Uu]nn)atur(?:el?|a|uru?al?)ly\b/g, '$1aturally'); txt.value=txt.value.replace(/\b(N|n|[Uu]nn)e(?:ss?|cc?)e(?:ss?|cc?)ar(y|ily)\b/g, '$1ecessar$2'); txt.value=txt.value.replace(/\b(N|n)ec(?:ces?|e)sit(y|ies|ate[sd]?|ating)\b/g, '$1ecessit$2'); txt.value=txt.value.replace(/\b(N|n|[Rr]en)egocia(ted?|ting|t(e|ion|or)s?|bl[ey]|bility|nts?)\b/g, '$1egotia$2'); txt.value=txt.value.replace(/\b(N|n)(?:eih?g|iegh)bo(u?r)(s?|ed|ing|hoods?|ly|liness)\b/g, '$1eighbo$2$3'); txt.value=txt.value.replace(/\b(N|n)ickle(ic|ous|iferous|odeons?)\b/g, '$1ickel$2'); txt.value=txt.value.replace(/\b(N|n)int(y|ieths?)\b/g, '$1inet$2'); txt.value=txt.value.replace(/\b(N|n)inet(hs?)\b/g, '$1int$2'); txt.value=txt.value.replace(/\b([Dd]e|[Nn]onde|[Cc]on)ductab(l[ey]|ility)\b/g, '$1ductib$2'); txt.value=txt.value.replace(/\b(N|n)onsenc(e|ical(|ly))\b/g, '$1onsens$2'); txt.value=txt.value.replace(/\b(N|n|[Aa]bn)ormaly\b/g, '$1ormally'); txt.value=txt.value.replace(/\b(N|n)other(n|ners?|nmost|ly)\b/g, '$1orther$2'); txt.value=txt.value.replace(/\b(N|n)oteab(les?|ility)\b/g, '$1otab$2'); txt.value=txt.value.replace(/\b(N|n|[Uu]nn)otic[ai]bl(e|y)\b/g, '$1oticeabl$2'); txt.value=txt.value.replace(/\b(N|n)owdays\b/g, '$1owadays'); txt.value=txt.value.replace(/\b(N|n)umber[ai]ca(l|lly)\b/g, '$1umerica$2');

//O

txt.value=txt.value.replace(/\b(O|o|[Dd]iso)bedian(t|ce|tly)\b/g, '$1bedien$2'); txt.value=txt.value.replace(/\b(O|o)bs(?:ses+|es)(|e[ds]|i(ng|ve|ons?)(|ly)|ors?)\b/g, '$1bsess$2'); txt.value=txt.value.replace(/\b(O|o)bselete(d?|s|ly)\b/g, '$1bsolete$2'); txt.value=txt.value.replace(/\b(O|o)bviou?suly\b/g, '$1bviously'); txt.value=txt.value.replace(/\b(O|o)cc?a(?:s[st]|t|is)io?n(s?|al|ally|ed|ing)\b/g, '$1ccasion$2'); txt.value=txt.value.replace(/\b(O|o)c(?:as?|cas)si?ona(l|lly)\b/g, '$1ccasiona$2'); txt.value=txt.value.replace(/\b(O|o)ccasionaly\b/g, '$1ccasionally'); txt.value=txt.value.replace(/\b(O|o|[Uu]no)c(?:u|c?up)p(y|ie[sd]|ying|ants?)\b/g, '$1ccup$2'); txt.value=txt.value.replace(/\b([Rr]eo|O|o)c(?:ur?|c?u)r(ing|ed|ences?|ent)\b/g, '$1ccurr$2'); txt.value=txt.value.replace(/\b(O|o)c(?:c?urr?a|cure|urr?e)n(ces?|t)\b/g, '$1ccurren$2'); txt.value=txt.value.replace(/\b(O|o)ctohedr(ons?|al?|ally)\b/g, '$1ctahedr$2'); txt.value=txt.value.replace(/\b(O|o)ctiv(es?|al)\b/g, '$1ctav$2'); txt.value=txt.value.replace(/\b(O|o)uevr(es?)\b/g, '$1euvr$2'); txt.value=txt.value.replace(/\b(O|o|[Uu]no)f(?:ficai?|icia)l(s?|ly|dom|ism)\b/g, '$1fficial$2'); txt.value=txt.value.replace(/\b(O|o|[Uu]no)f?fici?aly\b/g, '$1fficially'); txt.value=txt.value.replace(/\b(O|o)ft(|en)[-\s]+times\b/g, '$1ft$2times'); txt.value=txt.value.replace(/\b(O|o)m(?:ni|en|min)ou(s|sly)\b/g, '$1minou$2'); txt.value=txt.value.replace(/\b(O|o)mm?it(ed|ing)\b/g, '$1mitt$2'); txt.value=txt.value.replace(/\b(O|o)nomatopeo?i(a|c|cally)\b/g, '$1nomatopoei$2'); txt.value=txt.value.replace(/\b(O|o)pp(?:r?o|ur)tuni(ty|ties|s[tm]s?|stic(|ally))\b/g, '$1pportuni$2'); txt.value=txt.value.replace(/\b(O|o|[Ss]u|[Pp]resu)pos(e[ds]?|ing|it(e|ion)s?|(ite|ed|ing)ly)\b/g, '$1ppos$2'); txt.value=txt.value.replace(/\b(O|o|[Dd]iso|[Rr]eo)rg(?:an|ini)zation(s?|al)\b/g, '$1rganization$2'); txt.value=txt.value.replace(/\b(O|o|[Dd]iso|[Rr]eo)rginiz(e[ds]?|ing)\b/g, '$1rganiz$2'); txt.value=txt.value.replace(/\b(O|o)rig[ie]naly\b/g, '$1riginally'); txt.value=txt.value.replace(/\b(O|o|[Uu]no)r(?:gi|ig)ni?a(l|lly|ted?|ting|t(e|ion|or)s?)\b/g, '$1rigina$2'); txt.value=txt.value.replace(/\b(O|o)utter(|most|wear)\b/g, '$1uter$2'); txt.value=txt.value.replace(/\b(O|o)ver(?:id|r?i)den\b/g, '$1verridden'); txt.value=txt.value.replace(/\b([Oo]v|[Uu]nd)erwea?lm(s?|ed|ing)\b/g, '$1erwhelm$2'); txt.value=txt.value.replace(/\b(O|o|[Aa]ntio)xiden(ts?)\b/g, '$1xidan$2');

//P

txt.value=txt.value.replace(/\b(P|p|[Uu]np)ar(?:rall?e|r?alel?|r?allel)l(s?|i[sz]e[ds]?|isms?|epipeds?|ograms?|ed)\b/g, '$1arallel$2'); txt.value=txt.value.replace(/\b(P|p)arl[ai]i?ment(s?|ary|arians?)\b/g, '$1arliament$2'); txt.value=txt.value.replace(/\b(P|p)articu(?:lar|all?)y\b/g, '$1articularly'); txt.value=txt.value.replace(/\b(P|p)a(?:rticlu?|ticul)a(rs?|rly|ri(ty|ties|s[mt]|ze[sdr]?)|te[sdr]?|ting|tion)\b/g, '$1articula$2'); txt.value=txt.value.replace(/\b(P|p)as[st]tim(es?)\b/g, '$1astim$2'); txt.value=txt.value.replace(/\b(P|p)atrol(ing|e[dr])\b/g, '$1atroll$2'); txt.value=txt.value.replace(/\b(P|p)eacefull\b/g, '$1eaceful'); txt.value=txt.value.replace(/\b(P|p)edestrain(s?|ism)\b/g, '$1edestrian$2'); txt.value=txt.value.replace(/\b(P|p)erjor[ai]ti(ves?|vely|ons?)\b/g, '$1ejorati$2'); txt.value=txt.value.replace(/\b(P|p|[Uu]np|[Mm]isp|[Aa]pp)(?:rec[ei]+|ercie)v(e[ds]?|ing|abl[ey])\b/g, '$1erceiv$2'); txt.value=txt.value.replace(/\b(P|p|[Rr]ep)recussi(ons?|ve|vely)\b/g, '$1ercussi$2'); txt.value=txt.value.replace(/\b(P|p|[Nn]onp)er?form(?:en|n?a)(ces?)\b/g, '$1erforman$2'); txt.value=txt.value.replace(/\b(P|p)erimite(rs?)\b/g, '$1erimete$2'); txt.value=txt.value.replace(/\b(P|p|[Ii]mp)er(?:man[ai]|m[ei]n[aei]|n[aei]m[aei])n(ts?|c[ey]|tly)\b/g, '$1ermanen$2'); txt.value=txt.value.replace(/\b([Pp]er|[Rr]e|[EeOo]|[Tt]rans|[Aa]d)mis[si](ons?|ve|vely|bl[ey])\b/g, '$1missi$2'); txt.value=txt.value.replace(/\b([Pp]er|[Rr]e|[EeOo]|[Tt]rans|[Aa]d|[Cc]om)mit(ed|edly|ing)\b/g, '$1mitt$2'); txt.value=txt.value.replace(/\b(P|p)erse(?:rver[ae]|vere)n(ce|t|tly)\b/g, '$1erseveran$2'); txt.value=txt.value.replace(/\b([Pp]erse)rver(e[ds]?|ing)\b/g, '$1ver$2'); txt.value=txt.value.replace(/\b(P|p)erson(nages?)\b/g, '$1erso$2'); txt.value=txt.value.replace(/\b(P|p|[Ii]mp)ersonaly\b/g, '$1ersonally'); txt.value=txt.value.replace(/\b(P|p)ursua(de[sd]?|ding|si(on|ve|vely))\b/g, '$1ersua$2'); txt.value=txt.value.replace(/\b(P|p)henomenom\b/g, '$1henomenon'); txt.value=txt.value.replace(/\b(P|p)hil(?:osa?|a?so)ph(ers?|ic(|al|ally)|y|ies|i[sz]e[drs]?)\b/g, '$1hilosoph$2'); txt.value=txt.value.replace(/\b(P|p)hisic(s?|ists?|al(s?|ly|ity|is[mt]s?)|ize[sd]?|ians?)\b/g, '$1hysic$2'); txt.value=txt.value.replace(/\b(P|p)eic(e[ds]?|ing|emeal|ework)\b/g, '$1iec$2'); txt.value=txt.value.replace(/\b(P|p)laug(e[ds]?)\b/g, '$1lagu$2'); txt.value=txt.value.replace(/\b(P|p)lat(?:ni?|ini)um(s?)\b/g, '$1latinum$2'); txt.value=txt.value.replace(/\b(P|p)lay(?:right|write)(s?)\b/g, '$1laywright$2'); txt.value=txt.value.replace(/\b(P|p|[Uu]np)la?esant(|ly|ness)\b/g, '$1leasant$2'); txt.value=txt.value.replace(/\b(P|p)lum(?:met|et?)t(s?|ing|ed)\b/g, '$1lummet$2'); txt.value=txt.value.replace(/\b(P|p)oliti(?:ti|c)an(s?)\b/g, '$1olitician$2'); txt.value=txt.value.replace(/\b(P|p)op(?:ulati|luatio)(ns?)\b/g, '$1opulatio$2'); txt.value=txt.value.replace(/\b(P|p|[Dd]isp|[Ii]mp|[Rr]ep|[Cc]omp|[Ss]upp)os(?:ititi?|[io]sti|ti)(on(s?|ed|ing|al|ally)|ve(s?|ly))\b/g, '$1ositi$2'); txt.value=txt.value.replace(/\b(P|p|[Dd]isp|[Rr]ep)os+es(e[ds]|i(ng|ve)(|ly))\b/g, '$1ossess$2'); txt.value=txt.value.replace(/\b(P|p|[Dd]isp|[Rr]ep)os(?:es?|se)s(e[sd]|ing|ions?|ive(s?|ly|ness)|ors?)\b/g, '$1ossess$2'); txt.value=txt.value.replace(/\b(P|p|[Ii]mp)os(?:s?ibl|ibil)it(y|ies)\b/g, '$1ossibilit$2'); txt.value=txt.value.replace(/\b(P|p)ost(?:h?umos|humousl)(|ly)\b/g, '$1osthumous$2'); txt.value=txt.value.replace(/\b(P|p)owerfull\b/g, '$1owerful'); txt.value=txt.value.replace(/\b(P|a)racticle\b/g, '$1ractical'); txt.value=txt.value.replace(/\b([RrSs]ec|[Pp]rec|[Cc]onc|[Ii]nterc|[Aa]ntec|c|C)eed(e[ds]?|ers?|ing|ents?)\b/g, '$1ed$2'); txt.value=txt.value.replace(/\b([Pp]r|[Uu]npr|[Aa]nt)ec(?:en|i)den(t(s?|ed(|ly|ness)|less|ial)|c[ey])\b/g, '$1eceden$2'); txt.value=txt.value.replace(/\b([Pp]r|R|r|S|s)epe?r?at(ions?|or[ys]?|orily|ive(s?|ly))\b/g, '$1eparat$2'); txt.value=txt.value.replace(/\b(P|p)erogativ(e[sd]?)\b/g, '$1rerogativ$2'); txt.value=txt.value.replace(/\b(P|p)erscri(be[sd]?|bing|bers?|pti(ons?|ve|vely|ble|vis[tm]s?))\b/g, '$1rescri$2'); txt.value=txt.value.replace(/\b([Pp]res)(?:itig[ie]|i?teg[ie]|i?t[ie]ge)ous(|ly)\b/g, '$1tigious$2'); txt.value=txt.value.replace(/\b([Pp]re|[Aa]mbi)v(?:el[ea]|[ea]la)n(ts?|tly|ces?)\b/g, '$1valen$2'); txt.value=txt.value.replace(/\b(P|p)reist(s?|ly|hoods?)\b/g, '$1riest$2'); txt.value=txt.value.replace(/\b(P|p)rimarly\b/g, '$1rimarily'); txt.value=txt.value.replace(/\b(P|p|[Uu]nderp)riv(?:iled|[ae]l[ei]d?|ili)g(e[dsr]?|ing)\b/g, '$1rivileg$2'); txt.value=txt.value.replace(/\b(P|p)rocces+(|e[ds]|ing|ors?|ions?)\b/g, '$1rocess$2'); txt.value=txt.value.replace(/\b(P|p)roclam(e[dsr]|ing)\b/g, '$1roclaim$2'); txt.value=txt.value.replace(/\b(P|p)rof+i[stc]i[ea]n(t|cy|tly)\b/g, '$1roficien$2'); txt.value=txt.value.replace(/\b([Pp]ro|[Ii]m|[Pp]ree|E|e)minan(ces?|cy|t|tly)\b/g, '$1minen$2'); txt.value=txt.value.replace(/\b(P|p)ronounciatio(ns?)\b/g, '$1ronunciatio$2'); txt.value=txt.value.replace(/\b(P|p)ropogand(a|is[tm]s?|istic(|ally)|iz(e[ds]?|ers?|ing))\b/g, '$1ropagand$2'); txt.value=txt.value.replace(/\b([Pp]rophe)c(ied|iers?|ying)\b/g, '$1s$2'); txt.value=txt.value.replace(/\b(P|p|[Dd]isp)roportiat(e|ely)\b/g, '$1roportionat$2'); txt.value=txt.value.replace(/\b(P|p)rotaganis(ts?)\b/g, '$1rotagonis$2'); txt.value=txt.value.replace(/\b(P|p)rotie(n(|ase|oid|uria)s?|ds?)\b/g, '$1rotei$2'); txt.value=txt.value.replace(/\bprotest[ae]nt(s?|ism)\b/g, 'Protestant$1'); txt.value=txt.value.replace(/\b(P|p|[Aa]pp|[Ii]mp|[Dd]isp|[Dd]isapp|[Rr]ep)roov(e[dnrs]?|ing(|ly)|abl[ey])\b/g, '$1rov$2'); txt.value=txt.value.replace(/\b(P|p)suedo\b/g, '$1seudo'); txt.value=txt.value.replace(/\b(P|p)(?:hych|syc)(es?|(|edel|ot)ics?|iatri(c|st)s?|olog(y|ical(|ly)|ists?))\b/g, '$1sych$2'); txt.value=txt.value.replace(/\b(P|p|[Uu]np)ub(?:ish|lis)(|ed|ing|er?s?|able)\b/g, '$1ublish$2');

//Q

txt.value=txt.value.replace(/\b(Q|q)ua(?:n|nit)it(y|ies)\b/g, '$1uantit$2'); txt.value=txt.value.replace(/\b(Q|q)uater(s|ed|ing|ly|lies|finals?|back(s?|ing|ed))\b/g, '$1uarter$2'); txt.value=txt.value.replace(/\b(Q|q)uestionnab(le|ly|leness|ility)\b/g, '$1uestionab$2');

//R

txt.value=txt.value.replace(/\b(R|r)ailraod(s?|ing|ed|ers?)\b/g, '$1ailroad$2'); txt.value=txt.value.replace(/\b(R|r)a(?:ca|uc)u(s|sly)\b/g, '$1aucou$2'); txt.value=txt.value.replace(/\b(R|r)eadibility\b/g, '$1eadability'); txt.value=txt.value.replace(/\b(R|r)eb(?:bel?|e)l(ed|ing|ions?|ious(|ly|ness))\b/g, '$1ebell$2'); txt.value=txt.value.replace(/\b([RrDd]e|[Pp]er|[Mm]isper|[Cc]on|[Mm]iscon|[Pp]recon|[Tt]rans)ce?iev(e[sd]?|ers?|ing|ership|ables?)\b/g, '$1ceiv$2'); txt.value=txt.value.replace(/\b([RrDd]e|[Pp]er|[Ii]mper|[Cc]on)ci?e?v(abl(es?|y)|ed?|ers?|ing)\b/g, '$1ceiv$2'); txt.value=txt.value.replace(/\b([RrDd]e|[Pp]er|[Mm]isper|[Cc]on|[Mm]iscon|[Pp]recon|[Tt]rans)c(?:ie|ei)ve(ing|ables?)/g, '$1ceiv$2'); txt.value=txt.value.replace(/\b([Rr]ec|C|c)hargable\b/g, '$1hargeable'); txt.value=txt.value.replace(/\b(R|r)ecipi(es?)\b/g, '$1ecip$2'); txt.value=txt.value.replace(/\b([Rr]e|[Ee]x|[Ii]n|[Pp]er)c(?:epie|ipia)n(ts?|c[ey]|tly)\b/g, '$1cipien$2'); txt.value=txt.value.replace(/\b(R|r)eco[ng]i([sz](e[ds]?|ing|abl[ey])|tions?)\b/g, '$1ecogni$2'); txt.value=txt.value.replace(/\b(R|r)ec(?:c[ao]m?|o)mend(s?|ed|ers?|ing|ations?|atory|able)\b/g, '$1ecommend$2'); txt.value=txt.value.replace(/\b(R|r)econ[cs]il(?:li|)at(ions?|ory)\b/g, '$1econciliat$2'); txt.value=txt.value.replace(/\b([Rr]eoc|[Oo]c|Re)curran(ces?|t|tly)\b/g, '$1curren$2'); txt.value=txt.value.replace(/\b(R|r)ec(?:cur?|u)r(ed|ing|ent(|ly))\b/g, '$1ecurr$2'); txt.value=txt.value.replace(/\b([RrDd]e|[Ii]n|[Ii]rre)duce?abl(e|y)\b/g, '$1ducibl$2'); txt.value=txt.value.replace(/\b(R|r)establish(|e[ds]|ing|ment)\b/g, '$1eestablish$2'); txt.value=txt.value.replace(/\b([RrDd]e|[Pp]re|[Cc]on|[Dd]if|[Ii]n(?:|dif|ter)|[Tt]rans|[Cc]ircum|(?:[Ss]ub|[Tt]ele|[Vv]ideo)con|[Cc]ountertrans)f(?:era?|r[ae]|f?ere?r[ae])n(ce[drs]?|cing|ts?|tial(|ly))\b/g, '$1feren$2'); txt.value=txt.value.replace(/\b(R|r)effer(s?|ee?[ds]?|en[cs](e[ds]?|ing)|ent(s?|ial))\b/g, '$1efer$2'); txt.value=txt.value.replace(/\b(R|r)ef?fer(ed|ing|als?)\b/g, '$1eferr$2'); txt.value=txt.value.replace(/\b(R|r)eferens(e[ds]?|ing)\b/g, '$1eferenc$2'); txt.value=txt.value.replace(/\b(R|r)eguardless\b/g, '$1egardless'); txt.value=txt.value.replace(/\birr?egu?ardless\b/g, 'regardless'); txt.value=txt.value.replace(/\bIrr?egu?ardless\b/g, 'Regardless'); txt.value=txt.value.replace(/\b(R|r|L|l)eagion(s?|al(s?|ly|ism|i[sz]e[ds]?)|ary|aries)\b/g, '$1egion$2'); txt.value=txt.value.replace(/\b(R|r|[Ii]rr)egular(|il)y\b/g, '$1egularly'); txt.value=txt.value.replace(/\b(R|r)ehers(als?|e[sd]?|ing)\b/g, '$1ehears$2'); txt.value=txt.value.replace(/\b(R|r)ejuv[ai]nat(e[ds]?|ing|ion|ors?)\b/g, '$1ejuvenat$2'); txt.value=txt.value.replace(/\b(R|r)eala?t(e[ds]?|ion(s?|al|ships?)|iv(ely|es?|ity|is[mt]s?))\b/g, '$1elat$2'); txt.value=txt.value.replace(/\b(R|r)e(?:al[ae]a?|la?e)s(e[ds]?|ing)\b/g, '$1eleas$2'); txt.value=txt.value.replace(/\b(R|r|[Ii]rr)el(?:l+[ae]v[ae]|av[ae]|evea?)n(c[ey]|t|tly)\b/g, '$1elevan$2'); txt.value=txt.value.replace(/\b(R|r|[Uu]nr)eliablity\b/g, '$1eliability'); txt.value=txt.value.replace(/\b(R|r)el(?:ig|gi)o(ns?|nless|us(|ly|ness)|se|sity|nis[tm])\b/g, '$1eligio$2'); txt.value=txt.value.replace(/\b(R|r)eligios(|ly|ness)\b/g, '$1eligious$2'); txt.value=txt.value.replace(/\b(R|r)eamain(s?|ed|ing|ders?)\b/g, '$1emain$2'); txt.value=txt.value.replace(/\b(R|r)emember[ae]nc(er?s?)\b/g, '$1emembranc$2'); txt.value=txt.value.replace(/\b(R|r)em(?:ines?|enis?|ini)c(e[ds]?|ing|en(ces?|t|tly))\b/g, '$1eminisc$2'); txt.value=txt.value.replace(/\b(R|r)eknow(n|ned)\b/g, '$1enow$2'); txt.value=txt.value.replace(/\b(R|r|[Uu]nr)epenten(t|tly|ce)\b/g, '$1epentan$2'); txt.value=txt.value.replace(/\b(R|r)ep[ei]to(ires?|ry|ries|rial)\b/g, '$1eperto$2'); txt.value=txt.value.replace(/\b(R|r)epr[ae]mand(s?|ed|ings?)\b/g, '$1eprimand$2'); txt.value=txt.value.replace(/\b(R|r)e[sc]ind(s?|ed|ing)/g, '$1escind$2'); txt.value=txt.value.replace(/\b(R|r)eserach(|ed|er?s?|ing|ists?|able)\b/g, '$1esearch$2'); txt.value=txt.value.replace(/\b(R|r)essembl(e[sd]?|ing|[ae]nces?)\b/g, '$1esembl$2'); txt.value=txt.value.replace(/\b([Rr]e|[Aa]s)sembel(ing|ance|ed|y)\b/g, '$1sembl$2'); txt.value=txt.value.replace(/\b(R|r|[Ii]rr)esistabl(e|y)\b/g, '$1esistibl$2'); txt.value=txt.value.replace(/\b(R|r)e(?:pons|sponc)(es?|ive(|ly)|ibl[ey]|ibilit(y|ies))\b/g, '$1espons$2'); txt.value=txt.value.replace(/\b(R|r|[Ii]rr)espon(?:s[ae]b|sibi|isb)(l[ey])\b/g, '$1esponsib$2'); txt.value=txt.value.replace(/\b(R|r|[Ii]rr)espon(?:s[ae]?bili|sibli|sibil|isbili)t(y|ies)\b/g, '$1esponsibilit$2'); txt.value=txt.value.replace(/\b(R|r)est(?:aurau|[aeu]rau?|rau|uara)n(ts?)\b/g, '$1estauran$2'); txt.value=txt.value.replace(/\b(R|r)est[ae]u?rant[eo]u?(rs?)/g, '$1estaurateu$2'); txt.value=txt.value.replace(/\b([Rr]es|S|s|[Cc]ons|[Dd]is|[Rr]edis)tict(s?|e[dr]|ing|or|ness|est|ly|ive(|ly))\b/g, '$1trict$2'); txt.value=txt.value.replace(/\b([Rr]e|[Ii]n)s(?:sur?re|ure|urru)ct(s?|ed|ing|ion(|ist)s?)\b/g, '$1surrect$2'); txt.value=txt.value.replace(/\b(R|r)hinocerous(|es)\b/g, '$1hinoceros$2'); txt.value=txt.value.replace(/\b(R|r)(?:yth[iey]?|hyth[iey])m(s?|ic(s?|al|ally)|ists?)\b/g, '$1hythm$2'); txt.value=txt.value.replace(/\b(R|r)edic+ulous(|ly|ness)\b/g, '$1idiculous$2'); txt.value=txt.value.replace(/\b(R|r)oomat(es?)\b/g, '$1oommat$2'); txt.value=txt.value.replace(/\b(R|r)ud[ae]mentar(y|ily|iness)\b/g, '$1udimentar$2');

//S

txt.value=txt.value.replace(/\b(S|s)abatog(e[sd]?|ing)\b/g, '$1abotag$2'); txt.value=txt.value.replace(/\b(S|s)acr[ae]fic(e[ds]?|ing|ial(|ly))\b/g, '$1acrific$2'); txt.value=txt.value.replace(/\b(S|s)acr(?:[ae]l[ei]d?|ilid?|iled)g(es?|ious)\b/g, '$1acrileg$2'); txt.value=txt.value.replace(/\b[Ss]ad(?:uc?|d?uc)ce(es?|an|eism)\b/g, 'Sadduce$1'); txt.value=txt.value.replace(/\b(S|s)afte?y\b/g, '$1afety'); txt.value=txt.value.replace(/\b(S|s)alery\b/g, '$1alary'); txt.value=txt.value.replace(/\b(S|s)andw(?:hi|it)ch(|e[ds]|ing)\b/g, '$1andwich$2'); txt.value=txt.value.replace(/\b(S|s)at(?:e|tel?|t?al?)lite(s?)\b/g, '$1atellite$2'); txt.value=txt.value.replace(/\b(S|s)atric(|al|ally)\b/g, 'satiric$2'); txt.value=txt.value.replace(/\b(S|s)caleabl(e|y)\b/g, '$1calabl$2'); txt.value=txt.value.replace(/\b(S|s)(?:chedu[ae]|cedu[ae]?|hedu[ae]?)l(es?|ed|ing)\b/g, '$1chedul$2'); txt.value=txt.value.replace(/\b(S|s)cirpt(s?)\b/g, '$1cript$2'); txt.value=txt.value.replace(/\b(S|s)coll(s?)\b/g, '$1croll$2'); txt.value=txt.value.replace(/\b(S|s)cupture?(s?)\b/g, '$1culpture$2'); txt.value=txt.value.replace(/\b(S|s|[Rr]es)each(|ed|er?s?|ing)\b/g, '$1earch$2'); txt.value=txt.value.replace(/\b(S|s)ec(?:c?e|ces)sion(s?|al|ists?|ism)\b/g, '$1ecession$2'); txt.value=txt.value.replace(/\b(S|s)ecr(?:at[ae]r|eter|etart)(y|ies|ia[lt])\b/g, '$1ecretar$2'); txt.value=txt.value.replace(/\b(S|s)ie([zn](e[ds]?|ing)|zures?|ners?)\b/g, '$1ei$2'); txt.value=txt.value.replace(/\b([Rr]es|[Ss])embe?lenc(es?)\b/g, '$1emblanc$2'); txt.value=txt.value.replace(/\b(S|s)entanc(e[sd]?|ings?|ers?)\b/g, '$1entenc$2'); txt.value=txt.value.replace(/\b(S|s|[Ii]ns)epe?ra(bl[ey]|te[sd]?|tely|ti(on|s[mt]|ng)s?)\b/g, '$1epara$2'); txt.value=txt.value.replace(/\b(S|s)errious(|ly|ness)\b/g, '$1erious$2'); txt.value=txt.value.replace(/\b(S|s)e(?:rvera|v[aei]r[ei]a?|v[ai]r[aei])l\b/g, '$1everal'); txt.value=txt.value.replace(/\b(S|s)everly\b/g, '$1everely'); txt.value=txt.value.replace(/\b(S|[Aa]?s)exua?ly\b/g, '$1exually'); txt.value=txt.value.replace(/\b(S|s)haddow(s?|ed|ing)\b/g, '$1hadow$2'); txt.value=txt.value.replace(/\b(S|s)heperd(s?|ed|ing)\b/g, '$1hepherd$2'); txt.value=txt.value.replace(/\b(S|s)heild(s?|ed|ing)\b/g, '$1hield$2'); txt.value=txt.value.replace(/\b(S|s)hineing\b/g, '$1hining'); txt.value=txt.value.replace(/\b(S|s)houdl\b/g, '$1hould'); txt.value=txt.value.replace(/\b(S|s)hre[ai]k(s?|ed|ing)\b/g, '$1hriek$2'); txt.value=txt.value.replace(/\b(S|s)(?:edere|ideri?)al\b/g, '$1idereal'); txt.value=txt.value.replace(/\b(S|s|[Bb]es)ei([gv]e[sd]?|[gv]ing)\b/g, '$1ie$2'); txt.value=txt.value.replace(/\b(S|s)ign[ei]t(o|u)r(es?|y|ies)\b/g, '$1ignat$2r$3'); txt.value=txt.value.replace(/\b(S|s|[Ii]ns|[Nn]ons)ign(?:i?fi?gan|(?:i?f|fi?)can|if(?:ac[ae]n|icen|ica))(t|tly|ce)\b/g, '$1ignifican$2'); txt.value=txt.value.replace(/\b([SsHh]ill)yness\b/g, '$1iness'); txt.value=txt.value.replace(/\b(S|s|[Dd]iss|[Vv]eris)im(?:(?:mili?|[ua]l|ili)ari?|ilari)(|ly|ity)\b/g, '$1imilar$2'); txt.value=txt.value.replace(/\b(S|s)implier\b/g, '$1impler'); txt.value=txt.value.replace(/\b(S|s)impley\b/g, '$1imply'); txt.value=txt.value.replace(/\b(S|s)im(?:ultani?|altan[eou])[eou]{1,2}(s|sly)\b/g, '$1imultaneou$2'); txt.value=txt.value.replace(/\b(S|s)icne\b/g, '$1ince'); txt.value=txt.value.replace(/\b(S|s)ingsog\b/g, '$1ingsong'); txt.value=txt.value.replace(/\b(S|s|[Ii]ns)incerle?y\b/g, '$1incerely'); txt.value=txt.value.replace(/\b(S|s)ne?es(e[ds]?)\b/g, '$1neez$2'); txt.value=txt.value.replace(/\b([Ss][ou])(dd|ll)eness\b/g, '$1$2enness'); txt.value=txt.value.replace(/\b(S|s)of(?:ware|twares)\b/g, '$1oftware'); txt.value=txt.value.replace(/\b(S|s)oilde(rs?|ring)\b/g, '$1oldie$2'); txt.value=txt.value.replace(/\b(S|s)oliliqu(y|ies|i[sz](e[sd]?|ing)|ists?)\b/g, '$1oliloqu$2'); txt.value=txt.value.replace(/\b(S|s)olat[ae]ry\b/g, '$1olitary'); txt.value=txt.value.replace(/\b(S|s|[Ii]ns)oluab(l[ey]|ility)\b/g, '$1olub$2'); txt.value=txt.value.replace(/\b(S|s)oe?m(body|[dw]ays?|how|one|place|thing|times?|what|where)\b/g, '$1ome$2'); txt.value=txt.value.replace(/\b(S|s|[Uu]ns)(?:oph|ofist|uphist)icat(e[ds]?|ing|ion)\b/g, '$1ophisticat$2'); txt.value=txt.value.replace(/\b(S|s)o(?:f|ph)mor(es?|ic|ically)\b/g, '$1ophomor$2'); txt.value=txt.value.replace(/\b(S|s)or?r[cs]eror(s?)\b/g, '$1orcerer$2'); txt.value=txt.value.replace(/\b(S|s)ourth(|er([ns]?|ly|lies|nmost)|(ea|we)st(|er(n?|ly|lies)))\b/g, '$1outh$2'); txt.value=txt.value.replace(/\b(S|s)ouvenier(s?)\b/g, '$1ouvenir$2'); txt.value=txt.value.replace(/\b(S|s)ov(?:reig?|erie?g)g(ns?|nty)\b/g, '$1overeig$2'); txt.value=txt.value.replace(/\b(S|s)overe?ignity\b/g, '$1overeignty'); txt.value=txt.value.replace(/\b(S|s)pag(?:et?|he)t(i|ini)\b/g, '$1paghett$2'); txt.value=txt.value.replace(/\b(S|s)parce(|r|st|ly|ness)\b/g, '$1parse$2'); txt.value=txt.value.replace(/\b(S|s)pecialli([sz](e[sd]?|ing|ations?))\b/g, '$1peciali$2'); txt.value=txt.value.replace(/\b(S|s)pecif(cs?|city)\b/g, '$1pecifi$2'); txt.value=txt.value.replace(/\b(S|s)pecifica?ly\b/g, '$1pecifically'); txt.value=txt.value.replace(/\b(S|s)peciman\b/g, '$1pecimen'); txt.value=txt.value.replace(/\b(S|s)pectaucla(r|rly)\b/g, '$1pectacula$2'); txt.value=txt.value.replace(/\b(S|s)pritual(s?|ly|ity|is[mt]s?)\b/g, '$1piritual$2'); txt.value=txt.value.replace(/\b(S|s)ponser(s?|ed|ing|ships?)\b/g, '$1ponsor$2'); txt.value=txt.value.replace(/\b(S|s)pontan(?:[eiou]{1,2})(s|sly)\b/g, '$1pontaneou$2'); txt.value=txt.value.replace(/\b(S|s)preaded\b/g, '$1pread'); txt.value=txt.value.replace(/\b(S|s)taf\b/g, '$1taff'); txt.value=txt.value.replace(/\b(S|s|[Ii]ns)tablili(ty|ties|[sz](e[drs]?|ing))\b/g, '$1tabili$2'); txt.value=txt.value.replace(/\b(S|s)tatmen(ts?)\b/g, '$1tatemen$2'); txt.value=txt.value.replace(/\b(S|s)teri?otyp(e[sd]?|ing|ical(|ly))\b/g, '$1tereotyp$2'); txt.value=txt.value.replace(/\b(S|s)tiffl(e[sd]?|ing)\b/g, '$1tifl$2'); txt.value=txt.value.replace(/\b(S|s)tpo\b/g, '$1top'); txt.value=txt.value.replace(/\b(S|s)t(?:art[ae]|rat[ai])g(y|ies|ic|ically|i[sz](e[ds]?|ing))\b/g, '$1trateg$2'); txt.value=txt.value.replace(/\b(S|s)trengh?t(s?|en(s?|ed|ing|ers?))\b/g, '$1trength$2'); txt.value=txt.value.replace(/\b(S|s)trenou(s|sly)\b/g, '$1trenuou$2'); txt.value=txt.value.replace(/\b(S|s)trictist\b/g, '$1trictest'); txt.value=txt.value.replace(/\b(S|[Aa]?s)tingen(t|tly|cy)\b/g, '$1tringen$2'); txt.value=txt.value.replace(/\b(S|s)tornegst\b/g, '$1trongest'); txt.value=txt.value.replace(/\b(S|s|[Ii]nfras|[Mm]icros|[Rr]es|[Ss]ubs|[Ss]upers)t(?:ucu?|rucu)tur(e[ds]?|al|ally)\b/g, '$1tructur$2'); txt.value=txt.value.replace(/\b(S|s)tub(?:bor|orn?)nes?s\b/g, '$1tubbornness'); txt.value=txt.value.replace(/\b(S|s)tuddy\b/g, '$1tudy'); txt.value=txt.value.replace(/\b(S|s)tuding\b/g, '$1tudying'); txt.value=txt.value.replace(/\b(S|s)tird(y|i(e[drs]|est|ly|ness))\b/g, '$1turd$2'); txt.value=txt.value.replace(/\b(S|s)tilus\b/g, '$1tylus'); txt.value=txt.value.replace(/\b(S|s|[Ii]ns)ubordin?[ae]nt(e[sd]?|or|ive|ly|ions?)\b/g, '$1ubordinat$2'); txt.value=txt.value.replace(/\b(S|s)epin(as?)\b/g, '$1ubpoen$2'); txt.value=txt.value.replace(/\b(S|s)ubsid(?:u?a|i?e)r(y|ies)\b/g, '$1ubsidiar$2'); txt.value=txt.value.replace(/\b(S|s)ubstace(s?)\b/g, '$1ubstance$2'); txt.value=txt.value.replace(/\b(S|s|[IiUu]ns)ubsta(?:nc?|t)ia(l?|lly|lity|te[ds]?|ting)\b/g, '$1ubstantia$2'); txt.value=txt.value.replace(/\b(S|s)ubter?rania(n|nly)\b/g, '$1ubterranea$2'); txt.value=txt.value.replace(/\b(S|s)ubstract(s?|ed|ing|ion)\b/g, '$1ubtract$2'); txt.value=txt.value.replace(/\b(S|s)urburb(s?|an(|ism|ites?)|ed)\b/g, '$1uburb$2'); txt.value=txt.value.replace(/\b(S|s)uburbia(n|nites?)\b/g, '$1uburba$2'); txt.value=txt.value.replace(/\b(S|s)uc(?:c?s|)e(ed(s?|ed|ing)|ss(|es|(ful|ive)(|ly)|ions?|ors?))\b/g, '$1ucce$2'); txt.value=txt.value.replace(/\b(S|s|[Uu]ns)u(?:c+e|ces+)sful?(l|lly)\b/g, '$1uccessfu$2'); txt.value=txt.value.replace(/\b(S|s)uc(?:es?|ce)si(ve|vely|ons?)\b/g, '$1uccessi$2'); txt.value=txt.value.replace(/\b(S|s|[Ii]ns)uf(?:icie|f?icei?|f?icia?)n(t|tly|cy|cies)\b/g, '$1ufficien$2'); txt.value=txt.value.replace(/\b(S|s)uf(?:f?e|e?)rag(e|ett(es?|ism)|is[tm]s?)\b/g, '$1uffrag$2'); txt.value=txt.value.replace(/\b(S|s)ucid(es?|al)\b/g, '$1uicid$2'); txt.value=txt.value.replace(/\b(S|s)ugest(s?|ed|ing|ive(|ly|ness)|ions?|ible|ibility)\b/g, '$1uggest$2'); txt.value=txt.value.replace(/\b(S|s)um(?:a|e|me(?!ry))r(y|ily|i[sz](ation|e[ds]?|ing))\b/g, '$1ummar$2'); txt.value=txt.value.replace(/\b(S|s)uperintendan(ts?)\b/g, '$1uperintenden$2'); txt.value=txt.value.replace(/\b(S|s)uperce+(de[ds]?|ding|ssions?)\b/g, '$1uperse$2'); txt.value=txt.value.replace(/\b(S|s)u(?:r?|rp)plant(s?|ed|ing)\b/g, '$1upplant$2'); txt.value=txt.value.replace(/\b(S|s)u(?:rpp?res?|p?pre|pres?)s(|e[sd]|ing|ion|ive(|ly)|ants?|ible|[eo]rs?)\b/g, '$1uppress$2'); txt.value=txt.value.replace(/\b(S|s)urley\b/g, '$1urly'); txt.value=txt.value.replace(/\b(S|s|[Uu]ns)u(?:pri[sz]|rpriz)(e[ds]?|ing|ingly)\b/g, '$1urpris$2'); txt.value=txt.value.replace(/\b(S|s)ur(?:r?under|rend)(s?|ed|ing)\b/g, '$1urrender$2'); txt.value=txt.value.replace(/\b(S|s)urr?(?:e?peti|ep)tiou(s|sly)\b/g, '$1urreptitiou$2'); txt.value=txt.value.replace(/\b(S|s)(?:ur(?:ou|ro)|orr?(?:o?u))nd(s?|ed|ings?)\b/g, '$1urround$2'); txt.value=txt.value.replace(/\b(S|s)urveill\b/g, '$1urveil'); txt.value=txt.value.replace(/\b(S|s)urveye(rs?)\b/g, '$1urveyo$2'); txt.value=txt.value.replace(/\b(S|s)ur?viv(?:io|e)(rs?)\b/g, '$1urvivo$2'); txt.value=txt.value.replace(/\b(S|s)uc?septi((ve|ble)(|ness)|bility|vity)\b/g, '$1uscepti$2'); txt.value=txt.value.replace(/\b(S|s)wae([rt](s?|ing)|te[dr])\b/g, '$1wea$2'); txt.value=txt.value.replace(/\b(S|s)wiming\b/g, '$1wimming'); txt.value=txt.value.replace(/\b(S|[Aa]?s|[Aa]ntis)ymetr(y|ies|ical(|ly))\b/g, '$1ymmetr$2'); txt.value=txt.value.replace(/\b(S|[Aa]?s)ym?metricaly\b/g, '$1ymmetrically'); txt.value=txt.value.replace(/\b(S|s)ympton(s?)\b/g, '$1ymptom$2'); txt.value=txt.value.replace(/\b(S|s)ynchoniz(e[drs]?|ations?|ing)\b/g, '$1ynchroniz$2'); txt.value=txt.value.replace(/\b(S|s)[yi]non[oa]mou(s|sly)\b/g, '$1ynonymou$2'); txt.value=txt.value.replace(/\b(S|s)[yi]phyl+[iu](s|tic)\b/g, '$1yphili$2'); txt.value=txt.value.replace(/\b(S|s)yrap\b/g, '$1yrup'); txt.value=txt.value.replace(/\b([Ss])s?ytem(s?)\b/g, '$1ystem$2');

//T

txt.value=txt.value.replace(/\b(T|t)kaing\b/g, '$1aking'); txt.value=txt.value.replace(/\b(T|t)allent(s|ed)\b/g, '$1alent$2'); txt.value=txt.value.replace(/\b(T|t)alekd\b/g, '$1alked'); txt.value=txt.value.replace(/\b(T|t)argett(ed|ing)\b/g, '$1arget$2'); txt.value=txt.value.replace(/\b(T|t)a(t+)ooes\b/g, '$1a$2oos'); txt.value=txt.value.replace(/\b(T|t)eached\b/g, '$1aught'); txt.value=txt.value.replace(/\b(T|t)axanom(y|ic|ists?)\b/g, '$1axonom$2'); txt.value=txt.value.replace(/\b(T|t|[Nn]ont)echnicaly\b/g, '$1echnically'); txt.value=txt.value.replace(/\b(T|t)echic(ians?|al|ally)\b/g, '$1echnic$2'); txt.value=txt.value.replace(/\b(T|t)elivi[sz](e[sd]?|i(ng|on)s?|ors?|ual)\b/g, '$1elevis$2'); txt.value=txt.value.replace(/\b(T|t)elev(?:si|is)o(ns?)\b/g, '$1elevisio$2'); txt.value=txt.value.replace(/\b(T|t|[Ii]nt|[Ss]ubt)emp(?:a?r[ae]|ere?|)(te|tely|tures?|ment(s?|al|ally)|nce)\b/g, '$1empera$2'); txt.value=txt.value.replace(/\b(T|t)endanc(y|ies)\b/g, '$1endenc$2'); txt.value=txt.value.replace(/\b(T|t|[Ee]xtrat)errestial(s?|ly)\b/g, '$1errestrial$2'); txt.value=txt.value.replace(/\b(T|t)er(?:ri|it|rat)or(y|ies|ial)\b/g, '$1erritor$2'); txt.value=txt.value.replace(/\b(T|t)erritorist(s?|ic)\b/g, '$1errorist$2'); txt.value=txt.value.replace(/\b(T|t)h(n|t|w)a\b/g, '$1ha$2'); txt.value=txt.value.replace(/\bUnthaw(s?|ed|ing)\b/g, 'Thaw$1'); txt.value=txt.value.replace(/\bunthaw(s?|ed|ing)\b/g, 'thaw$1'); txt.value=txt.value.replace(/\b(T|t)hge\b/g, '$1he'); txt.value=txt.value.replace(/\b(T|t)heri\b/g, '$1heir'); txt.value=txt.value.replace(/\b(T|t)he(?:mself|irselve)s\b/g, '$1hemselves'); txt.value=txt.value.replace(/\b(T|t)hne\b/g, '$1hen'); txt.value=txt.value.replace(/\b(T|t)heor(u?m)\b/g, '$1heorem'); txt.value=txt.value.replace(/\b([tT])heorectic(al|ally|s)?\b/g, '$1heoretic$2'); txt.value=txt.value.replace(/\b(T|t)heese\b/g, '$1hese'); txt.value=txt.value.replace(/\b(T|t)hei(f|ves|very|ving)\b/g, '$1hie$2'); txt.value=txt.value.replace(/\b(T|t)h(?:ign|nig)(|s)\b/g, '$1hing$2'); txt.value=txt.value.replace(/\b(T|t)higsn\b/g, '$1hings'); txt.value=txt.value.replace(/\b(T|t)hi(?:kn|unk)(|s|ing)\b/g, '$1hink$2'); txt.value=txt.value.replace(/\b(T|t)hri(ds?|dly)\b/g, '$1hir$2'); txt.value=txt.value.replace(/\b(T|t)hsi\b/g, '$1his'); txt.value=txt.value.replace(/\b(T|t)hrough(ly|ness)\b/g, '$1horough$2'); txt.value=txt.value.replace(/\b(T|t)hsoe\b/g, '$1hose'); txt.value=txt.value.replace(/\b(T|t)hree(es?)\b/g, '$1hre$2'); txt.value=txt.value.replace(/\b(T|t)(?:h?ress|h?reshh|resh)old(s?)\b/g, '$1hreshold$2'); txt.value=txt.value.replace(/\b([Tt]h?)roug\b/g, '$1rough'); txt.value=txt.value.replace(/\b(T|t)(?:[hr]ough|hrou[gh]|hrought)out\b/g, '$1hroughout'); txt.value=txt.value.replace(/\b(T|t)husfar\b/g, '$1hus far'); txt.value=txt.value.replace(/\b(T|t)ightning\b/g, '$1ightening'); txt.value=txt.value.replace(/\b(T|t)imn(e[sd]?|ely|ing)\b/g, '$1im$2'); txt.value=txt.value.replace(/\b(T|t)(?:|abb?[ao]c?|obbac?|oba)c(os?|nists?)\b/g, '$1obacc$2'); txt.value=txt.value.replace(/\b(T|t|[Ii]nt)ol(?:l?eren|leran)(ces?|t|tly)\b/g, '$1oleran$2'); txt.value=txt.value.replace(/\b[Tt]olkein\b/g, 'Tolkien'); txt.value=txt.value.replace(/\b(T|t)omatos\b/g, '$1omatoes'); txt.value=txt.value.replace(/\b(T|t)om(?:mor?|o)ro(ws?)\b/g, '$1omorro$2'); txt.value=txt.value.replace(/\b(T|t)oung(e[ds]?|ing)\b/g, '$1ongu$2'); txt.value=txt.value.replace(/\b(T|t)ongiht\b/g, '$1onight'); txt.value=txt.value.replace(/\b(T|t)orpedos\b/g, '$1orpedoes'); txt.value=txt.value.replace(/\b(T|t)ou?r[an](ments?)\b/g, '$1ourna$2'); txt.value=txt.value.replace(/\b(T|t|[Uu]nt)owra(ds?)\b/g, '$1owar$2'); txt.value=txt.value.replace(/\b(T|t|[Ii]nt)ractibl(e|y)\b/g, '$1ractabl$2'); txt.value=txt.value.replace(/\b(T|t|[Nn]ont)raditionaly\b/g, '$1raditionally'); txt.value=txt.value.replace(/\b(T|t)railor(s?|ed|ing|able)\b/g, '$1railer$2'); txt.value=txt.value.replace(/\b(T|t)ranscation(s?|al)\b/g, '$1ransaction$2'); txt.value=txt.value.replace(/\b(T|t)ranscep(ts?)\b/g, '$1ransep$2'); txt.value=txt.value.replace(/\b(T|t)rans?fe(re[dr]|ring?)\b/g, '$1ransfer$2'); txt.value=txt.value.replace(/\b(T|t)ranform(s?|ed|ers?|ing|ati(ons?|ve)|able)\b/g, '$1ransform$2'); txt.value=txt.value.replace(/\b(T|t)ranstion\b/g, '$1ransition'); txt.value=txt.value.replace(/\b(T|t|[Uu]nt)ranslateable\b/g, '$1ranslatable'); txt.value=txt.value.replace(/\b(T|t)ranslate(rs?)\b/g, '$1ranslato$2'); txt.value=txt.value.replace(/\b(T|t)ransmis?sab(l[ey]|ility)\b/g, '$1ransmissib$2'); txt.value=txt.value.replace(/\b(T|t)ranspora(tion|ble|bility)\b/g, '$1ransporta$2'); txt.value=txt.value.replace(/\b(T|t|[Mm]alt|[Mm]ist)reateme?n(ts?)\b/g, '$1reatmen$2'); txt.value=txt.value.replace(/\b(T|t)riology\b/g, '$1rilogy'); txt.value=txt.value.replace(/\b([Tt]ri|[Mm]o)nomina(ls?)\b/g, '$1inomia$2'); txt.value=txt.value.replace(/\b(T|t)ruely\b/g, '$1ruly'); txt.value=txt.value.replace(/\b(T|t)ut(ala|ali|ale|ele|eli|ila|ile|ili)ge\b/g, '$1utelage'); txt.value=txt.value.replace(/\b(T|t)wel(?:f|th)(s?)\b/g, '$1welfth$2'); txt.value=txt.value.replace(/\b(T|[Aa]?t)(?:ipic|ypci)al(|ly|ity|ness)\b/g, '$1ypical$2'); txt.value=txt.value.replace(/\b(T|t)yr(?:ran?|a)n(y|ical(|ly|ness)|ous(|ly)|iz(e[sd]?|ing))\b/g, '$1yrann$2');

//U //Look for some "Un-" words under their roots: "(Un)Root"

txt.value=txt.value.replace(/\b(U|u)biquitious(|ly|ness)\b/g, '$1biquitous$2'); txt.value=txt.value.replace(/\balterior\b/g, 'ulterior'); txt.value=txt.value.replace(/\b(U|u)na(?:mi|ny)[nm]ou(s|sly)\b/g, '$1nanimou$2'); txt.value=txt.value.replace(/\b([Uu]n|[Ss]ub)con(?:[cs]ious|science)(|ly)\b/g, '$1conscious$2'); txt.value=txt.value.replace(/\b(U|u|[Mm]isu)ndertand(s?|ing|abl[ey])\b/g, '$1nderstand$2'); txt.value=txt.value.replace(/\b(U|u)n(?:[ia]latre|alater)a(l|lly)\b/g, '$1nilatera$2'); txt.value=txt.value.replace(/\b([Uu])niversial(|ly|ity|ness|is[tm]s?)\b/g, '$1niversal$2'); txt.value=txt.value.replace(/\b(U|u)n(?:ive(?:ri?si?|si)|viersi)t(y|ies)\b/g, '$1niversit$2'); txt.value=txt.value.replace(/\b(U|u)n(?:n?ec(?:ces?|e)|eces)sar(y|ily)\b/g, '$1nnecessar$2'); txt.value=txt.value.replace(/\b(U|u)notice(d|abl[ey])\b/g, '$1nnotice$2'); txt.value=txt.value.replace(/\b(U|u)n(?:it|til)l\b/g, '$1ntil'); txt.value=txt.value.replace(/\b(U|u)nw(?:ei|ie)ldly\b/g, '$1nwieldy'); txt.value=txt.value.replace(/\b(U|u)pto\b/g, '$1p to'); txt.value=txt.value.replace(/\b(U|u|[DdMm]isu)is(e[sd]?)\b/g, '$1s$2'); txt.value=txt.value.replace(/\b(U|u)sefull\b/g, '$1seful'); txt.value=txt.value.replace(/\b(U|u)seing\b/g, '$1sing'); txt.value=txt.value.replace(/\b(U|u|[Uu]nu)s(?:s+ual?|s*aul?|al|ua|us[au]l)(ly)?\b/g, '$1sual$2');

//V

txt.value=txt.value.replace(/\b(V|v)ac(?:cu|c?)um(s?|ed|ing)\b/g, '$1acuum$2'); txt.value=txt.value.replace(/\b(V|v|[Ii]nv)alue?bl(es?|y)\b/g, '$1aluabl$2'); txt.value=txt.value.replace(/\b(V|v)ar[ia]+ties\b/g, '$1arieties'); txt.value=txt.value.replace(/\b(V|v)eg[ai]?tabl(es?)\b/g, '$1egetabl$2'); txt.value=txt.value.replace(/\b(V|v)eget(?:ter?|er)rian(s?|ism)\b/g, '$1egetarian$2'); txt.value=txt.value.replace(/\b(V|v)eng[ea]nce\b/g, '$1engeance'); txt.value=txt.value.replace(/\b(V|v)en[ae]mous\b/g, '$1enomous'); txt.value=txt.value.replace(/\b(V|v)era?ficatio(ns?)\b/g, '$1erificatio$2'); txt.value=txt.value.replace(/\b(V|v|[Cc]onv|[Dd]iv|[Ii]nv|[Oo]bv|[Pp]erv|[Rr]ev|[Ss]ubv)eriso(ns?)\b/g, '$1ersio$2'); txt.value=txt.value.replace(/\b(V|v)(?:eyr|rey|yer|yre)\b/g, '$1ery'); txt.value=txt.value.replace(/\b(V|v)(?:a|in)cinit(y|ies)\b/g, '$1icinit$2'); txt.value=txt.value.replace(/\b(V|v)ig(?:[ae]?la|[iea]le)n(ce|t|tly|tes?)\b/g, '$1igilan$2'); txt.value=txt.value.replace(/\b(V|v)ig(?:erou?|arou?|irou?|oro|ourou?)s(|ly|ness)\b/g, '$1igorous$2'); txt.value=txt.value.replace(/\b(V|v)il(?:li|l?a)f(y|ie[sd]|ying)\b/g, '$1ilif$2'); txt.value=txt.value.replace(/\b(V|v|[Ss]uperv)il(?:l?ia|ai)n(s?|y|ous(|ly|ness)|ess)\b/g, '$1illain$2'); txt.value=txt.value.replace(/\b(V|v|[Ii]nv|[Dd]iv|[Ii]ndiv)isab(l[ey]|ility)\b/g, '$1isib$2'); txt.value=txt.value.replace(/\b(V|v)is(?:is)?t(ing|ed|ors?)\b/g, '$1isit$2'); txt.value=txt.value.replace(/\b(V|v)ol?lcanoe\b/g, '$1olcano'); txt.value=txt.value.replace(/\b(V|v|[Ii]nv)ol[oe]ntary\b/g, '$1oluntary'); txt.value=txt.value.replace(/\b(V|v)ol(?:ante?|unt|lunte?)er(|ed|ing|s)\b/g, '$1olunteer$2'); txt.value=txt.value.replace(/\b(V|v)omitt(s|e[dr]|ing)?\b/g, '$1omit$2');

//W

txt.value=txt.value.replace(/\b(W|w)(?:atn|hant|nat)(|s|ed|ing)\b/g, '$1ant$2'); txt.value=txt.value.replace(/\b(W|w|[Uu]nw)ar(?:re|a)nt((|ee|[eo]r)s?|ed|ing|y|ies)\b/g, '$1arrant$2'); txt.value=txt.value.replace(/\b(W|w)(?:eapon[ae]|[ae]pon)(s?|ry|i[sz]ed?)\b/g, '$1eapon$2'); txt.value=txt.value.replace(/\b(W|w)ierd(|er|est|l?y|ness|o|oes|ies?)\b/g, '$1eird$2'); txt.value=txt.value.replace(/\b(W|w)hta\b/g, '$1hat'); txt.value=txt.value.replace(/\b(W|w)her[ae]bouts\b/g, '$1hereabouts'); txt.value=txt.value.replace(/\b(W|w)h(?:ihc|cih)\b/g, '$1hich'); txt.value=txt.value.replace(/\b(W|w)holely\b/g, '$1holly'); txt.value=txt.value.replace(/\b[Ww]ikipeida\b/g, 'Wikipedia'); txt.value=txt.value.replace(/\b(W|w)iull\b/g, '$1ill'); txt.value=txt.value.replace(/\b(W|w)iththe/g, '$1ith the'); txt.value=txt.value.replace(/\b(W|w)(itht|tit?h)\b/g, '$1ith'); txt.value=txt.value.replace(/\b(W|w)ithdrawl(s?)\b/g, '$1ithdrawal$2'); txt.value=txt.value.replace(/\b(W|w)ith([oe])ld(s?|ing)\b/g, '$1ithh$2ld$3'); txt.value=txt.value.replace(/\b(W|w)ithing\b/g, '$1ithin'); txt.value=txt.value.replace(/\b(W|w|[Uu]nw)rok(ed|ing|abl[ey]|ability|m[ae]n(|ship|like)|ingm[ae]n|bench|fare|(|er|shop|room|out|(sp|pl)ace|table|ho[ru]se|book|boat|load|a?day|flow|folk|up|week|aholic)s?)\b/g, '$1ork$2'); txt.value=txt.value.replace(/\b(W|w)ord?lwide\b/g, '$1orldwide'); txt.value=txt.value.replace(/\b((T|t|[Uu]nt)rustw|W|w)orthyness\b/g, '$1orthiness'); txt.value=txt.value.replace(/\b(W|w)orthwil(e|eness)\b/g, '$1orthwhil$2'); txt.value=txt.value.replace(/\b(W|w)(?:irt?|rit)t(es?|ing|ten)\b/g, '$1rit$2'); txt.value=txt.value.replace(/\b(W|w)riten\b/g, '$1ritten'); txt.value=txt.value.replace(/\b(W|w)roet\b/g, '$1rote');

//Y

txt.value=txt.value.replace(/\b(Y|y)atch\b/g, '$1acht'); txt.value=txt.value.replace(/\b(Y|y)era\b/g, '$1ear'); txt.value=txt.value.replace(/\b(Y|y)(aers|easr|ersa)\b/g, '$1ears'); txt.value=txt.value.replace(/\b(Y|y)(tou|uo)\b/g, '$1ou');

//Z

txt.value=txt.value.replace(/\b(Z|z)ee+(bras?)\b/g, '$1e$2');

//Abbreviations of SI units

txt.value=txt.value.replace(/\b([nµkMT])f\b/g, '$1F'); txt.value=txt.value.replace(/\bK(g|m)\b/g, 'k$1'); txt.value=txt.value.replace(/\bg[hH][zZ]\b/g, 'GHz'); txt.value=txt.value.replace(/\b([µmkMGT]|[-0-9]+|\s)h[zZ]\b/g, '$1Hz'); txt.value=txt.value.replace(/\bK[hH][zZ]\b/g, 'kHz'); txt.value=txt.value.replace(/\b([µmMGT])j\b/g, '$1J'); txt.value=txt.value.replace(/\b([-0-9]|\s)kj\b/g, '$1kJ'); txt.value=txt.value.replace(/\bg[pP][aA]\b/g, 'GPa'); txt.value=txt.value.replace(/\bK(?:[pP]a|pA)\b/g, 'kPa'); txt.value=txt.value.replace(/\b([µkMGT])p[aA]\b/g, '$1Pa'); txt.value=txt.value.replace(/\bt[pP][aA]\b/g, 'TPa'); txt.value=txt.value.replace(/\b([µmMGT])w\b/g, '$1W'); txt.value=txt.value.replace(/\b([-0-9]|\s)kw\b/g, '$1kW'); txt.value=txt.value.replace(/\b([µmkMGT])w[bB]\b/g, '$1Wb');

//Capitalisation

//Cultures, languages, and ethnic groups //See also "Geographical proper names"

txt.value=txt.value.replace(/\baf?fgh?ani(s?)\b/g, 'Afghani$1'); txt.value=txt.value.replace(/\b[Aa]landish\b/g, 'Ålandish'); txt.value=txt.value.replace(/\bangloph(il|ob)(e?s?|i[ac])\b/g, 'Angloph$1$2'); txt.value=txt.value.replace(/\balgon(qu|k)(ia?ns?)\b/g, 'Algon$1$2'); txt.value=txt.value.replace(/\bapache(s?)\b/g, 'Apache$1'); txt.value=txt.value.replace(/\bara(b(|i(an|st))s?|wak(|an)s?|ucan(|ian)s?|maic|ma?eans?|pahoe?s?|gonese)\b/g, 'Ara$1'); txt.value=txt.value.replace(/\batha(b|p)as(c|k)an(s?)\b/g, 'Atha$1as$2an$3'); txt.value=txt.value.replace(/\bazer(is?)\b/g, 'Azer$1'); txt.value=txt.value.replace(/\bbret?to(ns?)\b/g, 'Breto$1'); txt.value=txt.value.replace(/\bcatal?la(ns?)\b/g, 'Catala$1'); txt.value=txt.value.replace(/\bcher?roke?e(s?)\b/g, 'Cherokee$1'); txt.value=txt.value.replace(/\b(C|c)hristain(s?|ity)\b/g, 'Christian$2'); txt.value=txt.value.replace(/\bcyril?li(cs?)\b/g, 'Cyrilli$1'); txt.value=txt.value.replace(/\bch?zech(s?)\b/g, 'Czech$1'); txt.value=txt.value.replace(/\bdakota(n?s?)\b/g, 'Dakota$1'); txt.value=txt.value.replace(/\bdutch(|m[ae]n)\b/g, 'Dutch$1'); txt.value=txt.value.replace(/\bfrancoph(il|ob)(e?s?|i[ac])\b/g, 'Francoph$1$2'); txt.value=txt.value.replace(/\bguj[au]rat(|is?)\b/g, 'Gujarat$1'); txt.value=txt.value.replace(/\bgurkha(s?)\b/g, 'Gurkha$1'); txt.value=txt.value.replace(/\bhebr(ews?|aic|ais[tm])\b/g, 'Hebr$1'); txt.value=txt.value.replace(/\bhel?l[ae]n(ic|istic)\b/g, 'Hellen$1'); txt.value=txt.value.replace(/\bhind([iu]s?|ustan(|is?))\b/g, 'Hind$1'); txt.value=txt.value.replace(/\birish(|m[ae]n)\b/g, 'Irish$1'); txt.value=txt.value.replace(/\bje(ws?|wish)\b/g, 'Je$1'); txt.value=txt.value.replace(/\blatin(|[ao]s?|ate|is[mt]s?|i[sz](e[sd]?|ing))\b/g, 'Latin$1'); txt.value=txt.value.replace(/\bnava([hj]os?)\b/g, 'Nava$1'); txt.value=txt.value.replace(/\bnor(se|sem[ae]n|dic|mans?)\b/g, 'Nor$1'); txt.value=txt.value.replace(/\bnorwegia(ns?)\b/g, 'Norwegia$1'); txt.value=txt.value.replace(/\b(P|p)ortugee?u?se\b/g, '$1ortuguese'); txt.value=txt.value.replace(/\bsanskrit\b/g, 'Sanskrit'); txt.value=txt.value.replace(/\bsiou(x|an)\b/g, 'Siou$1'); txt.value=txt.value.replace(/\bspani(sh|ards?)\b/g, 'Spani$1'); txt.value=txt.value.replace(/\bswiss\b/g, 'Swiss'); txt.value=txt.value.replace(/\btamil\b/g, 'Tamil'); txt.value=txt.value.replace(/\burdu\b/g, 'Urdu'); txt.value=txt.value.replace(/\bviking\b/g, 'Viking');

//Companies & Institutions

txt.value=txt.value.replace(/\bharvard\b/g, 'Harvard'); txt.value=txt.value.replace(/\b[Ii]bm\b/g, 'IBM'); txt.value=txt.value.replace(/\b(?:micros|[Mm]icro[S\$])oft\b/g, 'Microsoft'); txt.value=txt.value.replace(/\b(?:Tiv|ti[Vv])o(s?)\b/g, 'TiVo$1');

//Continents & subcontinents

txt.value=txt.value.replace(/ \bafric(an?s?)\b/g, ' Afric$1'); txt.value=txt.value.replace(/ \bameric(an?s?)\b/g, ' Americ$1'); txt.value=txt.value.replace(/ \bnorth\s*[Aa](mericans?)\b/g, ' North A$1'); txt.value=txt.value.replace(/ \bsouth\s*[Aa](mericans?)\b/g, ' South A$1'); txt.value=txt.value.replace(/ \bcentral [Aa]meric(ans?)\b/g, ' Central Americ$1'); txt.value=txt.value.replace(/ \ba(|nta)rc?ti(ca?)\b/g, ' A$1rcti$2'); txt.value=txt.value.replace(/ \b(A|Anta)rctic circle\b/g, ' $1rctic Circle'); txt.value=txt.value.replace(/ \basia(|ns?|tic)\b/g, ' Asia$1'); txt.value=txt.value.replace(/ \baustral((|as)ian?s?)\b/g, ' Austral$1'); txt.value=txt.value.replace(/ \beurope(|ans?)\b/g, ' Europe$1'); txt.value=txt.value.replace(/ \bpolynes(ian?s?)\b/g, ' Polynes$1');

//Geographical proper names

//Geographical names with capital letters - comment on talk page txt.value=txt.value.replace(/ \babkhazia\b/g, ' Abkhazia'); txt.value=txt.value.replace(/ \bafghanistan\b/g, ' Afghanistan'); txt.value=txt.value.replace(/ \bakrotiri\b/g, ' Akrotiri'); txt.value=txt.value.replace(/ \båland\b/g, ' Åland'); txt.value=txt.value.replace(/ \balbani(a|ans?)\b/g, ' Albani$1'); txt.value=txt.value.replace(/ \balgeri(e|an?s?)\b/g, ' Algeri$1'); txt.value=txt.value.replace(/ \bandorr?(a|ans?)\b/g, ' Andorr$1'); txt.value=txt.value.replace(/ \bangoli?(an?s?)\b/g, ' Angol$1'); txt.value=txt.value.replace(/ \banguil?l(an?s?)\b/g, ' Anguill$1'); txt.value=txt.value.replace(/ \bantigu(an?s?)\b/g, ' Antigu$1'); txt.value=txt.value.replace(/ \bantilles\b/g, ' Antilles'); txt.value=txt.value.replace(/ \bargentin(a|e(|an)s?)\b/g, ' Argentin$1'); txt.value=txt.value.replace(/ \barmeni(a|ans?)\b/g, ' Armeni$1'); txt.value=txt.value.replace(/ \barub(an?s?)\b/g, ' Arub$1'); txt.value=txt.value.replace(/ \bascension island\b/g, ' Ascension Island'); txt.value=txt.value.replace(/ \baustronesi(an?s?)\b/g, ' Austronesi$1'); txt.value=txt.value.replace(/ \b[Aa]ustr(?:la?i|a?ili?|iali?)(a|ans?)\b/g, ' Australi$1'); txt.value=txt.value.replace(/ \baustri(an?s?)\b/g, ' Austri$1'); txt.value=txt.value.replace(/ \bazerbaija(n|nis?)\b/g, ' Azerbaija$1'); txt.value=txt.value.replace(/ \bbab[yi]lon(|ian?s?)\b/g, ' Babylon$1'); txt.value=txt.value.replace(/ \bbahamm?(as?|i?ans?)\b/g, ' Baham$1'); txt.value=txt.value.replace(/ \bthe\s*bahamas\b/g, ' The Bahamas'); txt.value=txt.value.replace(/ \bbahrai(n|nians?)\b/g, ' Bahrai$1'); txt.value=txt.value.replace(/ \bbangl[ae]des(hi?)\b/g, ' Banglades$1'); txt.value=txt.value.replace(/ \bbarbad(os|ians?)\b/g, ' Barbad$1'); txt.value=txt.value.replace(/ \bb(arb|erm)ud(i?an?s?)\b/g, ' B$1ud$2'); txt.value=txt.value.replace(/ \bbasutoland\b/g, ' Basutoland'); txt.value=txt.value.replace(/ \bbelaru(s|ss?ians?)\b/g, ' Belaru$1'); txt.value=txt.value.replace(/ \bbelgi(um|ans?)\b/g, ' Belgi$1'); txt.value=txt.value.replace(/ \bbeliz(e|ians?)\b/g, ' Beliz$1'); txt.value=txt.value.replace(/ \bbeni(n|nians?)\b/g, ' Beni$1'); txt.value=txt.value.replace(/ \bbhuta(n|nians?)\b/g, ' Bhuta$1'); txt.value=txt.value.replace(/ \bbo(liv|sn)i(a|ans?)\b/g, ' Bo$1i$2'); txt.value=txt.value.replace(/ \bbotswana(n?s?)\b/g, ' Botswana$1'); txt.value=txt.value.replace(/ \bbrazil?(l|lians?)\b/g, ' Brazi$1'); txt.value=txt.value.replace(/ \bbrunei\b/g, ' Brunei'); txt.value=txt.value.replace(/ \bbulgar(|ian?s?)\b/g, ' Bulgar$1'); txt.value=txt.value.replace(/ \bburkina\s*faso\b/g, ' Burkina Faso'); txt.value=txt.value.replace(/ \bburm(a|ese)\b/g, ' Burm$1'); txt.value=txt.value.replace(/ \bburundi(|ans?)\b/g, ' Burundi$1'); txt.value=txt.value.replace(/ \bbyzant?ti(nes?|um)\b/g, ' Byzanti$1'); txt.value=txt.value.replace(/ \bcambodi(a|ans?)\b/g, ' Cambodi$1'); txt.value=txt.value.replace(/ \bcameroon\b/g, ' Cameroon'); txt.value=txt.value.replace(/ \bcamero?onia(ns?)\b/g, ' Cameroonia$1'); txt.value=txt.value.replace(/ \bcanad(a|i[ae]n[as]?)\b/g, ' Canad$1'); txt.value=txt.value.replace(/ \bcape\s*verde\b/g, ' Cape Verde'); txt.value=txt.value.replace(/ \bcayman islands\b/g, ' Cayman Islands'); txt.value=txt.value.replace(/ \bcentral\s+african\s+republic\b/g, ' Central African Republic'); txt.value=txt.value.replace(/ \bchadia(ns?)\b/g, ' Chadia$1'); txt.value=txt.value.replace(/ \bpeople\'s\s+republic\s+of\s+china\b/g, ' People\'s Republic of China'); txt.value=txt.value.replace(/ \bchil?lea(ns?)\b/g, ' Chilea$1'); txt.value=txt.value.replace(/ \bchin?nes?se\b/g, ' Chinese'); txt.value=txt.value.replace(/ \brepublic\s+of\s+china\b/g, ' Republic of China'); txt.value=txt.value.replace(/ \b[Cc]hristmas\s+island\b/g, ' Christmas Island'); txt.value=txt.value.replace(/ \bcol(o|u)mbia(|ns?)\b/g, ' Col$1mbia$2'); txt.value=txt.value.replace(/ \bcomoros\b/g, ' Comoros'); txt.value=txt.value.replace(/ \bcong(o|ans?)\b/g, ' Cong$1'); txt.value=txt.value.replace(/ \bdemocratic\s+republic\s+of\s+[Cc]ongo\b/g, ' Democratic Republic of Congo'); txt.value=txt.value.replace(/ \brepublic\s+of\s+[Cc]ongo\b/g, ' Republic of Congo'); txt.value=txt.value.replace(/ \bcook\s*islands\b/g, ' Cook Islands'); txt.value=txt.value.replace(/ \bcorsica(|ns?)\b/g, ' Corsica$1'); txt.value=txt.value.replace(/ \bcosta\s*rica(|ns?)\b/g, ' Costa Rica$1'); txt.value=txt.value.replace(/ \bc[oô]te\s+d\'[Ii]voire\b/g, ' Côte d\'Ivoire'); txt.value=txt.value.replace(/ \bcret(e|ans?)\b/g, ' Cret$1'); txt.value=txt.value.replace(/ \bcroat(s?|ia|ians?)\b/g, ' Croat$1'); txt.value=txt.value.replace(/ \bcuba(|ns?)(?!\s+prime)\b/g, ' Cuba$1'); txt.value=txt.value.replace(/ \bc[yi]pr(us|iots?)\b/g, ' Cypr$1'); txt.value=txt.value.replace(/ \bczechoslovak(s?|ian?s?)\b/g, ' Czechoslovak$1'); txt.value=txt.value.replace(/ \bczec[hk]\s*[Rr]epublic\b/g, ' Czech Republic'); txt.value=txt.value.replace(/ \bdahomey\b/g, ' Dahomey'); txt.value=txt.value.replace(/ \bdenmark\b/g, ' Denmark'); txt.value=txt.value.replace(/ \bdan?nish\b/g, ' Danish'); txt.value=txt.value.replace(/ \bdhekeli(a|ans?)\b/g, ' Dhekeli$1'); txt.value=txt.value.replace(/ \bdjibouti\b/g, ' Djibouti'); txt.value=txt.value.replace(/ \bdomin+ici?(a|ans?)\b/g, ' Dominic$1'); txt.value=txt.value.replace(/ \bdominican [rR]epublic\b/g, ' Dominican Republic'); txt.value=txt.value.replace(/ \beast\s*timor\b/g, ' East Timor'); txt.value=txt.value.replace(/ \becua?d?dor(|ians?)\b/g, ' Ecuador$1'); txt.value=txt.value.replace(/ \beg[yi]pt(|ians?)\b/g, ' Egypt$1'); txt.value=txt.value.replace(/ \bel\s*salvado(r|rians?)\b/g, ' El Salvado$1'); txt.value=txt.value.replace(/ \bequatorial\s*[Gg]uinea\b/g, ' Equatorial Guinea'); txt.value=txt.value.replace(/ \beritrea(|ns?)\b/g, ' Eritrea$1'); txt.value=txt.value.replace(/ \bestonia(|ns?)\b/g, ' Estonia$1'); txt.value=txt.value.replace(/ \beth[ie]opia(|ns?)\b/g, ' Ethiopia$1'); txt.value=txt.value.replace(/ \bfau?lkland(s?)\b/g, ' Falkland$1'); txt.value=txt.value.replace(/ \b[Ff]au?lkland\s*islands\b/g, ' Falkland Islands'); txt.value=txt.value.replace(/ \bfaroe\s*islands\b/g, ' Faroe Islands'); txt.value=txt.value.replace(/ \bfiji(|ans?)\b/g, ' Fiji$1'); txt.value=txt.value.replace(/ \bfil?lipino(s?)\b/g, ' Filipino$1'); txt.value=txt.value.replace(/ \bfinnish\b/g, ' Finnish'); txt.value=txt.value.replace(/ \bfinland(|ia)\b/g, ' Finland$1'); txt.value=txt.value.replace(/ \bfrance\b/g, ' France'); txt.value=txt.value.replace(/ \bfrench\s*[Pp]olynesia\b/g, ' French Polynesia'); txt.value=txt.value.replace(/ \bgabon\b/g, ' Gabon'); txt.value=txt.value.replace(/ \bgambia(|ns?)\b/g, ' Gambia$1'); txt.value=txt.value.replace(/ \bthe\s*gambia\b/g, ' The Gambia'); txt.value=txt.value.replace(/ \bgeorgia(|ns?)\b/g, ' Georgia$1'); txt.value=txt.value.replace(/ \bgerman(s?|y|ic|is[mt]s?|i[sz]e[sdr]?)\b/g, ' German$1'); txt.value=txt.value.replace(/ \bghan(a(n?|ian)s?)\b/g, ' Ghan$1'); txt.value=txt.value.replace(/ \bgibraltar(|ians?)\b/g, ' Gibraltar$1'); txt.value=txt.value.replace(/ \bgre(ece|eks?|cian)\b/g, ' Gre$1'); txt.value=txt.value.replace(/ \bgreenland(|ic)\b/g, ' Greenland$1'); txt.value=txt.value.replace(/ \bgrenad(an?s?|ines)\b/g, ' Grenad$1'); txt.value=txt.value.replace(/ \bguatemala(|ns?)\b/g, ' Guatemala$1'); txt.value=txt.value.replace(/ \bguinea-bissau\b/g, ' Guinea-Bissau'); txt.value=txt.value.replace(/ \bguinea(ns?)\b/g, ' Guinea$1'); txt.value=txt.value.replace(/ \bguyana(|ns?)\b/g, ' Guyana$1'); txt.value=txt.value.replace(/ \bhaiti(|ans?)\b/g, ' Haiti$1'); txt.value=txt.value.replace(/ \bherzegovin(a|ians?)\b/g, ' Herzegovin$1'); txt.value=txt.value.replace(/ \bhondura(n?s?)\b/g, ' Hondura$1'); txt.value=txt.value.replace(/ \bhong\s+kong\b/g, ' Hong Kong'); txt.value=txt.value.replace(/ \bhungar(y|ians?)\b/g, ' Hungar$1'); txt.value=txt.value.replace(/ \biceland(ic|ers?)\b/g, ' Iceland$1'); txt.value=txt.value.replace(/ \bi(c|r)eland\b/g, ' I$1eland'); txt.value=txt.value.replace(/ \bindia(ns?)\b/g, ' India$1'); txt.value=txt.value.replace(/ \bindonesi(a|ans?)\b/g, ' Indonesi$1'); txt.value=txt.value.replace(/ \bira(n|nians?|qi?s?)\b/g, ' Ira$1'); txt.value=txt.value.replace(/ \bislas malvinas\b/g, ' Islas Malvinas'); txt.value=txt.value.replace(/ \bital+(y|ians?)\b/g, ' Ital$1'); txt.value=txt.value.replace(/ \bivory\s*coast\b/g, ' Ivory Coast'); txt.value=txt.value.replace(/ \bjam+ai?c(a|ans?)\b/g, ' Jamaic$1'); txt.value=txt.value.replace(/ \bjapan\b/g, ' Japan'); txt.value=txt.value.replace(/ \bjapan?nes?se\b/g, ' Japanese'); txt.value=txt.value.replace(/ \bjordan(|ians?)\b/g, ' Jordan$1'); txt.value=txt.value.replace(/ \bka[sz]akh?stan\b/g, ' Kazakhstan'); txt.value=txt.value.replace(/ \bka[sz]ak(h?s?)\b/g, ' Kazak$1'); txt.value=txt.value.replace(/ \bkorea(ns?)\b/g, ' Korea$1'); txt.value=txt.value.replace(/ \bkos?sov(o|ans?)\b/g, ' Kosov$1'); txt.value=txt.value.replace(/ \bkenya(|ns?)\b/g, ' Kenya$1'); txt.value=txt.value.replace(/ \bkir(gh?)iz(|ia|stan)\b/g, ' Kir$1iz$2'); txt.value=txt.value.replace(/ \bkiribati(|ans?)\b/g, ' Kiribati$1'); txt.value=txt.value.replace(/ \bdemocratic people\'s republic of [kK]orea\b/gi, ' Democratic People\'s Republic of Korea'); txt.value=txt.value.replace(/ \brepublic of [kK]orea\b/g, ' Republic of Korea'); txt.value=txt.value.replace(/ \bkosovo\b/g, ' Kosovo'); txt.value=txt.value.replace(/ \bkuwait(|is?)\b/g, ' Kuwait$1'); txt.value=txt.value.replace(/ \bkyrgyzstan(|ians?)\b/g, ' Kyrgyzstan$1'); txt.value=txt.value.replace(/ \blao(s|tians?)\b/g, ' Lao$1'); txt.value=txt.value.replace(/ \blatvia(|ns?)\b/g, ' Latvia$1'); txt.value=txt.value.replace(/ \bleban(on|ese)\b/g, ' Leban$1'); txt.value=txt.value.replace(/ \bleb[ae]n?nes?se\b/g, ' Lebanese'); txt.value=txt.value.replace(/ \blesoth(o|ans?)\b/g, ' Lesoth$1'); txt.value=txt.value.replace(/ \bliberia(|ns?)\b/g, ' Liberia$1'); txt.value=txt.value.replace(/ \bliby?i?a(|n?s)\b/g, ' Libya$1'); txt.value=txt.value.replace(/ \bliechtenstein\b/g, ' Liechtenstein'); txt.value=txt.value.replace(/ \blithuani(a|ans?)\b/g, ' Lithuani$1'); txt.value=txt.value.replace(/ \bluxembourg\b/g, ' Luxembourg'); txt.value=txt.value.replace(/ \bmacao\b/g, ' Macao'); txt.value=txt.value.replace(/ \bmac[ae]don(|ian?s?)\b/g, ' Macedon$1'); txt.value=txt.value.replace(/ \bmad[ae]gasca(r|ns?)\b/g, ' Madagasca$1'); txt.value=txt.value.replace(/ \bmal?lawi(|ans?)\b/g, ' Malawi$1'); txt.value=txt.value.replace(/ \bmal+aysi(a|ans?)\b/g, ' Malaysi$1'); txt.value=txt.value.replace(/ \bmald[ei]v(es|ians?)\b/g, ' Maldiv$1'); txt.value=txt.value.replace(/ \bmali\b/g, ' Mali'); txt.value=txt.value.replace(/ \bmal+t(a|ese)\b/g, ' Malt$1'); txt.value=txt.value.replace(/ \bmarshall islands\b/g, ' Marshall Islands'); txt.value=txt.value.replace(/ \bmauritani(a|ans?)\b/g, ' Mauritani$1'); txt.value=txt.value.replace(/ \bmauriti(us|ans?)\b/g, ' Mauriti$1'); txt.value=txt.value.replace(/ \bmayotte\b/g, ' Mayotte'); txt.value=txt.value.replace(/ \bmexic(o|ans?)\b/g, ' Mexic$1'); txt.value=txt.value.replace(/ \bmicronesi(a|ans?)\b/g, ' Micronesi$1'); txt.value=txt.value.replace(/ \bmoldov(a|ans?)\b/g, ' Moldov$1'); txt.value=txt.value.replace(/ \bmonaco\b/g, ' Monaco'); txt.value=txt.value.replace(/ \bmontenegr(o|ans?)\b/g, ' Montenegr$1'); txt.value=txt.value.replace(/ \bmongol+(s?|ia|ians?)\b/g, ' Mongol$1'); txt.value=txt.value.replace(/ \bmontserr?a(ti?)\b/g, ' Montserra$1'); txt.value=txt.value.replace(/ \bmor+oc+(o|ans?)\b/g, ' Morocc$1'); txt.value=txt.value.replace(/ \bmozambique\b/g, ' Mozambique'); txt.value=txt.value.replace(/ \bmyanmar\b/g, ' Myanmar'); txt.value=txt.value.replace(/ \bnagorno-karabakh\b/g, ' Nagorno-Karabakh'); txt.value=txt.value.replace(/ \bnamibi(a|ans?)\b/g, ' Namibi$1'); txt.value=txt.value.replace(/ \bnauru\b/g, ' Nauru'); txt.value=txt.value.replace(/ \bnepal\b/g, ' Nepal'); txt.value=txt.value.replace(/ \bnep[ae]l?les?se\b/g, ' Nepalese'); txt.value=txt.value.replace(/ \bnetherlands\b/g, ' Netherlands'); txt.value=txt.value.replace(/ \bnew caledonia(|ns?)\b/g, ' New Caledonia$1'); txt.value=txt.value.replace(/ \bnew zealand(|ers?)\b/g, ' New Zealand$1'); txt.value=txt.value.replace(/ \bnicaragua(|ns?)\b/g, ' Nicaragua$1'); txt.value=txt.value.replace(/ \bniger(ian?s?)\b/g, ' Niger$1'); txt.value=txt.value.replace(/ \bniue\b/g, ' Niue'); txt.value=txt.value.replace(/ \bnorth kore(a|ans?)\b/g, ' North Kore$1'); txt.value=txt.value.replace(/ \bnorfolk island\b/g, ' Norfolk Island'); txt.value=txt.value.replace(/ \bnorthern cyprus\b/g, ' Northern Cyprus'); txt.value=txt.value.replace(/ \bnorthern mariana islands\b/g, ' Northern Mariana Islands'); txt.value=txt.value.replace(/ \bnorway\b/g, ' Norway'); txt.value=txt.value.replace(/ \boma(ni?s?)\b/g, ' Oma$1'); txt.value=txt.value.replace(/ \bpakista(ni?s?)\b/g, ' Pakista$1'); txt.value=txt.value.replace(/ \bpalau\b/g, ' Palau'); txt.value=txt.value.replace(/ \bpalestin(e|ians?)\b/g, ' Palestin$1'); txt.value=txt.value.replace(/ \bpanam+(a|anians?)\b/g, ' Panam$1'); txt.value=txt.value.replace(/ \bpapua new guinea\b/g, ' Papua New Guinea'); txt.value=txt.value.replace(/ \bparaguay\b/g, ' Paraguay'); txt.value=txt.value.replace(/ \bpersia(|ns?)\b/g, ' Persia$1'); txt.value=txt.value.replace(/ \bper(u|uvians?)\b/g, ' Per$1'); txt.value=txt.value.replace(/ \bphil?lip?pino([eo]s?)\b/g, ' Philippin$1'); txt.value=txt.value.replace(/ \bpitcairn islands\b/g, ' Pitcairn Islands'); txt.value=txt.value.replace(/ \bpoland\b/g, ' Poland'); txt.value=txt.value.replace(/ \bportugal\b/g, ' Portugal'); txt.value=txt.value.replace(/ \bportug?ges?se\b/g, ' Portuguese'); txt.value=txt.value.replace(/ \bpridnestrovie\b/g, ' Pridnestrovie'); txt.value=txt.value.replace(/ \bpunjabi\b/g, ' Punjabi'); txt.value=txt.value.replace(/ \bqu?ata(ri?)\b/g, ' Qata$1'); txt.value=txt.value.replace(/ \bromani(a|ans?)\b/g, ' Romani$1'); txt.value=txt.value.replace(/ \bruss?i(an?s?)\b/g, ' Russi$1'); txt.value=txt.value.replace(/ \brwand(a|ans?)\b/g, ' Rwand$1'); txt.value=txt.value.replace(/ \bsaint helena\b/g, ' Saint Helena'); txt.value=txt.value.replace(/ \bsaint kitts and nevis\b/g, ' Saint Kitts and Nevis'); txt.value=txt.value.replace(/ \bsaint lucia\b/g, ' Saint Lucia'); txt.value=txt.value.replace(/ \bsaint pierre and miquelon\b/g, ' Saint Pierre and Miquelon'); txt.value=txt.value.replace(/ \bsaint vincent and the grenadines\b/g, ' Saint Vincent and the Grenadines'); txt.value=txt.value.replace(/ \bsamo(a|ans?)\b/g, ' Samo$1'); txt.value=txt.value.replace(/ \bsan marino\b/g, ' San Marino'); txt.value=txt.value.replace(/ \b[Ss]ao [Pp]aulo\b/g, ' São Paulo'); txt.value=txt.value.replace(/ \bsão tomé and príncipe\b/g, ' São Tomé and Príncipe'); txt.value=txt.value.replace(/ \b[Ss]ao [Tt]ome and [Pp]rincipe\b/g, ' São Tomé and Príncipe'); txt.value=txt.value.replace(/ \bsardini(an?s?)\b/g, ' Sardini$1'); txt.value=txt.value.replace(/ \bsaudi [Aa]rabia(|ns?)\b/g, ' Saudi Arabia$1'); txt.value=txt.value.replace(/ \bscand[ai]navia(n?)\b/g, ' Scandinavia$1'); txt.value=txt.value.replace(/ \bsenegal\b/g, ' Senegal'); txt.value=txt.value.replace(/ \bsen[ae]gal?l[ae]s?se\b/g, ' Senegalese'); txt.value=txt.value.replace(/ \bserbi(a|ans?)\b/g, ' Serbi$1'); txt.value=txt.value.replace(/ \bSevres\b/g, ' Sèvres'); txt.value=txt.value.replace(/ \bseychelles\b/g, ' Seychelles'); txt.value=txt.value.replace(/ \bsierra leon(e|ese)\b/g, ' Sierra Leone'); txt.value=txt.value.replace(/ \bsier?ra leones?se\b/g, ' Sierra Leonese'); txt.value=txt.value.replace(/ \bsingapore\b/g, ' Singapore'); txt.value=txt.value.replace(/ \bsingap?poria(ns?)\b/g, ' Singaporea$1'); txt.value=txt.value.replace(/ \bslov(ak|en)i(a|ans?)\b/g, ' Slov$1i$2'); txt.value=txt.value.replace(/ \bsolomon islands\b/g, ' Solomon Islands'); txt.value=txt.value.replace(/ \bsomali(a?|s|ans?|land)\b/g, ' Somali$1'); txt.value=txt.value.replace(/ \bsouth [Aa]fric(a|ans?)\b/g, ' South Afric$1'); txt.value=txt.value.replace(/ \bsouth [Kk]ore(a|ans?)\b/g, ' South Kore$1'); txt.value=txt.value.replace(/ \bsouth ossetia\b/g, ' South Ossetia'); txt.value=txt.value.replace(/ \bspain\b/g, ' Spain'); txt.value=txt.value.replace(/ \bsri lank(a|ans?)\b/g, ' Sri Lank$1'); txt.value=txt.value.replace(/ \bsudan\b/g, ' Sudan'); txt.value=txt.value.replace(/ \bsudan?nes?se\b/g, ' Sudanese'); txt.value=txt.value.replace(/ \bsuriname\b/g, ' Suriname'); txt.value=txt.value.replace(/ \bsvalbard\b/g, ' Svalbard'); txt.value=txt.value.replace(/ \bswaziland\b/g, ' Swaziland'); txt.value=txt.value.replace(/ \bsweden\b/g, ' Sweden'); txt.value=txt.value.replace(/ \bswedish\b/g, ' Swedish'); txt.value=txt.value.replace(/ \bswitzerland\b/g, ' Switzerland'); txt.value=txt.value.replace(/ \bsyri(a|ans?)\b/g, ' Syri$1'); txt.value=txt.value.replace(/ \btaiwan(|ese)\b/g, ' Taiwan$1'); txt.value=txt.value.replace(/ \btajikistan(i?s?)\b/g, ' Tajikistan$1'); txt.value=txt.value.replace(/ \btanzani(a|ans?)\b/g, ' Tanzani$1'); txt.value=txt.value.replace(/ \bthailand\b/g, ' Thailand'); txt.value=txt.value.replace(/ \btimor-leste\b/g, ' Timor-Leste'); txt.value=txt.value.replace(/ \btimor(|ians?)\b/g, ' Timor$1'); txt.value=txt.value.replace(/ \bto(ba|)g(o|ans?)\b/g, ' To$1g$2'); txt.value=txt.value.replace(/ \btonga(|ns?)\b/g, ' Tonga$1'); txt.value=txt.value.replace(/ \btokelau\b/g, ' Tokelau'); txt.value=txt.value.replace(/ \btransnistria(|ns?)\b/g, ' Transnistria$1'); txt.value=txt.value.replace(/ \btrin?nidad(|ians?)\b/g, ' Trinidad$1'); txt.value=txt.value.replace(/ \btristan da cunha\b/g, ' Tristan da Cunha'); txt.value=txt.value.replace(/ \btunisi(a|ans?)\b/g, ' Tunisi$1'); txt.value=txt.value.replace(/ \bturkis(h|m)\b/g, ' Turkis$1'); txt.value=txt.value.replace(/ \btur([ck]o?|)(|m[ea]n)(s?|ic|[ei]stan)\b/g, ' Tur$1$2$3'); txt.value=txt.value.replace(/ \bturks\s+and\s+caicos\s+islands\b/g, ' Turks and Caicos Islands'); txt.value=txt.value.replace(/ \btuvalu(|vians?)\b/g, ' Tuvalu$1'); txt.value=txt.value.replace(/ \buganda(|ns?)\b/g, ' Uganda$1'); txt.value=txt.value.replace(/ \bukrain(e|ians?)\b/g, ' Ukrain$1'); txt.value=txt.value.replace(/ \bunited\s+arab\s+emirates\b/g, ' United Arab Emirates'); txt.value=txt.value.replace(/ \burugua[yi](|ans?)\b/g, ' Uruguay$1'); txt.value=txt.value.replace(/ \buzbekistan\b/g, ' Uzbekistan'); txt.value=txt.value.replace(/ \bu[sz]be[ck]istani(s?)\b/g, ' Uzbekistani$1'); txt.value=txt.value.replace(/ \bvanuatu\b/g, ' Vanuatu'); txt.value=txt.value.replace(/ \bvatican\s+city\b/g, ' Vatican City'); txt.value=txt.value.replace(/ \bvenez+uel+(a|ans?)\b/g, ' Venezuel$1'); txt.value=txt.value.replace(/ \bviet\s*[Nn]am\b/g, ' Vietnam'); txt.value=txt.value.replace(/ \bvietnames?se\b/g, ' Vietnamese'); txt.value=txt.value.replace(/ \bvirgin islands\b/g, ' Virgin Islands'); txt.value=txt.value.replace(/ \bwallis and futuna\b/g, ' Wallis and Futuna'); txt.value=txt.value.replace(/ \bwestern sahara\b/g, ' Western Sahara'); txt.value=txt.value.replace(/ \b[Ww][uü]rt(?:t?embu|embe)rg\b/g, ' Württemberg'); txt.value=txt.value.replace(/ \byem?men(|is?|ites?)\b/g, ' Yemen$1'); txt.value=txt.value.replace(/ \byugoslavi(an?s?)\b/g, ' Yugoslavi$1'); txt.value=txt.value.replace(/ \bzambi(an?s?)\b/g, ' Zambi$1'); txt.value=txt.value.replace(/ \bzimbabw[ei](|ans?)\b/g, ' Zimbabwe$1');

//Canada

txt.value=txt.value.replace(/ \balbert(a|ans?)\b/g, ' Albert$1'); txt.value=txt.value.replace(/ \bklondike\b/g, ' Klondike'); txt.value=txt.value.replace(/ \blabrador(|[ie]ans?)\b/g, ' Labrador$1'); txt.value=txt.value.replace(/ \bmanitoba(|ns?)\b/g, ' Manitoba$1'); txt.value=txt.value.replace(/ \bmontr(e|é)al(|ers?)\b/g, ' Montr$1al$2'); txt.value=txt.value.replace(/ \bnewfoundland(|ers?)\b/g, ' Newfoundland$1'); txt.value=txt.value.replace(/ \bontari(o|ans?)\b/g, ' Ontari$1'); txt.value=txt.value.replace(/ \bqu(e|é)bec(|ois|k?ers?)\b/g, ' Qu$1bec$2'); txt.value=txt.value.replace(/ \bsaskat(chewa|oo)n\b/g, ' Saskat$1n'); txt.value=txt.value.replace(/ \btoront(o|onians?)\b/g, ' Toront$1'); txt.value=txt.value.replace(/ \b[Vv]ancove(r|rites?)\b/g, ' Vancouve$1'); txt.value=txt.value.replace(/ \bvancouve(r|rites?)\b/g, ' Vancouve$1'); txt.value=txt.value.replace(/ \bwinn?[iea]peg\b/g, ' Winnipeg'); txt.value=txt.value.replace(/ \byukon\b/g, ' Yukon'); txt.value=txt.value.replace(/ \bYukon\s*territory\b/g, ' Yukon Territory');

//United Kingdom

txt.value=txt.value.replace(/ \bbr(?:it?|ri|)t(ain|ons?|ish(|ers?|isms?)|icisms?)\b/g, ' Brit$1'); txt.value=txt.value.replace(/ \bgreat [Bb]ritain\b/g, ' Great Britain'); txt.value=txt.value.replace(/ \bengland\b/g, ' England'); txt.value=txt.value.replace(/ \benglish(wo|)(|m[ae]n)\b/g, ' English$1$2'); txt.value=txt.value.replace(/ \bisle\s+of\s+man\b/g, ' Isle of Man'); txt.value=txt.value.replace(/ \bmanx(|m[ae]n|wom[ae]n)\b/g, ' Manx$1'); txt.value=txt.value.replace(/ \bscotland\b/g, ' Scotland'); txt.value=txt.value.replace(/ \bscot?(sm[ae]n|tish)\b/g, ' Scot$1'); txt.value=txt.value.replace(/ \bwelsh\b/g, ' Welsh');

//United States

txt.value=txt.value.replace(/ \bala(bam|sk)(a|i?ans?)\b/g, 'Ala$1$2'); txt.value=txt.value.replace(/ \barizon(a|i?ans?)\b/g, ' Arizon$1'); txt.value=txt.value.replace(/ \barkans(an?s?)\b/g, ' Arkans$1'); txt.value=txt.value.replace(/ \bcaliforni(an?s?)\b/g, ' Californi$1'); txt.value=txt.value.replace(/ \bcarolin(an?s?)\b/g, ' Carolin$1'); txt.value=txt.value.replace(/ \bchicago(|ans?)\b/g, ' Chicago$1'); txt.value=txt.value.replace(/ \bcolorad(o|ans?)\b/g, ' Colorad$1'); txt.value=txt.value.replace(/ \bconnecticut\b/g, ' Connecticut'); txt.value=txt.value.replace(/ \bdelawar(es?|ians?)\b/g, ' Delawar$1'); txt.value=txt.value.replace(/ \bflorid(a|ians?)\b/g, ' Florid$1'); txt.value=txt.value.replace(/ \bguam\b/g, ' Guam'); txt.value=txt.value.replace(/ \bhawaii(|ans?)\b/g, ' Hawaii$1'); txt.value=txt.value.replace(/ \bidaho(|ans?)\b/g, ' Idah$1'); txt.value=txt.value.replace(/ \bindian(a|i?ans?|apolis|town)\b/g, ' Indian$1'); txt.value=txt.value.replace(/ \biow(an?s?)\b/g, ' Iow$1'); txt.value=txt.value.replace(/ \bkans(an?s?)\b/g, ' Kans$1'); txt.value=txt.value.replace(/ \bkentuck(y|ians?)\b/g, ' Kentuck$1'); txt.value=txt.value.replace(/ \b(?:[Ll]os\s*angeles|los\s*[Aa]ngeles)\b/g, ' Los Angeles'); txt.value=txt.value.replace(/ \blouisian(a|ans?)\b/g, ' Louisian$1'); txt.value=txt.value.replace(/ \bmaine\b/g, ' Maine'); //Note: "manhattan" can be lowercase; don't force to uppercase txt.value=txt.value.replace(/ \b(M|m)anhatten\b/g, ' $1anhattan'); txt.value=txt.value.replace(/ \bmarylan(d|ders?)\b/g, ' Marylan$1'); txt.value=txt.value.replace(/ \bmassachusetts\b/g, ' Massachusetts'); txt.value=txt.value.replace(/ \bmichigan(|ders?)\b/g, ' Michigan$1'); txt.value=txt.value.replace(/ \bminnesot(a|ans?)\b/g, ' Minnesot$1'); txt.value=txt.value.replace(/ \bmississippi(|ans?)\b/g, ' Mississippi$1'); txt.value=txt.value.replace(/ \bmontan(a|ans?)\b/g, ' Montan$1'); txt.value=txt.value.replace(/ \bnebrask(a|ans?)\b/g, ' Nebrask$1'); txt.value=txt.value.replace(/ \bnevad(a|i?ans?)\b/g, ' Nevad$1'); txt.value=txt.value.replace(/ \bnew\s*[Jj]ersey(|ites?)\b/g, ' New Jersey$1'); txt.value=txt.value.replace(/ \bnew\s*[Mm]exic(o|ans?)\b/g, ' New Mexic$1'); txt.value=txt.value.replace(/ \bNew\s*[Nn]etherlands\b/g, ' New Netherland'); txt.value=txt.value.replace(/ \bnew\s*[Yy]ork(|ers?)\b/g, ' New York$1'); txt.value=txt.value.replace(/ \bnorth\s*([Cc]arolin|[Dd]akot)a(n?s?)\b/g, ' North $1a$2'); txt.value=txt.value.replace(/ \bohio(|ans?)\b/g, ' Ohio$1'); txt.value=txt.value.replace(/ \boklahoma(|ns?)\b/g, ' Oklahoma$1'); txt.value=txt.value.replace(/ \boregon(|ians?)\b/g, ' Oregon$1'); txt.value=txt.value.replace(/ \bpennsylvania(|ns?)\b/g, ' Pennsylvania$1'); txt.value=txt.value.replace(/ \bportlan(d|ders?)\b/g, ' Portlan$1'); txt.value=txt.value.replace(/ \bpuerto\s+ric(o|ans?)\b/g, ' Puerto Ric$1'); txt.value=txt.value.replace(/ \bsouth\s*([Cc]arolin|[Dd]akot)a(n?s?)\b/g, ' South $1a$2'); txt.value=txt.value.replace(/ \bspringfield\b/g, ' Springfield'); txt.value=txt.value.replace(/ \btennesse(e|ans?)\b/g, ' Tennesse$1'); txt.value=txt.value.replace(/ \btexa(s|ns?)\b/g, ' Texa$1'); txt.value=txt.value.replace(/ \b(T|t)uscon\b/g, ' Tucson'); txt.value=txt.value.replace(/ \bunited\s*states\b/g, ' United States'); txt.value=txt.value.replace(/ \b[Uu]nite[sd][sS]tates\b/g, ' United States'); txt.value=txt.value.replace(/ \butah(|ans?)\b/g, ' Utah$1'); txt.value=txt.value.replace(/ \bvermont(|ers?)\b/g, ' Vermont$1'); txt.value=txt.value.replace(/ \bvirgini(a|ans?)\b/g, ' Virgini$1'); txt.value=txt.value.replace(/ \bwashington(|ians?)\b/g, ' Washington$1'); txt.value=txt.value.replace(/ \bwest\s*[Vv]irginia(|ns?)\b/g, ' West Virginia$1'); txt.value=txt.value.replace(/ \bwyoming\b/g, ' Wyoming');

//Epochs, ages and dynasties

txt.value=txt.value.replace(/\babbassid(e?s?)\b/g, 'Abbassid$1'); txt.value=txt.value.replace(/\b(?:bronze\s+[Aa]g|[Bb]ronze\s+ag)(es?)\b/g, 'Bronze Ag$1'); txt.value=txt.value.replace(/\bcapet(|ians?)\b/g, 'Capet$1'); txt.value=txt.value.replace(/\bcar(ol|lov)ingia(ns?)\b/g, 'Car$1ingia$2'); txt.value=txt.value.replace(/\b(?:[Dd]ark\s+a|dark\s+[Aa])(ges)\b/g, 'Dark A$1'); txt.value=txt.value.replace(/\bedwardia(ns?)\b/g, 'Edwardia$1'); txt.value=txt.value.replace(/\belizabeth(|ans?)\b/g, 'Elizabeth$1'); txt.value=txt.value.replace(/\bfatimi(ds?|ites?|ah?)\b/g, 'Fatim$1'); txt.value=txt.value.replace(/\b(?:iron\s+[Aa]|[Ii]ron\s+a)(ges?)\b/g, 'Iron A$1'); txt.value=txt.value.replace(/\bmerovingia(ns?)\b/g, 'Merovingia$2'); txt.value=txt.value.replace(/\b(?:midd?le\s+[Aa]|[Mm]idd?le\s+a)ges\b/g, 'Middle Ages'); txt.value=txt.value.replace(/\bnapoleonic\b/g, 'Napoleonic'); txt.value=txt.value.replace(/\bnorman(s?|dy)\b/g, 'Norman$1'); txt.value=txt.value.replace(/\bromano(vs?|ffs?)\b/g, 'Romano$1'); txt.value=txt.value.replace(/\bsassani(de?s?|ans?)\b/g, 'Sassani$1'); txt.value=txt.value.replace(/\bsel(juk|euc(ids?|us))\b/g, 'Sel$1'); txt.value=txt.value.replace(/\bstuart(s?)\b/g, 'Stuart$1'); txt.value=txt.value.replace(/\btudor(s?)\b/g, 'Tudor$1'); txt.value=txt.value.replace(/\bvalois\b/g, 'Valois'); txt.value=txt.value.replace(/\bvictoria(n[as]?)\b/g, 'Victoria$1'); txt.value=txt.value.replace(/\bwindsor(s?)\b/g, 'Windsor$1');

//Calendrical proper nouns

//Month name errors txt.value=txt.value.replace(/\b(?:[Jj]anur|janur?|[Jj]aun)ar(y|ies)\b/g, 'Januar$1'); txt.value=txt.value.replace(/\b[Ff]eb(?:ur?[ae]|rur?[ae])ry\b/g, 'February'); txt.value=txt.value.replace(/\b[Ss]epte(?:me|n)be(rs?)\b/g, 'Septembe$1'); txt.value=txt.value.replace(/\b[Nn]ove(?:me|n)be(rs?)\b/g, 'Novembe$1'); txt.value=txt.value.replace(/\b[Dd]ece(?:mem?|n)be(rs?)\b/g, 'Decembe$1'); //Month name capitalisation txt.value=txt.value.replace(/\bfebruary\b/g, 'February'); txt.value=txt.value.replace(/\b([0123]?\d)\s+march\b/g, '$1 March'); txt.value=txt.value.replace(/\bapri(ls?)\b/g, 'Apri$1'); txt.value=txt.value.replace(/\bju(ne|ly)\b/g, 'Ju$1'); txt.value=txt.value.replace(/\b([123]?\d|[123])\s+august\b/g, '$1 August'); txt.value=txt.value.replace(/\baugust\s+(\d{1,4})\b/g, 'August $1'); txt.value=txt.value.replace(/\bseptembe(rs?)\b/g, 'Septembe$1'); txt.value=txt.value.replace(/\boctobe(rs?)\b/g, 'Octobe$1'); txt.value=txt.value.replace(/\bnovembe(rs?)\b/g, 'Novembe$1'); txt.value=txt.value.replace(/\bdecembe(rs?)\b/g, 'Decembe$1'); //Day names errors txt.value=txt.value.replace(/\b[Ww]en(?:d?e?sd?)a(ys?)\b/g, 'Wednesda$1'); txt.value=txt.value.replace(/\b(?:[Tt]hru|thur)sda(ys?)\b/g, 'Thursda$1'); txt.value=txt.value.replace(/\b(?:[Ss]ate|satu)rda(ys?)\b/g, 'Saturda$1'); //Day name capitalisation txt.value=txt.value.replace(/\bsunda(ys?)\b/g, 'Sunda$1'); txt.value=txt.value.replace(/\bmonda(ys?)\b/g, 'Monda$1'); txt.value=txt.value.replace(/\btuesda(ys?)\b/g, 'Tuesda$1'); txt.value=txt.value.replace(/\bwednesda(ys?)\b/g, 'Wednesda$1'); txt.value=txt.value.replace(/\bfrida(ys?)\b/g, 'Frida$1'); //Special days txt.value=txt.value.replace(/\bmich[ae]*lmas+\b/g, 'Michaelmas'); txt.value=txt.value.replace(/\beaster(?!\s+egg)\b/g, 'Easter');

//Miscellaneous proper nouns

txt.value=txt.value.replace(/\b(?:christ|[Cc](?:hirst|hris(?=\w)|rist|hrsit))(ian(?:ity|dom|i[zs](?:e[ds]?|ing|ation)|sted)|mas(?:es|ti[md]es?|s?y|days?)?|endom|opher)\b/g, 'Christ$1'); txt.value=txt.value.replace(/\bFran(?:sisc|[sc]ics)(o|ans?)\b/g, 'Francisc$1');

//Grammar

//Article usage

txt.value=txt.value.replace(/\b(A|a)n\s+hom(e?o)/g, '$1 hom$2'); txt.value=txt.value.replace(/\b(A|a)\s+hour\b/g, '$1n hour');

//Contractions

txt.value=txt.value.replace(/\b([CcWw]|[Ss]h)ould\'?nt\b/g, '$1ouldn\'t'); txt.value=txt.value.replace(/\b(D|d)(id|oes)\'?nt\b/g, '$1$2n\'t'); txt.value=txt.value.replace(/\b(W|w|D|d)o\'nt\b/g, '$1on\'t'); txt.value=txt.value.replace(/\b([Hh]a)(s|d|ve)\'?nt\b/g, '$1$2n\'t'); txt.value=txt.value.replace(/\b(W|w)as\'?nt\b/g, '$1asn\'t'); txt.value=txt.value.replace(/\b(W|w)ere\'?nt\b/g, '$1eren\'t'); txt.value=txt.value.replace(/\b(Y|y)a\'ll\b/g, '$1\'all');

//Joined words

txt.value=txt.value.replace(/\b(C|c)loseby\b/g, '$1lose by'); txt.value=txt.value.replace(/\b(A|a)swell\b/g, '$1s well'); txt.value=txt.value.replace(/\b(A|a)n\s+uniqu(e|ely)/g, '$1 uniqu$2'); txt.value=txt.value.replace(/\b(center|left|[Rr]ight)f(?:ie|ei)ld(|ers?)\b/g, '$1 field$2'); txt.value=txt.value.replace(/\b(I|i)n(fact|them?|some|m?any|spite|particular)\b/g, '$1n $2'); txt.value=txt.value.replace(/\b(O|o)therhand\b/g, '$1ther hand'); txt.value=txt.value.replace(/\b([Rr]a|O|o)ther\s+then\b/g, '$1ther than'); txt.value=txt.value.replace(/\b[Ss]uper[Bb]owl(s?)\b/g, 'Super Bowl$1'); txt.value=txt.value.replace(/\b([Tt])(wo|hree|en|welve|wenty|hirt(y|een)|housand)[ ]fold\b/g, '$1$2fold'); txt.value=txt.value.replace(/\b([Ff](our|ive|orty|ift(y|een))|[Ss](ix|even)(|teen|ty)|[Ee](ight(y?|een)|leven)|[Nn]ine(|teen|ty)|[Hh]undred)[ ]fold\b/g, '$1fold');

//Duplicated words

txt.value=txt.value.replace(/\b(a|and?|are|b[ey]|for|i[ft]|of|[st]?he|the(?:y|se)|this|to|was|were|when|with)\b\s+\1\b/g, '$1');

//Preposition usage

txt.value=txt.value.replace(/\b(C|c)omprises of\b/g, '$1omprises');

//Band names

txt.value=txt.value.replace(/\b[Mm]otley [Cc]rue\b/g, 'Mötley Crüe'); txt.value=txt.value.replace(/\b[Aa][Cc]-[Dd][Cc]\b/g, 'AC/DC'); txt.value=txt.value.replace(/\b[Mm]ettallica\b/g, 'Metallica');

//General rules //Beginnings

//avoid false positives: disillusion; Disini, disinfect, disinter, etc.; Disimone txt.value=txt.value.replace(/\b(D|d)isi([a-kmo-z]|m[a-np-z])\B/g, '$1issi$2'); //avoid false positives: enphytotic, enplane; Enmore, enmesh, enmity txt.value=txt.value.replace(/\b(E|e)n(p[a-gijkm-z]|m[a-df-hj-np-z]|b)\B/g, '$1m$2'); //avoid false positives: inpatient, inphase, input; inmate, inmost; inboard, inborn, inbound, inbreathe, inbreed, inbuilt txt.value=txt.value.replace(/\b(I|i)n(p[b-gi-tv-z]|m[b-np-z]|b[a-npqstv-z])\B/g, '$1m$2'); //avoid false positives: Imnaha, Imtiaz, Imdb.com txt.value=txt.value.replace(/\b(I|i)m(d[ac-z]|n[b-z]|t[a-hj-z]|v)\B/g, '$1n$2'); //avoid false positives: Umnak, Umtali, Umtata txt.value=txt.value.replace(/\b(U|u)m(d|[nt][b-z]|v)\B/g, '$1n$2');

//Endings

txt.value=txt.value.replace(/fuly\b/g, 'fully'); txt.value=txt.value.replace(/\B([b-z])sih(|ing(|ly)|e[ds]|ers?)\b/g, '$1ish$2'); txt.value=txt.value.replace(/(a|i|o)vly\b/g, '$1vely'); txt.value=txt.value.replace(/([bcdgimstv])atly\b/g, '$1ately'); txt.value=txt.value.replace(/([lnst])itly\b/g, '$1itely'); txt.value=txt.value.replace(/([cdglntv]i|nt|ic|io?n|er|u)aly\b/g, '$1ally'); txt.value=txt.value.replace(/\Binig(|s|ly)\b/g, 'ining$1');

}