Index: gc_lang/fr/modules/gce_analyseur.py ================================================================== --- gc_lang/fr/modules/gce_analyseur.py +++ gc_lang/fr/modules/gce_analyseur.py @@ -105,27 +105,12 @@ return True if 1 < len(s) < 16 and s[0:1].islower() and (not s[1:].islower() or _zUnitNumbers.search(s)): return True return False - -#### Syntagmes - -_zNextIsVerb1 = re.compile(" +[nmts](?:e |’)") -_zNextIsVerb2 = re.compile(r" +(\w[\w-]+)") - -def isNextVerb (dDA, s, iOffset): - "returns True if next word is a verb" - if _zNextIsVerb1.match(s): - return True - m = _zNextIsVerb2.match(s) - if m and morph(dDA, (iOffset+m.start(1), m.group(1)), ":[123][sp]", False): - return True - return False - #### Exceptions aREGULARPLURAL = frozenset(["abricot", "amarante", "aubergine", "acajou", "anthracite", "brique", "caca", "café", \ "carotte", "cerise", "chataigne", "corail", "citron", "crème", "grave", "groseille", \ "jonquille", "marron", "olive", "pervenche", "prune", "sable"]) aSHOULDBEVERB = frozenset(["aller", "manger"])