4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
|
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
|
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
|
#__[i>__ [nmts]e l(?:es?|a)( ) @@$ <<- ~1>> @
#__[i]__ l(?:es?|a)( )({w_2}) @@*,$ <<- morph(\2, ":[123][sp]") ~1>> @
### DPP: Désambiguïsation par distinction des mots qui sont à la fois (verbes conjugués ET (noms ET/OU adjectifs))
# Cette distinction est nécessaire seulement pour les mots suivant un groupe nominal.
# Exemples : finis, donne(s), avance(s), bavarde(s)
__[i](p_astuce_désambiguïsation1)__
(?<![lL]’)une? ({w_2})( ) *({w_2}) @@w,**,$
<<- isAmbiguousNAV(\3) and morphex(\1, ":[NAQ]", ">telle ")
~2>> ~
__[i](p_astuce_désambiguïsation2)__
(?:d(?:es? |’)|[mts](?:es|on|a) |ce(?:s|t(?:te|)|rtaine?s|) |[nv](?:otre|os) |leurs |quelques ) *({w_2})( ) *({w_2}) @@w,**,$
<<- isAmbiguousNAV(\3) and morphex(\1, ":[NAQ]", ">telle ") and not re.search("^[dD](?:’une?|e l(?:a|eur)) ", \0)
~2>> ~
__[i](p_astuce_désambiguïsation3)__
l(?:es? |a |’|eur ) *({w_2})( ) *({w_2}) @@w,**,$
<<- isAmbiguousNAV(\3) and ( morphex(\1, ":[NAQ]", ":V0a") or (morphex(\1, ":[NAQ]", ":(?:3[sp]|V0a)") and isStart()) )
~2>> ~
#__[i](p_astuce_désambiguïsation1)__
# (?<![lL]’)une? ({w_2})( ) *({w_2}) @@w,**,$
# <<- isAmbiguousNAV(\3) and morphex(\1, ":[NAQ]", ">telle ")
# ~2>> ~
#__[i](p_astuce_désambiguïsation2)__
# (?:d(?:es? |’)|[mts](?:es|on|a) |ce(?:s|t(?:te|)|rtaine?s|) |[nv](?:otre|os) |leurs |quelques ) *({w_2})( ) *({w_2}) @@w,**,$
# <<- isAmbiguousNAV(\3) and morphex(\1, ":[NAQ]", ">telle ") and not re.search("^[dD](?:’une?|e l(?:a|eur)) ", \0)
# ~2>> ~
#__[i](p_astuce_désambiguïsation3)__
# l(?:es? |a |’|eur ) *({w_2})( ) *({w_2}) @@w,**,$
# <<- isAmbiguousNAV(\3) and ( morphex(\1, ":[NAQ]", ":V0a") or (morphex(\1, ":[NAQ]", ":(?:3[sp]|V0a)") and isStart()) )
# ~2>> ~
TEST: comme le signe évident d’une politique volontaire
TEST: c’était le signe évident d’une politique volontaire
TEST: ce que c’est : le signe évident d’une politique volontaire
|
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
|
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
|
-
+
|
TEST: {{en faite}}, on en voit partout, ça grouille.
TEST: Que {{faîtes}}-vous ? Vous {{faîtes}} mal !
TEST: Aujourd’hui, n’en faites pas trop.
# flamant rose
__[i]/conf(conf_flamant_rose)__
(flamands?)[~ ]+roses? @@0 <<- -1>> =\1.replace("and", "ant") # Confusion. Flamand = habitant des Flandres. Flamant = oiseau.
(flamands?) +roses? @@0 <<- -1>> =\1.replace("and", "ant") # Confusion. Flamand = habitant des Flandres. Flamant = oiseau.
TEST: j’ai vu un {{flamand}} rose.
# foi / fois
__[i]/conf(conf_bonne_mauvaise_foi)__
(mauvaise|bonne) (fois) @@0,$
|
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
|
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
|
-
+
-
+
-
+
-
+
|
TEST: {{Attend}} la correction.
TEST: {{Vas}} au diable !
TEST: {{Écartes}} de moi cette coupe.
## Traits d’union manquants
__[i]/imp(imp_union_moi_toi)__
(?<![’~])({w_2}) ([mt]oi)(?! même) @@0,$
(?<!’)({w_2}) ([mt]oi)(?! même) @@0,$
<<- morphex(\1, ":E", ":[GM]")
->> \1-\2
# S’il s’agit d’un impératif, mettez un trait d’union.|http://66.46.185.79/bdl/gabarit_bdl.asp?id=4206
TEST: {{Apportez moi}} ce dictionnaire
__[i]/imp(imp_union_nous_vous_lui_y)__
(?<![’~])({w_2}) ([nv]ous|lui|y)(?! en| y| est) @@0,$
(?<!’)({w_2}) ([nv]ous|lui|y)(?! en| y| est) @@0,$
<<- morphex(\1, ":E", ":[GM]") and morphex(word(1), ":", ":(?:Y|3[sp])", True) and morph(word(-1), ":Cc", False, True) and not before("~ +$")
->> \1-\2
# S’il s’agit d’un impératif, mettez un trait d’union.|http://66.46.185.79/bdl/gabarit_bdl.asp?id=4206
TEST: {{Donne nous}} du café.
__[i]/imp(imp_union_les)__
(?<![’~])({w_2}) les(?! plus| moins| mieux| trop| très| en| y) @@0
(?<!’)({w_2}) les(?! plus| moins| mieux| trop| très| en| y) @@0
<<- morphex(\1, ":E", ":[GM]") and morphex(word(1), ":", ":(?:N|A|Q|Y|B|3[sp])", True) and morph(word(-1), ":Cc", False, True) and not before("~ +$")
->> \1-les
# S’il s’agit d’un impératif, mettez un trait d’union.|http://66.46.185.79/bdl/gabarit_bdl.asp?id=4206
TEST: {{chante les}} avec conviction
TEST: Prenez les 5 ou 6 revues
__[i]/imp(imp_union_le_la_leur)__
(?<![’~])({w_2}) (l(?:e(?:ur|)|a))(?! plus| moins| mieux| peu| plupart| trop| très| une?) @@0,$
(?<!’)({w_2}) (l(?:e(?:ur|)|a))(?! plus| moins| mieux| peu| plupart| trop| très| une?) @@0,$
<<- morphex(\1, ":E", ":[GM]") and morphex(word(1), ":", ":(?:N|A|Q|Y|MP|H|T)", True) and morph(word(-1), ":Cc", False, True) and not before("~ +$")
->> \1-\2
# S’il s’agit d’un impératif, mettez un trait d’union.|http://66.46.185.79/bdl/gabarit_bdl.asp?id=4206
TEST: {{Prends le}} avec toi.
TEST: {{Dites leur}} que nous sommes là.
TEST: un sujet si extrêmement politique et polémique lui a donné un accès
|