-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Expand file tree
/
Copy pathgrammar.xml
More file actions
2199 lines (2148 loc) · 116 KB
/
Copy pathgrammar.xml
File metadata and controls
2199 lines (2148 loc) · 116 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../../../../../../../../../languagetool-core/src/main/resources/org/languagetool/rules/print.xsl" title="Pretty print" ?>
<?xml-stylesheet type="text/css" href="../../../../../../../../../languagetool-core/src/main/resources/org/languagetool/rules/rules.css" title="Easy editing stylesheet" ?>
<!--
Italian Grammar and Typo Rules for LanguageTool
Copyright (C) 2006 Marcin Miłkowski
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
-->
<!--
================================================================================
Italian Grammar and Style Rules for Italian
Paolo Bianchini
================================================================================
Categorie delle regole
gruppi delle regole ID stato
============================================== =============== ===============
Grammatica - Aggettivi GR_01
uso corretto GR_01_01 add more
Grammatica - Articoli GR_02
uso corretto GR_02_001 ok
Grammatica - Concordanza GR_03
tra genere e numero GR_03_001 to do
tra soggetto e verbo GR_03_002 to do
Grammatica - Elisioni e troncamenti GR_04
apocopi vocaliche GR_04_001 add more
elisioni GR_04_002 add more
Grammatica - Frase GR_05
altri elementi GR_05_001 to do
struttura GR_05_002 add more
Grammatica - Maiuscole GR_06
uso corretto GR_06_001 not needed?
Grammatica - Preposizioni GR_07
uso corretto GR_07_001 add more
Grammatica - Pronomi GR_08
uso corretto GR_08_001 to do
Grammatica - Punteggiatura GR_09
asterischi di omissione (***) GR_09_001 ok
puntini di sospensione (...) GR_09_002 ok
ripetizioni GR_09_003 ok
sigle GR_09_004 ok
Grammatica - Verbi GR_10
concordanza tempi delle coordinate GR_10_001 ok
concordanza tempi delle subordinate GR_10_002 to do
uso del congiuntivo GR_10_003 add more
uso corretto GR_10_004 add more
Stile - Espressioni ST_01
arcaiche ST_01_001 to do
parlato ST_01_002 add more
pleonasmi ST_01_003 add more
regionali ST_01_004 add more
straniere ST_01_005 add more
uso errato ST_01_006 to do
Stile - Frase ST_02
frasi lunghe ST_02_001 ok
Stile - Leggibilità ST_03
eufoniche ST_03_001 ok
ripetizioni ST_03_002 ok
Stile - Numeri ST_04
in cifre se minori di 10 ST_04_001 ok
in cifre se minori di 100 ST_04_002 ok
Ulteriori errori comuni - avere ER_01 ok
Ulteriori errori comuni - ortografia ER_02 ok
================================================================================
-->
<!--
================================================================================
Fixes
======== ===================================================================================
PB001 Removed prepositions and two letter words in repetition check
PB002 Added some preposition usage checks (moved a gratis rule)
2957133 name/article concordance (un vs uno)
PB003 Added rule for checking the use of adverbs instead of adjectives
PB004 Added rule for attimino and momentino in stile-parlato
PB005 Fixed rule for dà to exclude "se da" pattern voted as useless
PB006 Fixed rule for false positives in past tense concordance GR_10_001
PB007 Added check for person in tense concordance GR_10_* overrides PB006
PB008 Added rules to check the use of "congiuntivo"
PB009 Created uso corretto under verbs and added adire vie legali
PB010 Reworked repetition rule ST_03_002
PB011 Reworked rule GR_04_002 exteneded to all words ending with à|è|é|ì|ò|ù
PB012 Added exception for article of the word "dei"
3609558 False positive in rule ER_02_002 'al'-'la'
3610220 False positive in 'per lo meno' for rule GR_02_001 changed so that adv are skipped
3610360 False positive in dates for rule ST_04_001 fixes also 3611066
3610289 False positive il artice for word "Signore"
182 False positive in 'ai peccati' suggests 'hai'
181 Don't apply word repetition rule on 'via via' and 'così così'
180 Fix some false positives in al for la
PB013 Added ma però rule
PB014 We don't need the skip in article rules since we are unifying adj and noun
======== ==================================================================================
-->
<!DOCTYPE rules [
<!ENTITY days_week "domenica|giovedì|lunedì|martedì|mercoledì|sabato|venerdì">
<!ENTITY days_week_abr "do|gi|lu|ma|me|sa|ve">
<!ENTITY months_year "gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre">
<!ENTITY months_year_abr "gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic">
]>
<rules lang="it" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../../../../languagetool-core/src/main/resources/org/languagetool/rules/rules.xsd">
<!-- GRAMMATICA AGGETTIVI - GR_01 -->
<category id="CAT1" name="Grammatica - Aggettivi">
<rulegroup name="uso corretto" id="GR_01_001" default="off">
<!-- PB003 + -->
<!-- meglio -->
<rule>
<pattern>
<token>meglio</token>
<token postag="(NOUN-M.s)|(NOUN-F.s)" postag_regexp="yes"/>
</pattern>
<message>Non utilizzare un avverbio in luogo di un aggettivo: <suggestion><match no="2"/> migliore</suggestion>.</message>
<example correction="occasione migliore">Bisogna cogliere la <marker>meglio occasione</marker>.</example>
<example>Bisogna cogliere l'<marker>occasione migliore</marker>.</example>
</rule>
<rule>
<pattern>
<token>meglio</token>
<token postag="(NOUN-M.p)|(NOUN-F.p)" postag_regexp="yes"/>
</pattern>
<message>Non utilizzare un avverbio in luogo di un aggettivo: <suggestion><match no="2"/> migliori</suggestion>.</message>
<example correction="occasioni migliori">Bisogna cogliere le <marker>meglio occasioni</marker>.</example>
</rule>
<!-- peggio -->
<rule>
<pattern>
<token>peggio</token>
<token postag="(NOUN-M.s)|(NOUN-F.s)" postag_regexp="yes"/>
</pattern>
<message>Non utilizzare un avverbio in luogo di un aggettivo: <suggestion><match no="2"/> peggiore</suggestion>.</message>
<example correction="figura peggiore">Evitiamo di fare una <marker>peggio figura</marker>.</example>
</rule>
<rule>
<pattern>
<token>peggio</token>
<token postag="(NOUN-M.p)|(NOUN-F.p)" postag_regexp="yes"/>
</pattern>
<message>Non utilizzare un avverbio in luogo di un aggettivo: <suggestion><match no="2"/> peggiori</suggestion>.</message>
<example correction="figure peggiori">Evitiamo di fare delle <marker>peggio figure</marker>.</example>
</rule>
<!-- PB003 - -->
</rulegroup>
</category>
<!-- GRAMMATICA ARTICOLI - GR_02 -->
<category id="CAT2" name="Grammatica - Articoli">
<rulegroup name="uso corretto" id="GR_02_001" default="off">
<!-- Il/la candidato/a ideale ha: -->
<antipattern>
<token regexp="yes">il|lo|la|un|uno|una</token>
<token>/</token>
<token regexp="yes">il|lo|la|un|uno|una</token>
<token postag="(NOUN-M.s)|(NOUN-F.s)" postag_regexp="yes"/>
<token>/</token>
<token regexp="yes">[aoe]</token>
</antipattern>
<!-- la -->
<rule>
<pattern>
<!-- PB014 marker><token skip="1" regexp="yes">il|lo|i|gli|le</token></marker -->
<marker><token regexp="yes">il|lo|i|gli|le</token></marker>
<token postag="(NOUN-F.s)|(ADJ.*\+f\+s)" postag_regexp="yes"><exception postag="(NOUN-F.p)|(ADJ.*\+f\+p)|(NOUN-M.s)|(ADJ.*\+m\+s)|(ADV)" postag_regexp="yes"/></token>
</pattern>
<message>L'articolo non concorda, usare: <suggestion>la</suggestion>.</message>
<example correction="la">Vidi <marker>il</marker> mucca pascolare nel campo.</example>
</rule>
<!-- le -->
<rule>
<pattern>
<!-- PB014 marker><token skip="1" regexp="yes">il|lo|i|gli|la</token></marker -->
<marker><token regexp="yes">il|lo|i|gli|la</token></marker>
<token postag="(NOUN-F.p)|(ADJ.*\+f\+p)" postag_regexp="yes"><exception postag="(NOUN-[MF].s)|(ADJ.*\+f\+s)|(NOUN-M.p)|(ADJ.*\+m\+p)(ADV)" postag_regexp="yes"/>
<!-- 3610289 + -->
<exception regexp="yes">(?-i)Signore</exception>
<!-- 3610289 - -->
</token>
</pattern>
<message>L'articolo non concorda, usare: <suggestion>le</suggestion>.</message>
<example correction="le">Vidi <marker>il</marker> mucche pascolare nel campo.</example>
<example>il male è la specializzazione</example>
<example>il pioniere dei videogiochi</example>
</rule>
<!-- una -->
<rule>
<pattern>
<!-- PB014 marker><token skip="1" regexp="yes">un|uno</token></marker -->
<marker><token regexp="yes">un|uno</token></marker>
<token postag="(NOUN-F.s)|(ADJ.*\+f\+s)" postag_regexp="yes"><exception postag="(NOUN-F.p)|(ADJ.*\+f\+p)|(NOUN-M.s)|(ADJ.*\+m\+s)|(ADV)" postag_regexp="yes"/></token>
</pattern>
<message>L'articolo non concorda, usare: <suggestion>una</suggestion>.</message>
<example correction="una">Vidi <marker>un</marker> mucca pascolare nel campo.</example>
<example>Vidi <marker>una</marker> mucche pascolare nel campo.</example>
</rule>
<!-- il -->
<rule>
<pattern>
<!-- PB014 marker><token skip="1" regexp="yes">lo|la|i|gli|le</token></marker -->
<marker><token regexp="yes">lo|la|i|gli|le</token></marker>
<token postag="(NOUN-M.s)|(ADJ.*\+m\+s)" postag_regexp="yes" regexp="yes">[bcdfghlmnpqrstv][aeiou].*|[bcdfglmnqrtv][bcdfglmnpqrtv].*<exception postag="(NOUN-M.p)|(ADJ.*\+m\+p)|(NOUN-F.s)|(ADJ.*\+f\+s)|(ADV)" postag_regexp="yes"/></token>
</pattern>
<message>L'articolo non concorda, usare: <suggestion>il</suggestion>.</message>
<example correction="il">Quanto costa <marker>lo</marker> vino?</example>
<example>Io le ritrovo quando osservo</example>
</rule>
<!-- i -->
<rule>
<pattern>
<!-- PB014 marker><token skip="1" regexp="yes">lo|la|il|gli|le</token></marker -->
<marker><token regexp="yes">lo|la|il|gli|le</token></marker>
<token postag="(NOUN-M.p)|(ADJ.*\+m\+p)" postag_regexp="yes" regexp="yes">[bcdfghlmnpqrstv][aeiou].*|[bcdfglmnqrtv][bcdfglmnpqrtv].*<exception postag="(NOUN-M.s)|(ADJ.*\+m\+s)|(NOUN-F.p)|(ADJ.*\+f\+p)|(ADV)" postag_regexp="yes"/>
<!-- PB0012 + -->
<exception>dei</exception>
<!-- PB0012 - -->
</token>
</pattern>
<message>L'articolo non concorda, usare: <suggestion>i</suggestion>.</message>
<example correction="i">Hai fatto <marker>le</marker> compiti?</example>
</rule>
<!-- un -->
<rule>
<pattern>
<!-- PB014 marker><token skip="1" regexp="yes">uno|una</token></marker -->
<marker><token regexp="yes">uno|una</token></marker>
<token postag="(NOUN-M.s)|(ADJ.*\+m\+s)" postag_regexp="yes" regexp="yes">[bcdfghlmnpqrstv][aeiou].*|[bcdfghlmnqrtv][bcdfghlmnpqrtv].*<exception postag="(NOUN-M.p)|(ADJ.*\+m\+p)|(NOUN-F.s)|(ADJ.*\+f\+s)|(ADV)" postag_regexp="yes"/></token>
</pattern>
<message>L'articolo non concorda, usare: <suggestion>un</suggestion>.</message>
<example correction="un">Mi insegni <marker>uno</marker> trucco?</example>
</rule>
<!-- lo -->
<rule>
<pattern>
<!-- PB014 marker><token skip="1" regexp="yes">i|la|il|gli|le</token></marker -->
<marker><token regexp="yes">i|la|il|gli|le</token></marker>
<token postag="(NOUN-M.s)|(ADJ.*\+m\+s)" postag_regexp="yes" regexp="yes">[zx].*|s[bcdfghlmnpqrstv].*|p[ns].*|gn.*|[iy][aeiou].*<exception postag="(NOUN-M.p)|(ADJ.*\+m\+p)|(NOUN-F.s)|(ADJ.*\+f\+s)|(ADV)" postag_regexp="yes"/></token>
</pattern>
<message>L'articolo non concorda, usare: <suggestion>lo</suggestion>.</message>
<example correction="lo">Ho forato <marker>il</marker> pneumatico.</example>
<example>Hai forato <marker>lo</marker> pneumatico.</example>
</rule>
<!-- gli -->
<rule>
<pattern>
<!-- PB014 marker><token skip="1" regexp="yes">i|la|il|lo|le</token></marker -->
<marker><token regexp="yes">i|la|il|lo|le</token></marker>
<token postag="(NOUN-M.p)|(ADJ.*\+m\+p)" postag_regexp="yes" regexp="yes">[zx].*|s[bcdfghlmnpqrstv].*|p[ns].*|gn.*|[iy][aeiou].*<exception postag="(NOUN-M.s)|(ADJ.*\+m\+s)|(NOUN-F.p)|(ADJ.*\+f\+p)|(ADV)" postag_regexp="yes"/></token>
</pattern>
<message>L'articolo non concorda, usare: <suggestion>gli</suggestion>.</message>
<example correction="gli">Come raccontano <marker>i</marker> storici...</example>
</rule>
<!-- uno -->
<rule>
<pattern>
<!-- PB014 marker><token skip="1" regexp="yes">un|una</token></marker -->
<marker><token regexp="yes">un|una</token></marker>
<!-- 2957133 + -->
<!--
<token postag="NOUN-M.s" postag_regexp="yes" regexp="yes">[zx].*|s[bcdfghlmnpqrstv].*|p[ns].*|[gn].*|[iy][aeiou].*<exception postag="(NOUN-M.p)|(NOUN-F.s)" postag_regexp="yes"/></token>
-->
<token postag="(NOUN-M.s)|(ADJ.*\+m\+s)" postag_regexp="yes" regexp="yes">[zx].*|s[bcdfghlmnpqrstv].*|p[ns].*|gn.*|[iy][aeiou].*<exception postag="(NOUN-M.p)|(ADJ.*\+m\+p)|(NOUN-F.s)|(ADJ.*\+f\+s)|(ADV)" postag_regexp="yes"/></token>
<!-- 2957133 - -->
</pattern>
<message>L'articolo non concorda, usare: <suggestion>uno</suggestion>.</message>
<example correction="uno">Devi andare da <marker>un</marker> psicologo.</example>
</rule>
<!-- PB012 + -->
<!-- gli dei-->
<rule>
<pattern>
<marker><token regexp="yes">i|la|il|lo|le</token></marker>
<token>dei</token>
</pattern>
<message>L'articolo non concorda, usare: <suggestion>gli</suggestion>.</message>
<example correction="gli">Adoravano <marker>i</marker> dei del suono.</example>
</rule>
<!-- PB012 - -->
</rulegroup>
</category>
<!-- GRAMMATICA CONCORDANZA - GR_03 -->
<!-- category name="Grammatica - Concordanza"> -->
<!-- TO DO <rulegroup name="tra genere e numero" id="GR_03_001">
</rulegroup>
<rulegroup name="tra soggetto e verbo" id="GR_03_002">
</rulegroup>
</category> -->
<!-- GRAMMATICA ELSIONI E TRONCAMENTI - GR_04 -->
<category id="CAT3" name="Grammatica - Elisioni e troncamenti">
<rulegroup name="apocopi vocaliche" id="GR_04_001">
<!-- Che è -->
<rule>
<pattern>
<token>ch</token>
<token>'</token>
<token>è</token>
</pattern>
<message>Nell'italiano standard, la frase <suggestion>che è</suggestion> non è normalmente contratta.</message>
<example correction="che è">Per dimostrare <marker>ch'è</marker> impossibile.</example>
</rule>
<!-- Qual è -->
<rule>
<pattern case_sensitive="no">
<token>qual</token>
<token>'</token>
<token>è</token>
</pattern>
<message>L'apostrofo non è richiesto in quanto non si tratta di elisione: <suggestion>qual è</suggestion>.</message>
<example correction="qual è">Da professionista <marker>qual'è</marker>.</example>
</rule>
<!-- Un altro-->
<rule>
<antipattern>
<marker>
<token regexp="yes">['’]</token>
<token min="0" regexp="yes">[«"“]|assai</token>
<token postag=".*[:+-][Ff][:+-][Ss]" postag_regexp="yes"/>
</marker>
</antipattern>
<pattern>
<token regexp="yes">nessun|un|alcun|buon</token>
<token regexp="yes">['’]</token>
<token postag=".*[:+-][Mm][:+-][Ss]" postag_regexp="yes"></token>
</pattern>
<message>Non si usa l'apostrofo se la parola che segue è maschile.</message>
<suggestion>\1 \3</suggestion>
<url>http://www.treccani.it/enciclopedia/apostrofo_(La-grammatica-italiana)/</url>
<example correction="nessun altro">Solo noi possiamo farlo, e <marker>nessun'altro</marker>, e dobbiamo agire in modo molto rapido.</example>
<example>Tuttavia, a mio avviso, l'unica soluzione è lasciar decidere al popolo e a nessun altro!</example>
<example>Un’isola, alcun’amica, buon’anima.</example>
<example>Un'interprete.</example> <!--maschile e femminile-->
<example>un'«unghia»</example>
</rule>
</rulegroup>
<rulegroup name="Elisioni" id="GR_04_002">
<antipattern>
<token>'</token>
<token spacebefore="no"/>
<token spacebefore="no">'</token>
</antipattern>
<!-- togli togli di metti d' -->
<rule default="off">
<pattern>
<token>di</token>
<token regexp="yes">i.*</token>
</pattern>
<message>Si consiglia di sostituire la preposizione di con la forma apostrofata <suggestion>d'<match no="2"/></suggestion></message>
<example correction="d'informazioni">Ho bisogno <marker>di informazioni</marker>.</example>
</rule>
<!-- e' -->
<rule>
<pattern case_sensitive="yes">
<token>e</token>
<token spacebefore="no">'</token>
</pattern>
<message>Si suggerisce di non usare l'apostrofo per scrivere il verbo essere.</message>
<suggestion>è</suggestion>
<example correction="è">L'uva <marker>e'</marker> sul tavolo.</example>
</rule>
<!-- perche' -->
<rule>
<pattern>
<!-- PB011 + -->
<!-- token regexp="yes">perché|poiché|affinché|giacché|finché|altroché</token -->
<token regexp="yes">.*[àèéìòù]</token>
<!-- PB011 - -->
<token spacebefore="no">'</token>
</pattern>
<message>Togliere l'apostrofo in quanto la parola è già accentata.</message>
<suggestion><match no="1"/></suggestion>
<example correction="perché">Ve lo dico solo <marker>perché'</marker> mi siete simpatici.</example>
</rule>
<!-- E' -->
<rule>
<pattern case_sensitive="yes">
<token>E</token>
<token spacebefore="no">'</token>
</pattern>
<message>Si suggerisce di non usare l'apostrofo per il verbo essere.</message>
<suggestion>È</suggestion>
<example correction="È"><marker>E'</marker> un peccato!</example>
</rule>
<!-- da' -->
<rule>
<pattern>
<token>da</token>
<token spacebefore="no">'</token>
</pattern>
<message>Non utilizzare l'apostrofo per accentare.</message>
<suggestion>dà</suggestion>
<example correction="dà">Mi <marker>da'</marker> una mano per favore?</example>
</rule>
</rulegroup>
</category>
<!-- GRAMMATICA FRASE - GR_05 -->
<category id="CAT4" name="Grammatica - Frase">
<!-- TO DO <rulegroup name="altri elementi" id="GR_05_001">
</rulegroup> -->
<rulegroup name="struttura" id="GR_05_002" default="off">
<!-- non iniziare la frase con una congiunzione -->
<rule>
<pattern>
<token postag="SENT_START"/>
<marker>
<token postag="CON"/>
</marker>
</pattern>
<message>Si consiglia di non iniziare una frase con una congiunzione.</message>
<example correction=""><marker>E</marker> non si capisce il perché di tanta paura.</example>
<example><marker/>Non si capisce il perché di tanta paura.</example>
</rule>
</rulegroup>
</category>
<!-- GRAMMATICA MAIUSCOLE - GR_06
<category id="CATx" name="Grammatica - Maiuscole"> -->
<!-- TO DO <rulegroup name="uso corretto" id="GR_06_001">
</rulegroup>
</category> -->
<!-- GRAMMATICA PREPOSIZIONI - GR_07 -->
<category id="CAT5" name="Grammatica - Preposizioni">
<rulegroup id="ARTICOLATA_SOSTANTIVO" name="Concordanza preposizione articolata - sostantivo">
<antipattern>
<example>Il prodotto soddisfa degli standard di qualità molto elevati.</example>
<token regexp="yes">degli|agli|sugli|negli|dagli</token>
<token regexp="yes">standard</token>
</antipattern>
<antipattern>
<example>Abbiamo modificato alcuni colori della palette per migliorare il contrasto.</example>
<token postag='ARTPRE-F:s'/>
<token regexp="yes">palette</token>
</antipattern>
<rule>
<pattern>
<token postag='ARTPRE-M:p'/>
<token postag='NOUN-M:s'><exception postag="NOUN-M:p"/></token>
</pattern>
<message>La preposizione articolata non concorda con il sostantivo che la segue</message>
<example type="correct">Il libro <marker>degli amici</marker>.</example>
<example type="incorrect">Il libro <marker>degli amico</marker></example>
</rule>
<rule>
<pattern>
<token postag='ARTPRE-M:s'/>
<token postag='NOUN-M:p|NOUN-F:[sp]' postag_regexp="yes"><exception postag="NOUN-M:s|ADJ:pos\+m\+s" postag_regexp="yes"/></token>
</pattern>
<message>La preposizione articolata non concorda con il sostantivo che la segue</message>
<example type="correct">Il libro <marker>dell'amico amici</marker>.</example>
<example type="incorrect">Il libro <marker>dello amici</marker></example>
<example correction=""><marker>sul prodotti</marker></example>
<example correction=""><marker>nel terra</marker></example>
<example correction=""><marker>nel amica</marker></example>
<example correction=""><marker>nel amiche</marker></example>
<example>dal problema</example>
<example>nel panorama</example>
<example>sul pianeta</example>
<example>sul tema</example>
<example>del programma</example>
<example>dal verde</example>
<example>dal sistema</example>
<example>al cinema</example>
</rule>
<rule>
<pattern>
<token postag='ARTPRE-F:p'/>
<token postag='NOUN-F:s'><exception postag="NOUN-F:p"/></token>
</pattern>
<message>La preposizione articolata non concorda con il sostantivo che la segue</message>
<example type="correct">Il libro <marker>dell'amica</marker>.</example>
<example type="incorrect">Il libro <marker>delle amica</marker></example>
</rule>
<rule>
<pattern>
<token postag='ARTPRE-F:s'/>
<token postag='NOUN-F:p'><exception postag="NOUN-F:s"/></token>
</pattern>
<message>La preposizione articolata non concorda con il sostantivo che la segue</message>
<example type="correct">Il libro <marker>dell'amica</marker>.</example>
<example type="incorrect">Il libro <marker>della amiche</marker></example>
</rule>
</rulegroup>
<rulegroup name="uso corretto" id="GR_07_001">
<!-- da -->
<rule>
<antipattern><!-- Se lo sai dà un pochino fastidio -->
<token skip="3">dà</token>
<token regexp="yes">fastidio|ragione|notizia|fiducia|vita|spazio|voce</token>
</antipattern>
<antipattern><!-- Chi vuole dà l'elemosina -->
<token skip="2" postag=".*WH.*" postag_regexp="yes"/>
<token postag_regexp="yes" postag="VER:ind.*"/>
</antipattern>
<antipattern><!-- Chi lo vede dà per scontato che vincerà -->
<token>dà</token>
<token postag="PRE"/>
</antipattern>
<pattern>
<token postag_regexp="yes" postag="VER:ind.*"><exception postag="(N.*)|(ADJ.*)" postag_regexp="yes"/></token>
<marker>
<token>dà</token>
</marker>
</pattern>
<message>Probabilmente si scrive senza accento: <suggestion>da</suggestion>.</message>
<example correction="da">Vengo <marker>dà</marker> Roma.</example>
<example correction="da">È <marker>dà</marker> due ore che ti aspetto.</example>
<example>L'opposizione russa dà voce alle sue inquietudini.</example>
<example>Sentirsi giudicati da chi non ti conosce dà un pochino fastidio.</example>
<example>Chi vuole dà l'elemosina.</example>
</rule>
<!-- PB002+ -->
<!-- assolvere a... -->
<rule>
<pattern>
<token regexp="yes">assolv.*|assols.*|assolt.*</token>
<marker>
<token>a</token>
</marker>
</pattern>
<message>Non si assolve a qualcosa, si assolve qualcosa. Rimuovere a <suggestion/></message>
<example correction="">Assolvere <marker>a</marker> un compito.</example>
<example>Assolvere<marker/> un compito.</example>
</rule>
<!-- interessarsi a... -->
<rule>
<pattern>
<token regexp="yes">mi|ti|si|ci|vi</token>
<token regexp="yes">interes.*</token>
<marker>
<token regexp="yes">a|al|ai</token>
</marker>
</pattern>
<message>Non ci si interessa a ma ci si interessa <suggestion>di</suggestion>...</message>
<example correction="di">Mi interesso <marker>al</marker> calcio.</example>
</rule>
<rule>
<pattern>
<token regexp="yes">interessar[mtscv]i</token>
<marker>
<token regexp="yes">a|al|ai</token>
</marker>
</pattern>
<message>Non ci si interessa a ma ci si interessa <suggestion>di</suggestion>...</message>
<example correction="di">Interessarsi <marker>al</marker> calcio.</example>
</rule>
<!-- promuovere a... -->
<rule>
<pattern>
<token regexp="yes">promuov.*|promoss.*</token>
<marker>
<token>a</token>
</marker>
</pattern>
<message>Non si promuove a qualcosa, si promuove qualcosa. Rimuovere a <suggestion/></message>
<example correction="">Fui promosso <marker>a</marker> direttore.</example>
<example>Fui promosso<marker/> direttore.</example>
</rule>
<!-- insistere a... -->
<rule>
<pattern>
<token regexp="yes">insist.*</token>
<marker>
<token>a</token>
</marker>
</pattern>
<message>Non si insiste a, si insiste <suggestion>nel</suggestion></message>
<example correction="nel">Insisto <marker>a</marker> dire che è così.</example>
</rule>
<!-- a gratis -->
<rule>
<pattern case_sensitive="no">
<token>a</token>
<token>gratis</token>
</pattern>
<message>Si scrive <suggestion>gratis</suggestion> (senza la preposizione).</message>
<example correction="gratis">Ovviamente... è tutto <marker>a gratis</marker>!</example>
</rule>
<!-- a nome Giuliano -->
<rule>
<pattern>
<marker>
<token>a</token>
<token>nome</token>
</marker>
<token postag="NPR"/>
</pattern>
<message>La forma corretta è <suggestion>di nome</suggestion> e non a nome.</message>
<example correction="di nome">Una ragazza <marker>a nome</marker> Francesca.</example>
</rule>
<!-- biglietto da visita -->
<rule>
<pattern>
<token regexp="yes">bigliett.*</token>
<marker>
<token>di</token>
</marker>
<token>visita</token>
</pattern>
<message>Biglietto <suggestion>da</suggestion> visita</message>
<example correction="da">Ecco il mio biglietto <marker>di</marker> visita.</example>
</rule>
<!-- PB002- -->
</rulegroup>
</category>
<!-- GRAMMATICA PRONOMI - GR_08
<category id="CATx" name="Grammatica - Pronomi"> -->
<!-- TO DO <rulegroup name="uso corretto" id="GR_08_001">
</rulegroup>
</category> -->
<!-- GRAMMATICA PUNTEGGIATURA - GR_09 -->
<category id="CAT6" name="Grammatica - Punteggiatura">
<rulegroup name="asterischi di omissione (***)" id="GR_09_001">
<rule>
<pattern>
<marker>
<token spacebefore="yes" regexp="no">*</token>
<token regexp="no" spacebefore="no">*</token>
</marker>
<token><exception regexp="no">*</exception></token>
</pattern>
<message>L’asterisco si usa per un’omissione nel numero di tre consecutivi: <suggestion>***</suggestion>.</message>
<example correction="***">Preferisco non pensare a quel <marker>**</marker>.</example>
</rule>
<rule>
<pattern>
<token spacebefore="yes" regexp="no">*</token>
<token postag="SENT_END" regexp="no" spacebefore="no">*</token>
</pattern>
<message>L’asterisco si usa per un’omissione nel numero di tre consecutivi: <suggestion>***</suggestion>.</message>
<example correction="***">Preferisco non pensare a quel <marker>**</marker></example>
</rule>
<rule>
<pattern>
<marker>
<token spacebefore="yes" regexp="no">*</token>
<token regexp="no" spacebefore="no">*</token>
<token regexp="no" spacebefore="no">*</token>
<token regexp="no" spacebefore="no">*</token>
</marker>
<token><exception regexp="no">*</exception></token>
</pattern>
<message>L’asterisco si usa per un’omissione nel numero di tre consecutivi: <suggestion>***</suggestion>.</message>
<example correction="***">Preferisco non pensare a quel <marker>****</marker>.</example>
</rule>
<rule>
<pattern>
<token spacebefore="yes" regexp="no">*</token>
<token regexp="no" spacebefore="no">*</token>
<token regexp="no" spacebefore="no">*</token>
<token postag="SENT_END" regexp="no" spacebefore="no">*</token>
</pattern>
<message>L’asterisco si usa per un’omissione nel numero di tre consecutivi: <suggestion>***</suggestion>.</message>
<example correction="***">Preferisco non pensare a quel <marker>****</marker></example>
</rule>
<rule>
<pattern>
<token spacebefore="yes" regexp="no">*</token>
<token regexp="no" spacebefore="no">*</token>
<token regexp="no" spacebefore="no">*</token>
<token regexp="no" spacebefore="no">*</token>
<token postag="SENT_END" regexp="no" spacebefore="no">*</token>
</pattern>
<message>L’asterisco si usa per un’omissione nel numero di tre consecutivi: <suggestion>***</suggestion>.</message>
<example correction="***">Preferisco non pensare a quel <marker>*****</marker></example>
</rule>
</rulegroup>
<rulegroup name="puntini di sospensione (...)" id="GR_09_002">
<rule>
<pattern>
<token>.</token>
<token>.</token>
<token>.</token>
<token>.</token>
</pattern>
<message>I puntini di sospensione si usano sempre nel numero di tre, per indicare la sospensione del discorso: <suggestion>...</suggestion>.</message>
<example correction="...">Lasciami pensare<marker>....</marker></example>
</rule>
</rulegroup>
<rulegroup name="ripetizioni" id="GR_09_003">
<!-- Punto esclamativo ripetuto (!) -->
<rule>
<pattern>
<token>!</token>
<token>!</token>
</pattern>
<message>Se ne mette uno solo: <suggestion>!</suggestion>.</message>
<example correction="!">Fammi parlare<marker>!!</marker></example>
</rule>
<!-- Punto interrogativo ripetuto (?) -->
<rule>
<pattern>
<token>?</token>
<token>?</token>
</pattern>
<message>Se ne mette uno solo: <suggestion>?</suggestion>.</message>
<example correction="?">Quando vieni<marker>??</marker></example>
</rule>
</rulegroup>
<rulegroup name="sigle" id="GR_09_004">
<!-- S.p.A. -->
<rule>
<pattern>
<token>spa</token>
</pattern>
<message>Utilizzare la sigla corretta: <suggestion>S.p.A.</suggestion>.</message>
<example correction="S.p.A.">La Nomedifantasia <marker>spa</marker> offre nuovi servizi.</example>
</rule>
<!-- does not work due to sentence splitting
<rule>
<pattern case_sensitive="yes">
<token>S</token>
<token>.</token>
<token>P</token>
<token>.</token>
<token>A</token>
<token>.</token>
</pattern>
<message>Utilizzare la sigla corretta: <suggestion>S.p.A.</suggestion>.</message>
<example correction="S.p.A.">La Nomedifantasia <marker>S.P.A.</marker> offre nuovi servizi.</example>
<example>La Nomedifantasia <marker>S.p.A.</marker> offre nuovi servizi.</example>
</rule>
-->
<rule>
<pattern case_sensitive="yes">
<token>S</token>
<token>.</token>
<token>p</token>
<token>.</token>
<token>a</token>
<token>.</token>
</pattern>
<message>Utilizzare la sigla corretta: <suggestion>S.p.A.</suggestion>.</message>
<example correction="S.p.A.">La Nomedifantasia <marker>S.p.a.</marker> offre nuovi servizi.</example>
</rule>
<!-- S.R.L. -->
<rule>
<pattern>
<token>srl</token>
</pattern>
<message>Utilizzare la sigla corretta: <suggestion>S.R.L.</suggestion>.</message>
<example correction="S.R.L.">La Nomedifantasia <marker>srl</marker> offre nuovi servizi.</example>
</rule>
<!-- does not work due to sentence splitting
<rule>
<pattern case_sensitive="yes">
<token>S</token>
<token>.</token>
<token>R</token>
<token>.</token>
<token>l</token>
<token>.</token>
</pattern>
<message>Utilizzare la sigla corretta: <suggestion>S.R.L.</suggestion>.</message>
<example correction="S.R.L.">La Nomedifantasia <marker>S.R.l.</marker> offre nuovi servizi.</example>
<example>La Nomedifantasia <marker>S.R.L.</marker> offre nuovi servizi.</example>
</rule>
-->
<rule>
<pattern case_sensitive="yes">
<token>S</token>
<token>.</token>
<token>r</token>
<token>.</token>
<token>l</token>
<token>.</token>
</pattern>
<message>Utilizzare la sigla corretta: <suggestion>S.R.L.</suggestion>.</message>
<example correction="S.R.L.">La Nomedifantasia <marker>S.r.l.</marker> offre nuovi servizi.</example>
</rule>
<!-- S.N.C. -->
<!-- does not work due to sentence splitting
<rule>
<pattern>
<token>snc</token>
</pattern>
<message>Utilizzare la sigla corretta: <suggestion>S.N.C.</suggestion>.</message>
<example correction="S.N.C.">La Nomedifantasia <marker>snc</marker> offre nuovi servizi.</example>
<example>La Nomedifantasia <marker>S.R.L.</marker> offre nuovi servizi.</example>
</rule>
-->
<!--does not work due to sentence splitting
<rule>
<pattern case_sensitive="yes">
<token>S</token>
<token>.</token>
<token>N</token>
<token>.</token>
<token>c</token>
<token>.</token>
</pattern>
<message>Utilizzare la sigla corretta: <suggestion>S.N.C.</suggestion>.</message>
<example correction="S.N.C.">La Nomedifantasia <marker>S.N.c.</marker> offre nuovi servizi.</example>
<example>La Nomedifantasia <marker>S.N.C.</marker> offre nuovi servizi.</example>
</rule>
<rule>
<pattern case_sensitive="yes">
<token>S</token>
<token>.</token>
<token>n</token>
<token>.</token>
<token>c</token>
<token>.</token>
</pattern>
<message>Utilizzare la sigla corretta: <suggestion>S.N.C.</suggestion>.</message>
<example correction="S.N.C.">La Nomedifantasia <marker>S.n.c.</marker> offre nuovi servizi.</example>
</rule>
-->
<!-- S.A.S. -->
<rule>
<pattern>
<token>sas</token>
</pattern>
<message>Utilizzare la sigla corretta: <suggestion>S.A.S.</suggestion>.</message>
<example correction="S.A.S.">La Nomedifantasia <marker>sas</marker> offre nuovi servizi.</example>
</rule>
<!-- does not work due to sentence splitting
<rule>
<pattern case_sensitive="yes">
<token>S</token>
<token>.</token>
<token>A</token>
<token>.</token>
<token>s</token>
<token>.</token>
</pattern>
<message>Utilizzare la sigla corretta: <suggestion>S.A.S.</suggestion>.</message>
<example correction="S.A.S.">La Nomedifantasia <marker>S.A.s.</marker> offre nuovi servizi.</example>
<example>La Nomedifantasia <marker>S.A.S.</marker> offre nuovi servizi.</example>
</rule>
<rule>
<pattern case_sensitive="yes">
<token>S</token>
<token>.</token>
<token>a</token>
<token>.</token>
<token>s</token>
<token>.</token>
</pattern>
<message>Utilizzare la sigla corretta: <suggestion>S.A.S.</suggestion>.</message>
<example correction="S.A.S.">La Nomedifantasia <marker>S.a.s.</marker> offre nuovi servizi.</example>
</rule>
-->
</rulegroup>
</category>
<!-- GRAMMATICA VERBI - GR_10 -->
<category id="CAT7" name="Grammatica - Verbi">
<rule id="DOPPIO_VERBO_AUSILIARE_TERZA_PERSONA" name="Doppio verbo ausiliare terza persona">
<pattern>
<token postag='AUX:ind+pres+3+p'/>
<token postag='AUX:ind+pres+3+p'/>
</pattern>
<message>La frase contiene un verbo ausiliare ripetuto</message>
<short>Verbo ausiliare ripetuto</short>
<example correction=''>non <marker>sono vengono</marker> preparate con le tecnologie e le infrastrutture adatte</example>
</rule>
<rulegroup name="concordanza tempi delle coordinate" id="GR_10_001" default="off">
<!-- PB007 + -->
<!-- IND PRESENTE -->
<rule>
<pattern>
<token skip="-1" postag="VER.ind.pres.1.*" postag_regexp="yes"><exception scope="previous" postag="(ART-F.*)|(ART-M.*)" postag_regexp="yes"/></token>
<token skip="-1" regexp="yes">e|o|ma</token>
<token postag="(VER.ind.past.1.*)|(VER.ind.impf.1.*)|(VER.ind.fut.1.*)" postag_regexp="yes"/>
</pattern>
<message>Controllare il tempo dei verbi utilizzati nella frase.</message>
<example correction="">Io <marker>navigo ma mi dirigevo</marker> nella direzione sbagliata.</example>
<example>Io <marker>navigo ma mi dirigo</marker> nella direzione sbagliata.</example>
</rule>
<rule>
<pattern>
<token skip="-1" postag="VER.ind.pres.2.*" postag_regexp="yes"><exception scope="previous" postag="(ART-F.*)|(ART-M.*)" postag_regexp="yes"/></token>
<token skip="-1" regexp="yes">e|o|ma</token>
<token postag="(VER.ind.past.2.*)|(VER.ind.impf.2.*)|(VER.ind.fut.2.*)" postag_regexp="yes"/>
</pattern>
<message>Controllare il tempo dei verbi utilizzati nella frase.</message>
<example correction="">Tu <marker>navighi ma ti dirigevi</marker> nella direzione sbagliata.</example>
<example>Tu <marker>navighi ma ti dirigi</marker> nella direzione sbagliata.</example>
</rule>
<rule>
<pattern>
<token skip="-1" postag="VER.ind.pres.3.*" postag_regexp="yes"><exception scope="previous" postag="(ART-F.*)|(ART-M.*)" postag_regexp="yes"/></token>
<token skip="-1" regexp="yes">e|o|ma</token>
<token postag="(VER.ind.past.3.*)|(VER.ind.impf.3.*)|(VER.ind.fut.3.*)" postag_regexp="yes"/>
</pattern>
<message>Controllare il tempo dei verbi utilizzati nella frase.</message>
<example correction="">La barca <marker>naviga ma si dirigeva</marker> nella direzione sbagliata.</example>
<example>La barca <marker>naviga ma si dirige</marker> nella direzione sbagliata.</example>
</rule>
<!-- IND FUTURO -->
<rule>
<pattern>
<token skip="-1" postag="VER.ind.fut.1.*" postag_regexp="yes"/>
<token skip="-1" regexp="yes">e|o|ma</token>
<token postag="(VER.ind.past.1.*)|(VER.ind.impf.1.*)|(VER.ind.pres.1.*)" postag_regexp="yes"><exception scope="previous" postag="(ART-F.*)|(ART-M.*)" postag_regexp="yes"/></token>
</pattern>
<message>Controllare il tempo dei verbi utilizzati nella frase.</message>
<example correction="">Questa notte <marker>camminerò nel buio e rischio</marker> di andare a sbattere contro una porta.</example>
<example>Questa notte <marker>camminerò nel buio e rischierò</marker> di andare a sbattere contro una porta.</example>
</rule>
<rule>
<pattern>
<token skip="-1" postag="VER.ind.fut.2.*" postag_regexp="yes"/>
<token skip="-1" regexp="yes">e|o|ma</token>
<token postag="(VER.ind.past.2.*)|(VER.ind.impf.2.*)|(VER.ind.pres.2.*)" postag_regexp="yes"><exception scope="previous" postag="(ART-F.*)|(ART-M.*)" postag_regexp="yes"/></token>
</pattern>
<message>Controllare il tempo dei verbi utilizzati nella frase.</message>
<example correction="">Questa notte <marker>camminerai nel buio e rischi</marker> di andare a sbattere contro una porta.</example>
<example>Questa notte <marker>camminerai nel buio e rischierai</marker> di andare a sbattere contro una porta.</example>
</rule>
<rule>
<pattern>
<token skip="-1" postag="VER.ind.fut.3.*" postag_regexp="yes"/>
<token skip="-1" regexp="yes">e|o|ma</token>
<token postag="(VER.ind.past.3.*)|(VER.ind.impf.3.*)|(VER.ind.pres.3.*)" postag_regexp="yes"><exception scope="previous" postag="(ART-F.*)|(ART-M.*)" postag_regexp="yes"/></token>
</pattern>
<message>Controllare il tempo dei verbi utilizzati nella frase.</message>
<example correction="">Questa notte <marker>camminerà nel buio e rischia</marker> di andare a sbattere contro una porta.</example>
<example>Questa notte <marker>camminerà nel buio e rischierà</marker> di andare a sbattere contro una porta.</example>
</rule>
<!-- IND IMPERFETTO -->
<rule>
<pattern>
<token skip="-1" postag="VER.ind.impf.1.*" postag_regexp="yes"/>
<token skip="-1" postag="CON"/>
<token postag="(VER.ind.fut.1.*)|(VER.ind.pres.1.*)" postag_regexp="yes"><exception scope="previous" postag="(ART-F.*)|(ART-M.*)" postag_regexp="yes"/></token>
</pattern>
<message>Controllare il tempo dei verbi utilizzati nella frase.</message>
<example correction="">Io <marker>aspettavo il tram e decido</marker> di telefonare.</example>
<example>Io <marker>aspettavo il tram e decidevo</marker> di telefonare.</example>
</rule>
<rule>
<pattern>
<token skip="-1" postag="VER.ind.impf.2.*" postag_regexp="yes"/>
<token skip="-1" postag="CON"/>
<token postag="(VER.ind.fut.2.*)|(VER.ind.pres.2.*)" postag_regexp="yes"><exception scope="previous" postag="(ART-F.*)|(ART-M.*)" postag_regexp="yes"/></token>
</pattern>
<message>Controllare il tempo dei verbi utilizzati nella frase.</message>
<example correction="">Tu <marker>aspettavi il tram e decidi</marker> di telefonare.</example>
<example>Tu <marker>aspettavi il tram e decidevi</marker> di telefonare.</example>
</rule>
<rule name="Indicativo Imperfetto 3 pers">
<pattern>
<token skip="-1" postag="VER.ind.impf.3.*" postag_regexp="yes"/>
<token skip="-1" postag="CON"/>
<token postag="(VER.ind.fut.3.*)|(VER.ind.pres.3.*)" postag_regexp="yes"><exception scope="previous" postag="(ART-F.*)|(ART-M.*)" postag_regexp="yes"/></token>
</pattern>
<message>Controllare il tempo dei verbi utilizzati nella frase.</message>
<example correction="">Clara <marker>aspettava il tram e decide</marker> di telefonare.</example>
<example>Clara <marker>aspettava il tram e decideva</marker> di telefonare.</example>
</rule>
<!-- IND PASSATO -->
<rule>
<pattern>
<token skip="-1" postag="VER.ind.past.1.*" postag_regexp="yes"/>
<token skip="-1" postag="CON"/>
<token postag="(VER.ind.fut.1.*)|(VER.ind.pres.1.*)" postag_regexp="yes"><exception scope="previous" postag="(ART-F.*)|(ART-M.*)" postag_regexp="yes"/></token>
</pattern>
<message>Controllare il tempo dei verbi utilizzati nella frase.</message>
<example correction="">Io <marker>aspettai il tram e decido</marker> di telefonare.</example>
<example>Io <marker>aspettai il tram e decisi</marker> di telefonare.</example>
</rule>
<rule>