Index: gc_lang/fr/modules-js/gce_suggestions.js ================================================================== --- gc_lang/fr/modules-js/gce_suggestions.js +++ gc_lang/fr/modules-js/gce_suggestions.js @@ -246,10 +246,18 @@ aSugg.add(sFlex.slice(0,-1)+"ux"); } if (sFlex.endsWith("ail") && sFlex.length > 3 && _oSpellChecker.isValid(sFlex.slice(0,-2)+"ux")) { aSugg.add(sFlex.slice(0,-2)+"ux"); } + } + if (sFlex.endsWith("L")) { + if (sFlex.endsWith("AL") && sFlex.length > 2 && _oSpellChecker.isValid(sFlex.slice(0,-1)+"UX")) { + aSugg.add(sFlex.slice(0,-1)+"UX"); + } + if (sFlex.endsWith("AIL") && sFlex.length > 3 && _oSpellChecker.isValid(sFlex.slice(0,-2)+"UX")) { + aSugg.add(sFlex.slice(0,-2)+"UX"); + } } if (_oSpellChecker.isValid(sFlex+"s")) { aSugg.add(sFlex+"s"); } if (_oSpellChecker.isValid(sFlex+"x")) { @@ -256,14 +264,14 @@ aSugg.add(sFlex+"x"); } if (mfsp.hasMiscPlural(sFlex)) { mfsp.getMiscPlural(sFlex).forEach(function(x) { aSugg.add(x); }); } - if (aSugg.size > 0) { - return Array.from(aSugg).join("|"); + if (aSugg.size == 0) { + aSugg.add(sFlex); } - return ""; + return Array.from(aSugg).join("|"); } function suggSing (sFlex) { // returns singular forms assuming sFlex is plural let aSugg = new Set(); Index: gc_lang/fr/modules/gce_suggestions.py ================================================================== --- gc_lang/fr/modules/gce_suggestions.py +++ gc_lang/fr/modules/gce_suggestions.py @@ -187,19 +187,24 @@ if sFlex.endswith("l"): if sFlex.endswith("al") and len(sFlex) > 2 and _oSpellChecker.isValid(sFlex[:-1]+"ux"): aSugg.add(sFlex[:-1]+"ux") if sFlex.endswith("ail") and len(sFlex) > 3 and _oSpellChecker.isValid(sFlex[:-2]+"ux"): aSugg.add(sFlex[:-2]+"ux") + if sFlex.endswith("L"): + if sFlex.endswith("AL") and len(sFlex) > 2 and _oSpellChecker.isValid(sFlex[:-1]+"UX"): + aSugg.add(sFlex[:-1]+"UX") + if sFlex.endswith("AIL") and len(sFlex) > 3 and _oSpellChecker.isValid(sFlex[:-2]+"UX"): + aSugg.add(sFlex[:-2]+"UX") if _oSpellChecker.isValid(sFlex+"s"): aSugg.add(sFlex+"s") if _oSpellChecker.isValid(sFlex+"x"): aSugg.add(sFlex+"x") if mfsp.hasMiscPlural(sFlex): aSugg.update(mfsp.getMiscPlural(sFlex)) - if aSugg: - return "|".join(aSugg) - return "" + if not aSugg: + aSugg.add(sFlex) + return "|".join(aSugg) def suggSing (sFlex): "returns singular forms assuming sFlex is plural" aSugg = set()