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 @@ -273,17 +273,25 @@ } if (_oSpellChecker.isValid(sFlex.slice(0,-2)+"il")) { aSugg.add(sFlex.slice(0,-2)+"il"); } } - if (_oSpellChecker.isValid(sFlex.slice(0,-1))) { + if (sFlex.endsWith("UX")) { + if (_oSpellChecker.isValid(sFlex.slice(0,-2)+"L")) { + aSugg.add(sFlex.slice(0,-2)+"L"); + } + if (_oSpellChecker.isValid(sFlex.slice(0,-2)+"IL")) { + aSugg.add(sFlex.slice(0,-2)+"IL"); + } + } + if ((sFlex.endsWith("s") || sFlex.endsWith("x") || sFlex.endsWith("S") || sFlex.endsWith("X")) && _oSpellChecker.isValid(sFlex.slice(0,-1))) { aSugg.add(sFlex.slice(0,-1)); } - if (aSugg.size > 0) { - return Array.from(aSugg).join("|"); + if (aSugg.size == 0) { + aSugg.add(sFlex); } - return ""; + return Array.from(aSugg).join("|"); } function suggMasSing (sFlex, bSuggSimil=false) { // returns masculine singular forms 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 @@ -206,15 +206,20 @@ if sFlex.endswith("ux"): if _oSpellChecker.isValid(sFlex[:-2]+"l"): aSugg.add(sFlex[:-2]+"l") if _oSpellChecker.isValid(sFlex[:-2]+"il"): aSugg.add(sFlex[:-2]+"il") - if _oSpellChecker.isValid(sFlex[:-1]): + if sFlex.endswith("UX"): + if _oSpellChecker.isValid(sFlex[:-2]+"L"): + aSugg.add(sFlex[:-2]+"L") + if _oSpellChecker.isValid(sFlex[:-2]+"IL"): + aSugg.add(sFlex[:-2]+"IL") + if sFlex.endswith(("s", "x", "S", "X")) and _oSpellChecker.isValid(sFlex[:-1]): aSugg.add(sFlex[:-1]) - if aSugg: - return "|".join(aSugg) - return "" + if not aSugg: + aSugg.add(sFlex) + return "|".join(aSugg) def suggMasSing (sFlex, bSuggSimil=False): "returns masculine singular forms" aSugg = set()