Overview
Comment: | [core] gc engine: remove useless function call |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | core | rg |
Files: | files | file ages | folders |
SHA3-256: |
00475b3f6b3869d8d294f330b254be18 |
User & Date: | olr on 2018-09-10 08:19:50 |
Other Links: | branch diff | manifest | tags |
Context
2018-09-10
| ||
08:20 | [core][js] ge engine: new engine (code conversion from Python [draft]) check-in: 622ce25bcf user: olr tags: core, rg | |
08:19 | [core] gc engine: remove useless function call check-in: 00475b3f6b user: olr tags: core, rg | |
2018-09-07
| ||
21:29 | [core] fix bug about context check-in: 1fbd95d6f4 user: olr tags: core, rg | |
Changes
Modified gc_core/py/lang_core/gc_engine.py from [60f5937577] to [126b8f2d42].
︙ | ︙ | |||
941 942 943 944 945 946 947 | if dToken["sValue"][0:2].istitle(): # we test only 2 first chars, to make valid words such as "Laissez-les", "Passe-partout". if sValue.lower() in sValues: return True elif dToken["sValue"].isupper(): #if sValue.lower() in sValues: # return True sValue = "|"+sValue[1:].capitalize() | | | 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 | if dToken["sValue"][0:2].istitle(): # we test only 2 first chars, to make valid words such as "Laissez-les", "Passe-partout". if sValue.lower() in sValues: return True elif dToken["sValue"].isupper(): #if sValue.lower() in sValues: # return True sValue = "|"+sValue[1:].capitalize() if sValue in sValues: return True return False def g_morph (dToken, sPattern, sNegPattern="", nLeft=None, nRight=None, bMemorizeMorph=True): "analyse a token, return True if <sNegPattern> not in morphologies and <sPattern> in morphologies" if "lMorph" in dToken: |
︙ | ︙ |