Grammalecte  Check-in [e778dbe980]

Overview
Comment:[fr][core] analyse pour les verbes composés
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | fr | core | rg
Files: files | file ages | folders
SHA3-256: e778dbe9803eaa8d671d2675b55cebbe4753899e3ab3f3c9b962bd6748ec97dc
User & Date: olr on 2018-07-23 17:51:43
Other Links: branch diff | manifest | tags
Context
2018-07-23
17:52
[build] rules condition rewriting update check-in: ee36aa096c user: olr tags: build, rg
17:51
[fr][core] analyse pour les verbes composés check-in: e778dbe980 user: olr tags: fr, core, rg
2018-07-22
12:33
[fr] confusion ce/se check-in: 080f92070d user: olr tags: fr, rg
Changes

Modified gc_lang/fr/modules/gce_analyseur.py from [57b5310cdc] to [b96ac7c29b].

1
2
3
4







5
6
7
8
9
10
11
#### GRAMMAR CHECKING ENGINE PLUGIN: Parsing functions for French language

from . import cregex as cr









def rewriteSubject (s1, s2):
    "rewrite complex subject: <s1> a prn/patr/npr (M[12P]) followed by “et” and <s2>"
    if s2 == "lui":
        return "ils"
    if s2 == "moi":
        return "nous"




>
>
>
>
>
>
>







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#### GRAMMAR CHECKING ENGINE PLUGIN: Parsing functions for French language

from . import cregex as cr


def g_morphVC (dToken, sPattern, sNegPattern=""):
    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):
    "rewrite complex subject: <s1> a prn/patr/npr (M[12P]) followed by “et” and <s2>"
    if s2 == "lui":
        return "ils"
    if s2 == "moi":
        return "nous"