Grammalecte  Check-in [a681336660]

Overview
Comment:[graphspell] spellchecker: fix function name
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | graphspell
Files: files | file ages | folders
SHA3-256: a681336660f0b1192ee6f44a8578dce48e3810ee6626e04a86876b2d61721373
User & Date: olr on 2020-12-03 20:59:33
Other Links: manifest | tags
Context
2020-12-04
11:54
[fr] ajustements check-in: 68a329abb7 user: olr tags: fr, trunk
2020-12-03
20:59
[graphspell] spellchecker: fix function name check-in: a681336660 user: olr tags: graphspell, trunk
14:44
[graphspell] fix export and update showDistance() check-in: 312cfd6793 user: olr tags: graphspell, trunk
Changes

Modified graphspell-js/spellchecker.js from [9161247046] to [8801cae354].

145
146
147
148
149
150
151
152

153
154
155
156
157
158

159
160
161
162
163
164
165
166
167
168
169
170
171
172
173

174
175
176
177
178
179
180
145
146
147
148
149
150
151

152
153
154
155
156
157

158
159
160
161
162
163
164
165
166
167
168
169
170
171
172

173
174
175
176
177
178
179
180







-
+





-
+














-
+







        if (!this.lexicographer) {
            return [];
        }
        let lWordAndMorph = [];
        for (let sElem of this.lexicographer.split(sWord)) {
            if (sElem) {
                let lMorph = this.getMorph(sElem);
                let sLex = this.lexicographer.analyze(sElem)
                let sLex = this.lexicographer.analyze(sElem);
                let aRes = [];
                if (sLex) {
                    aRes = [ [lMorph.join(" | "), sLex] ];
                } else {
                    for (let sMorph of lMorph) {
                        aRes.push([sMorph, this.lexicographer.formatTags(sMorph)]);
                        aRes.push([sMorph, this.lexicographer.readableMorph(sMorph)]);
                    }
                }
                if (aRes.length > 0) {
                    lWordAndMorph.push([sElem, aRes]);
                }
            }
        }
        return lWordAndMorph;
    }

    readableMorph (sMorph) {
        if (!this.lexicographer) {
            return [];
        }
        return this.lexicographer.formatTags(sMorph);
        return this.lexicographer.readableMorph(sMorph);
    }

    setLabelsOnToken (oToken) {
        if (!this.lexicographer) {
            return;
        }
        if (oToken["sType"].startsWith("WORD")) {