Grammalecte  Check-in [6e946dad21]

Overview
Comment:[core][js][bug] disambigator: always return true
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | core | rg
Files: files | file ages | folders
SHA3-256: 6e946dad2171ebe8054ceed98c4a69a1502476dd3c2daf1c3705ee1c87135160
User & Date: olr on 2018-05-23 11:47:04
Other Links: branch diff | manifest | tags
Context
2018-05-23
11:48
[build][core] compile rules graph + token sentence checker update check-in: 3a97457e25 user: olr tags: build, core, rg
11:47
[core][js][bug] disambigator: always return true check-in: 6e946dad21 user: olr tags: core, rg
11:45
[fr] wrong rule graph syntax check-in: 13acee7bda user: olr tags: fr, rg
Changes

Modified gc_core/js/lang_core/gc_engine.js from [b2f986b58c] to [12095116ac].

544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
...
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
        return true;
    }
    if (dDA.has(nPos)) {
        return true;
    }
    let lMorph = _oSpellChecker.getMorph(sWord);
    if (lMorph.length === 0  ||  lMorph.length === 1) {
        return false;
    }
    let lSelect = lMorph.filter( sMorph => sMorph.search(sPattern) !== -1 );
    if (lSelect.length > 0) {
        if (lSelect.length != lMorph.length) {
            dDA.set(nPos, lSelect);
        }
    } else if (lDefault) {
................................................................................
        return true;
    }
    if (dDA.has(nPos)) {
        return true;
    }
    let lMorph = _oSpellChecker.getMorph(sWord);
    if (lMorph.length === 0  ||  lMorph.length === 1) {
        return false;
    }
    let lSelect = lMorph.filter( sMorph => sMorph.search(sPattern) === -1 );
    if (lSelect.length > 0) {
        if (lSelect.length != lMorph.length) {
            dDA.set(nPos, lSelect);
        }
    } else if (lDefault) {







|







 







|







544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
...
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
        return true;
    }
    if (dDA.has(nPos)) {
        return true;
    }
    let lMorph = _oSpellChecker.getMorph(sWord);
    if (lMorph.length === 0  ||  lMorph.length === 1) {
        return true;
    }
    let lSelect = lMorph.filter( sMorph => sMorph.search(sPattern) !== -1 );
    if (lSelect.length > 0) {
        if (lSelect.length != lMorph.length) {
            dDA.set(nPos, lSelect);
        }
    } else if (lDefault) {
................................................................................
        return true;
    }
    if (dDA.has(nPos)) {
        return true;
    }
    let lMorph = _oSpellChecker.getMorph(sWord);
    if (lMorph.length === 0  ||  lMorph.length === 1) {
        return true;
    }
    let lSelect = lMorph.filter( sMorph => sMorph.search(sPattern) === -1 );
    if (lSelect.length > 0) {
        if (lSelect.length != lMorph.length) {
            dDA.set(nPos, lSelect);
        }
    } else if (lDefault) {