Skip to content
Permalink
Browse files

[it] fix false alarms

  • Loading branch information...
jaumeortola committed Sep 10, 2019
1 parent 0d40533 commit 0dfc90c21a4156e32419323ad070fcfc5f50e8b4
@@ -10,10 +10,10 @@ Copyright © 2013 Markus Brenneis, Daniel Naber, Jan Schreiber

<unification feature="number">
<equivalence type="sg">
<token postag="(NOUN.*s)|(ADJ.*\+s)" postag_regexp="yes"/>
<token postag="NOUN.*s|ADJ.*\+s|VER:.*\+s|PRO\-.*\-S" postag_regexp="yes"/>
</equivalence>
<equivalence type="pl">
<token postag="(NOUN.*p)|(ADJ.*\+p)" postag_regexp="yes"/>
<token postag="NOUN.*p|ADJ.*\+p|VER:.*\+p|PRO\-.*\-P" postag_regexp="yes"/>
</equivalence>
</unification>

@@ -26,6 +26,18 @@ Copyright © 2013 Markus Brenneis, Daniel Naber, Jan Schreiber
</equivalence>
</unification>

<unification feature="persona">
<equivalence type="first">
<token postag=".*[-\+]1[-\+].*" postag_regexp="yes"></token>
</equivalence>
<equivalence type="second">
<token postag=".*[-\+]2[-\+].*" postag_regexp="yes"></token>
</equivalence>
<equivalence type="third">
<token postag=".*[-\+]3[-\+].*" postag_regexp="yes"></token>
</equivalence>
</unification>

<!-- ============================================================================================================== -->
<!-- Adjective Noun phrases unification -->
<!-- ============================================================================================================== -->
@@ -42,5 +54,33 @@ Copyright © 2013 Markus Brenneis, Daniel Naber, Jan Schreiber
</pattern>
<disambig action="unify"/>
</rule>

<rulegroup name="IO_VERB" id="io + verb">
<rule>
<pattern>
<marker>
<unify>
<feature id="number"/><feature id="persona"/>
<token postag="PRO-PERS-[123].*" postag_regexp="yes"></token>
<token postag="VER:.*" postag_regexp="yes"></token>
</unify>
</marker>
</pattern>
<disambig action="unify"/>
</rule>
<rule>
<pattern>
<marker>
<unify>
<feature id="number"/><feature id="persona"/>
<token postag="PRO-PERS-[123].*" postag_regexp="yes"></token>
<unify-ignore><token postag="PRO-PERS-CLI.*" postag_regexp="yes"/></unify-ignore>
<token postag="VER:.*" postag_regexp="yes"></token>
</unify>
</marker>
</pattern>
<disambig action="unify"/>
</rule>
</rulegroup>

</rules>
@@ -183,14 +183,16 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
<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-F.s)|(ADJ.*\+f\+s)|(NOUN-M.p)|(ADJ.*\+m\+p)(ADV)" postag_regexp="yes"/>
<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>
@@ -212,6 +214,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
</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>
@@ -1592,20 +1595,22 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
<!-- "a" + un participio passato -->
<pattern>
<token>a</token>
<token postag="VER:part.+past.*" postag_regexp="yes"/>
<token postag="VER:part.+past.*" postag_regexp="yes"><exception>portata</exception></token>
</pattern>
<message>Forse volevi dire <suggestion>ha <match no="2"/></suggestion>?</message>
<example correction="ha fatto">La mamma <marker>a fatto</marker> la spesa.</example>
<example>Tutte le informazioni del mondo a portata di mano</example>
</rule>
<rule>
<!-- "a" + un sostantivo plurale -->
<pattern>
<token>a</token>
<token postag="NOUN.+p" postag_regexp="yes"/>
<token postag="NOUN.+p" postag_regexp="yes"><exception postag="NOUN.*s" postag_regexp="yes"/></token>
</pattern>
<message>Forse volevi dire <suggestion>ha <match no="2"/></suggestion>?</message>
<example correction="ha soldi">Piero <marker>a soldi</marker> con sé?.</example>
<example>Piero <marker>ha soldi</marker> con se?.</example>
<example>Di esempi ce ne sono a volontà.</example>
</rule>
<rule default="off" name="suggerisci sempre lo scambio di 'a' con 'ha'" id="ER_01_001a">
<pattern>

0 comments on commit 0dfc90c

Please sign in to comment.
You can’t perform that action at this time.