Grammalecte  Check-in [254e33fe66]

Overview
Comment:[grphspell][js] ibdawg: use ... instead of concat
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | graphspell | multid
Files: files | file ages | folders
SHA3-256: 254e33fe66149f8203c6067b4fdc7196ca7c401374971e683f32a9959e3a0e87
User & Date: olr on 2018-02-16 15:40:30
Other Links: branch diff | manifest | tags
Context
2018-02-16
15:54
[fx] new default name for personal dictionary to export check-in: e8e3249304 user: olr tags: fx, multid
15:46
[fx][graphspell] merge multid: multi-dictionaries > editable personal dictionary check-in: 607d532bca user: olr tags: fx, graphspell, new_feature, trunk
15:40
[grphspell][js] ibdawg: use ... instead of concat check-in: 254e33fe66 user: olr tags: graphspell, multid
14:42
[fx] use personal dictionary + [graphspell][js] spellchecker: fix JS syntax check-in: 7f65ce689c user: olr tags: fx, graphspell, multid
Changes

Modified graphspell-js/ibdawg.js from [508f46740c] to [6c0fce95e9].

278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
        return Boolean(this._convBytesToInteger(this.byDic.slice(iAddr, iAddr+this.nBytesArc)) & this._finalNodeMask);
    }

    getMorph (sWord) {
        // retrieves morphologies list, different casing allowed
        let l = this.morph(sWord);
        if (sWord[0].gl_isUpperCase()) {
            l = l.concat(this.morph(sWord.toLowerCase()));
            if (sWord.gl_isUpperCase() && sWord.length > 1) {
                l = l.concat(this.morph(sWord.gl_toCapitalize()));
            }
        }
        return l;
    }

    suggest (sWord, nSuggLimit=10) {
        // returns a array of suggestions for <sWord>







|

|







278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
        return Boolean(this._convBytesToInteger(this.byDic.slice(iAddr, iAddr+this.nBytesArc)) & this._finalNodeMask);
    }

    getMorph (sWord) {
        // retrieves morphologies list, different casing allowed
        let l = this.morph(sWord);
        if (sWord[0].gl_isUpperCase()) {
            l.push(...this.morph(sWord.toLowerCase()));
            if (sWord.gl_isUpperCase() && sWord.length > 1) {
                l.push(...this.morph(sWord.gl_toCapitalize()));
            }
        }
        return l;
    }

    suggest (sWord, nSuggLimit=10) {
        // returns a array of suggestions for <sWord>