Grammalecte  Check-in [ace3220f34]

Overview
Comment:[fr][py][bug] conj generator: forgotten parameter
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | fr | multid
Files: files | file ages | folders
SHA3-256: ace3220f34cd8a57e58fcc3feee4fd01252cb6d48beced8c1ef9dde8971d6012
User & Date: olr on 2018-03-11 19:15:11
Other Links: branch diff | manifest | tags
Context
2018-03-11
21:57
[fr][py][bug] conj generator: nissing else check-in: 67790bd50d user: olr tags: fr, multid
19:15
[fr][py][bug] conj generator: forgotten parameter check-in: ace3220f34 user: olr tags: fr, multid
19:14
[fr][js][bug] conj generator: forgotten parameter check-in: 4b78e35e83 user: olr tags: fr, multid
Changes

Modified gc_lang/fr/modules/conj_generator.py from [db023176bc] to [f5ebd235af].

3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

import re


def conjugate (sVerb, sVerbTag="i_____a", bVarPpas=True):
    lConj = []
    cGroup = getVerbGroupChar(sVerb)
    for nCut, sAdd, sFlexTags, sPattern in getConjRules(sVerb):
        if not sPattern or re.search(sPattern, sVerb):
            lConj.append((sVerb[0:-nCut]+sAdd, ":V" + cGroup + "_" + sVerbTag + sFlexTags))
    return lConj


def getVerbGroupChar (sVerb, ):
    sVerb = sVerb.lower()







|







3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

import re


def conjugate (sVerb, sVerbTag="i_____a", bVarPpas=True):
    lConj = []
    cGroup = getVerbGroupChar(sVerb)
    for nCut, sAdd, sFlexTags, sPattern in getConjRules(sVerb, bVarPpas):
        if not sPattern or re.search(sPattern, sVerb):
            lConj.append((sVerb[0:-nCut]+sAdd, ":V" + cGroup + "_" + sVerbTag + sFlexTags))
    return lConj


def getVerbGroupChar (sVerb, ):
    sVerb = sVerb.lower()