Grammalecte  Check-in [a21ae98cee]

Overview
Comment:[fr] lexicographe: mot composé indéterminé
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | fr | Lexicographe
Files: files | file ages | folders
SHA3-256: a21ae98ceeead1c59e8369a96d34d996a2045e21d7bc060b6d92f1263aa12b4f
User & Date: olr on 2017-11-02 07:16:22
Other Links: branch diff | manifest | tags
Context
2017-11-02
07:38
[fr][bug] lexicographe: analyse des formes interrogatives check-in: fc24898855 user: olr tags: fr, Lexicographe
07:16
[fr] lexicographe: mot composé indéterminé check-in: a21ae98cee user: olr tags: fr, Lexicographe
2017-11-01
14:42
[fr][bug] lexicographe: analyse des locutions avant le signe <:> check-in: e64f0bd3fb user: olr tags: fr, Lexicographe
Changes

Modified gc_lang/fr/modules-js/lexicographe.js from [9684666070] to [ad412a9bbd].

288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
                        let aElem = [];
                        for (let s of lMorph) {
                            if (s.includes(":")) aElem.push(this._formatTags(s));
                        }
                        return {
                            sType: oToken.sType,
                            sValue: oToken.sValue,
                            aLabel: aElem
                        };
                    } 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) {
                            if (s.includes(":")) aElem.push(this._formatTags(s));







|







288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
                        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) {
                            if (s.includes(":")) aElem.push(this._formatTags(s));