Index: gc_core/js/lang_core/gc_engine.js ================================================================== --- gc_core/js/lang_core/gc_engine.js +++ gc_core/js/lang_core/gc_engine.js @@ -1458,11 +1458,11 @@ lMorph.push(...sNewMorph.split("|")); oToken["lMorph"] = lMorph; return true; } -function g_rewrite (dToken, sToReplace, sReplace) { +function g_rewrite (oToken, sToReplace, sReplace) { // Disambiguation: rewrite morphologies let lMorph = (oToken.hasOwnProperty("lMorph")) ? oToken["lMorph"] : _oSpellChecker.getMorph(oToken["sValue"]); oToken["lMorph"] = lMorph.map(s => s.replace(sToReplace, sReplace)); return true; }