@@ -14,40 +14,10 @@ } } return g_morph(oToken, sPattern, sNegPattern, 0, nEnd, false); } -function rewriteSubject (s1, s2) { - // s1 is supposed to be prn/patr/npr (M[12P]) - if (s2 == "lui") { - return "ils"; - } - if (s2 == "moi") { - return "nous"; - } - if (s2 == "toi") { - return "vous"; - } - if (s2 == "nous") { - return "nous"; - } - if (s2 == "vous") { - return "vous"; - } - if (s2 == "eux") { - return "ils"; - } - if (s2 == "elle" || s2 == "elles") { - if (cregex.mbNprMasNotFem(_oSpellChecker.getMorph(s1))) { - return "ils"; - } - // si épicène, indéterminable, mais OSEF, le féminin l’emporte - return "elles"; - } - return s1 + " et " + s2; -} - function apposition (sWord1, sWord2) { // returns true if nom + nom (no agreement required) return sWord2.length < 2 || (cregex.mbNomNotAdj(_oSpellChecker.getMorph(sWord2)) && cregex.mbPpasNomNotAdj(_oSpellChecker.getMorph(sWord1))); }