Grammalecte  Check-in [943e05400b]

Overview
Comment:[fr][js][bug] bug dans conj, bug sur suggVerbInfi + renommage de variables dans mfsp
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | fr | webext2_fix
Files: files | file ages | folders
SHA3-256: 943e05400b79ecff128e57f36ebfe3100ba2a0dc6dfc6fe4e4993b9faa82fb46
User & Date: olr on 2017-08-06 08:41:52
Other Links: branch diff | manifest | tags
Context
2017-08-06
09:10
[core][js] useless comments check-in: b1dc023d0a user: olr tags: core, webext2_fix
08:41
[fr][js][bug] bug dans conj, bug sur suggVerbInfi + renommage de variables dans mfsp check-in: 943e05400b user: olr tags: fr, webext2_fix
01:52
[core][js] remplacement de "echo" par "helpers.echo" vu que le helpers est déjà dans les requires check-in: 8aac817ecd user: IllusionPerdu tags: core, webext2_fix
Changes

Modified gc_lang/fr/modules-js/conj.js from [ed04ee6c92] to [ab8249cda2].

95
96
97
98
99
100
101
102

103
104
105
106
107
108
109
95
96
97
98
99
100
101

102
103
104
105
106
107
108
109







-
+







                aSugg.add(this._getConjWithTags(sInfi, tTags, ":Ip", ":1s"));
                aSugg.add(this._getConjWithTags(sInfi, tTags, ":Ip", ":3s"));
            } else if (sMorph.includes(":V3")) {
                aSugg.add(this._getConjWithTags(sInfi, tTags, ":Ip", ":1s"));
                aSugg.add(this._getConjWithTags(sInfi, tTags, ":Ip", ":3s"));
                aSugg.add(this._getConjWithTags(sInfi, tTags, ":Is", ":1s"));
                aSugg.add(this._getConjWithTags(sInfi, tTags, ":Is", ":3s"));
            } else if (isMorph.includes(":V0a")) {
            } else if (sMorph.includes(":V0a")) {
                aSugg.add("eus");
                aSugg.add("eut");
            } else {
                aSugg.add("étais");
                aSugg.add("était");
            }
            aSugg.delete("");

Modified gc_lang/fr/modules-js/gce_suggestions.js from [d6c09c4817] to [74647129de].

140
141
142
143
144
145
146
147

148
149
150
151
152
153
154
140
141
142
143
144
145
146

147
148
149
150
151
152
153
154







-
+







        return Array.from(aSugg).join("|");
    }
    return "";
}

function suggVerbInfi (sFlex) {
    //return stem(sFlex).join("|");
    return [ stem(sFlex).filter(sStem => conj.isVerb(sStem)) ].join("|");
    return stem(sFlex).filter(sStem => conj.isVerb(sStem)).join("|");
}


const _dQuiEst = new Map ([
    ["je", ":1s"], ["j’", ":1s"], ["j’en", ":1s"], ["j’y", ":1s"],
    ["tu", ":2s"], ["il", ":3s"], ["on", ":3s"], ["elle", ":3s"],
    ["nous", ":1p"], ["vous", ":2p"], ["ils", ":3p"], ["elles", ":3p"]

Modified gc_lang/fr/modules-js/mfsp.js from [4b4672ec80] to [5ce8b4f9f6].

34
35
36
37
38
39
40
41
42
43



44
45

46
47
48
49
50
51
52
53
54
55
56
57
58
59
60



61
62

63
64
65
66
67
68
69
34
35
36
37
38
39
40



41
42
43
44

45
46
47
48
49
50
51
52
53
54
55
56
57



58
59
60
61

62
63
64
65
66
67
68
69







-
-
-
+
+
+

-
+












-
-
-
+
+
+

-
+







        // returns True if sWord exists in this._dMasForm
        return this._dMasForm.has(sWord);
    },

    getMasForm: function (sWord, bPlur) {
        // returns masculine form with feminine form
        if (this._dMasForm.has(sWord)) {
            let masForm = [];
            for (var sTag of this._whatSuffixCode(sWord, bPlur)){
                masForm.push( this._modifyStringWithSuffixCode(sWord, sTag) );
            let aMasForm = [];
            for (let sTag of this._whatSuffixCode(sWord, bPlur)){
                aMasForm.push( this._modifyStringWithSuffixCode(sWord, sTag) );
            }
            return masForm;
            return aMasForm;
        }
        return [];
    },

    hasMiscPlural: function (sWord) {
        // returns True if sWord exists in dMiscPlur
        return this._dMiscPlur.has(sWord);
    },

    getMiscPlural: function (sWord) {
        // returns plural form with singular form
        if (this._dMiscPlur.has(sWord)) {
            let miscPlurial = [];
            for (var sTag of this._lTagMiscPlur[this._dMiscPlur.get(sWord)].split("|")){
                miscPlurial.push( this._modifyStringWithSuffixCode(sWord, sTag) );
            let aMiscPlural = [];
            for (let sTag of this._lTagMiscPlur[this._dMiscPlur.get(sWord)].split("|")){
                aMiscPlural.push( this._modifyStringWithSuffixCode(sWord, sTag) );
            }
            return miscPlurial;
            return aMiscPlural;
        }
        return [];
    },

    _whatSuffixCode: function (sWord, bPlur) {
        // necessary only for dMasFW
        let sSfx = this._lTagMasForm[this._dMasForm.get(sWord)];