Index: gc_core/py/lang_core/gc_engine.py ================================================================== --- gc_core/py/lang_core/gc_engine.py +++ gc_core/py/lang_core/gc_engine.py @@ -1168,12 +1168,15 @@ dToken["lMorph"] = lMorph #print("DA:", dToken["sValue"], lMorph) return True -def g_define_from (dToken, nLeft, nRight=None): - dToken["lMorph"] = _oSpellChecker.getMorph(dToken["sValue"][slice(nLeft, nRight)]) +def g_define_from (dToken, nLeft=None, nRight=None): + if nLeft is not None: + dToken["lMorph"] = _oSpellChecker.getMorph(dToken["sValue"][slice(nLeft, nRight)]) + else: + dToken["lMorph"] = _oSpellChecker.getMorph(dToken["sValue"]) return True #### GRAMMAR CHECKER PLUGINS