Grammalecte  Check-in [87e2a5d44d]

Overview
Comment:[core][js] gc_engine: fix variable name
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | core
Files: files | file ages | folders
SHA3-256: 87e2a5d44d0cd6a2102463a3ec19a73490109709e36405876d5c97e7de29f06f
User & Date: olr on 2020-05-26 19:56:44
Other Links: manifest | tags
Context
2020-05-27
10:48
[fr] ajustements check-in: df795b59f9 user: olr tags: fr, trunk
2020-05-26
19:56
[core][js] gc_engine: fix variable name check-in: 87e2a5d44d user: olr tags: core, trunk
19:51
[core][build] gc engine: new disambiguation function: rewrite() [fr] rewrite, ajustements et faux positif check-in: a53b5710d6 user: olr tags: build, core, fr, trunk
Changes

Modified gc_core/js/lang_core/gc_engine.js from [94477ac350] to [fd4f80b37d].

  1456   1456       // Disambiguation: add a morphology to a token
  1457   1457       let lMorph = (oToken.hasOwnProperty("lMorph")) ? oToken["lMorph"] : _oSpellChecker.getMorph(oToken["sValue"]);
  1458   1458       lMorph.push(...sNewMorph.split("|"));
  1459   1459       oToken["lMorph"] = lMorph;
  1460   1460       return true;
  1461   1461   }
  1462   1462   
  1463         -function g_rewrite (dToken, sToReplace, sReplace) {
         1463  +function g_rewrite (oToken, sToReplace, sReplace) {
  1464   1464       // Disambiguation: rewrite morphologies
  1465   1465       let lMorph = (oToken.hasOwnProperty("lMorph")) ? oToken["lMorph"] : _oSpellChecker.getMorph(oToken["sValue"]);
  1466   1466       oToken["lMorph"] = lMorph.map(s => s.replace(sToReplace, sReplace));
  1467   1467       return true;
  1468   1468   }
  1469   1469   
  1470   1470   function g_define (oToken, sMorphs) {