Index: gc_lang/fr/modules-js/lexicographe.js ================================================================== --- gc_lang/fr/modules-js/lexicographe.js +++ gc_lang/fr/modules-js/lexicographe.js @@ -281,21 +281,10 @@ return { sType: "COMPLEX", sValue: oToken.sValue, aLabel: ["élément complexe indéterminé"] }; - } else if (this.oDict.isValidToken(oToken.sValue)) { - let lMorph = this.oDict.getMorph(oToken.sValue); - let aElem = []; - for (let s of lMorph) { - if (s.includes(":")) aElem.push(this._formatTags(s)); - } - return { - sType: oToken.sType, - sValue: oToken.sValue, - aLabel: (aElem.length > 0) ? aElem : ["mot composé indéterminé"] - }; } else if (m = this._zCompoundWord.exec(oToken.sValue)) { // mots composés let lMorph = this.oDict.getMorph(m[1]); let aElem = []; for (let s of lMorph) { @@ -305,10 +294,21 @@ return { sType: oToken.sType, sValue: oToken.sValue, aLabel: aElem }; + } else if (this.oDict.isValidToken(oToken.sValue)) { + let lMorph = this.oDict.getMorph(oToken.sValue); + let aElem = []; + for (let s of lMorph) { + if (s.includes(":")) aElem.push(this._formatTags(s)); + } + return { + sType: oToken.sType, + sValue: oToken.sValue, + aLabel: (aElem.length > 0) ? aElem : ["mot composé indéterminé"] + }; } else { return { sType: "UNKNOWN", sValue: oToken.sValue, aLabel: ["inconnu du dictionnaire"]