Differences From Artifact [252fe3713f]:
- File gc_lang/fr/modules/gce_analyseur.py — part of check-in [0534e554b4] at 2018-09-11 12:58:27 on branch rg — [core][fr][py] remove useless code (user: olr, size: 3771) [annotate] [blame] [check-ins using] [more...]
To Artifact [bae6058302]:
- File gc_lang/fr/modules/gce_analyseur.py — part of check-in [2c639e2d92] at 2019-05-11 15:54:20 on branch trunk — [core][fr] code cleaning (pylint) (user: olr, size: 3866) [annotate] [blame] [check-ins using]
1 2 3 4 5 6 7 8 9 10 11 12 13 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | + |
#### GRAMMAR CHECKING ENGINE PLUGIN: Parsing functions for French language
from . import cregex as cr
def g_morphVC (dToken, sPattern, sNegPattern=""):
"lance la fonction g_morph() sur la première partie d’un verbe composé (ex: vient-il)"
nEnd = dToken["sValue"].rfind("-")
if "-t-" in dToken["sValue"]:
nEnd = nEnd - 2
return g_morph(dToken, sPattern, sNegPattern, 0, nEnd, False)
def rewriteSubject (s1, s2):
|
| ︙ |