Grammalecte  Check-in [5737bd5a62]

Overview
Comment:[fr] faux positif, accord COD
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | fr
Files: files | file ages | folders
SHA3-256: 5737bd5a62e4986d07de24195a60741a58edf580e9e76640dca42ed87b111b4e
User & Date: olr on 2017-07-07 20:52:53
Other Links: manifest | tags
Context
2017-07-09
12:08
[fr] màj: aller être +adj check-in: aca9634336 user: olr tags: trunk, fr
2017-07-07
20:52
[fr] faux positif, accord COD check-in: 5737bd5a62 user: olr tags: trunk, fr
09:28
[core][bug] spellchecker: import check-in: 893f14b8f3 user: olr tags: trunk, core
Changes

Modified gc_lang/fr/rules.grx from [352d3d40fc] to [aad2aba366].

9343
9344
9345
9346
9347
9348
9349
9350

9351
9352
9353
9354
9355
9356

9357
9358
9359
9360
9361
9362
9363
9343
9344
9345
9346
9347
9348
9349

9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364







-
+






+







TEST: J’ai {{lut}} son journal.                                                   ->> lu
TEST: Ils avaient barre sur lui.


__[i]/ppas(ppas_det_nom_avoir)__
    (l(?:’|es? |a |eurs )|ce(?:s|tte|t|rtaine?s|) |des |quelques |[mts](?:es|on|a) |[nv]o(?:s|tre) ) *({w_2}) +(?:ne +|n’|l(?:ui|eur) +|)({avoir}) +({w_2})  @@0,w,w,$
    <<- not re.search("(?i)^(?:barre|confiance|cours|envie|peine|prise|crainte|cure|affaire|hâte|force|recours)$", \4) and morph(word(-1), ">puisque? ", False, True)
    and morph(\3, ":V0a", False) and not \4.isupper() and morphex(\4, ":(?:[123][sp]|Q.*:[fp])", ":(?:G|W|Q.*:m:[si])")
    and not morph(\2, ":G", False) and morph(\3, ":V0a", False) and not \4.isupper() and morphex(\4, ":(?:[123][sp]|Q.*:[fp])", ":(?:G|W|Q.*:m:[si])")
    and not (\3 == "avions" and morph(\4, ":3[sp]", False))
    -4>> =suggMasSing(@)
    # Ce verbe devrait être un participe passé au masculin singulier.|http://fr.wikipedia.org/wiki/Accord_du_participe_pass%C3%A9_en_fran%C3%A7ais

TEST: Les femmes lui avait {{conseillées}} de se taire.
TEST: le mur avait {{était}} détruit
TEST: Certains les ont d’abord jugés trop lents.


__[i]/ppas(ppas_les_avoir)__
    les +({avoir}) +({w_1}(?:[éiut]e?|is|se))  @@w,$
    <<- morph(\1, ":V0a", False) and morphex(\2, ":V[0-3]..t.*:Q.*:s", ":[GWpi]")
    -2>> =suggPlur(@)
    # Accord avec le COD “les” : Le participe passé « \2 » devrait être au pluriel (et accordé en genre).|http://fr.wikipedia.org/wiki/Accord_du_participe_pass%C3%A9_en_fran%C3%A7ais