Skip to content

Commit

Permalink
[ca] Improve disambiguation: verbs primera/tercera persona
Browse files Browse the repository at this point in the history
  • Loading branch information
jaumeortola committed Dec 20, 2013
1 parent 410e8cf commit 8d79dd2
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9846,6 +9846,33 @@ Copyright (C) 2012 Jaume Ortolà i Font
<disambig action="filter" postag="V.[^M].*"/>
</rule>
</rulegroup>
<rulegroup id="primera_tercera_persona" name="verb primera o tercera persona">
<rule>
<pattern>
<token regexp="yes">es|se|s'</token>
<marker>
<and>
<token postag="V...1S.." postag_regexp="yes"/>
<token postag="V...3S.." postag_regexp="yes"/>
</and>
</marker>
</pattern>
<disambig action="filter" postag="....[^1]...|_GV_"/>
</rule>
<rule>
<pattern>
<token regexp="yes">se|s'</token>
<token postag="P0.{6}|PP3CN000|PP3NN000|PP3..A00|PP3CP000|PP3CSD00|PP[12]C[SP]000" postag_regexp="yes"/>
<marker>
<and>
<token postag="V...1S.." postag_regexp="yes"/>
<token postag="V...3S.." postag_regexp="yes"/>
</and>
</marker>
</pattern>
<disambig action="filter" postag="....[^1]...|_GV_"/>
</rule>
</rulegroup>
<rulegroup id="HAC_ASPIRADA" name="hac aspirada inicial">
<!-- <rule>
<pattern>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23157,6 +23157,7 @@ $Id$
<suggestion>tot i <match no="3" include_skipped="all"/> <match no="4" postag="(V.)S(.*)." postag_regexp="yes" postag_replace="$1I$2."/></suggestion>
<short>Error de sintaxi</short>
<example type="incorrect" correction="Encara que algunes siguin|Tot i que algunes són"><marker>Tot i que algunes siguin</marker> diferents.</example>
<example type="incorrect" correction="Encara que se'l consideri|Tot i que se'l considera"><marker>Tot i que se'l consideri</marker> així.</example>
<example type="correct">Tot i que són diferents</example>
</rule>
<rule id="PER_BE_QUE_SUBJUNTIU" name="per bé que + *subjuntiu/indicatiu">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public void testRule() throws IOException {
assertCorrect("la senyera s'ha de baixar");
assertCorrect("Es van témer assalts a altres edificis de la CNT ");
assertCorrect("que Joan em dugués el mocador");
assertCorrect("que Joan es dugués el mocador"); // dubtós
//assertCorrect("que Joan es dugués el mocador"); // dubtós
assertCorrect("em duràs un mocador de seda del teu color");
assertCorrect("El va deixar per a dedicar-se a la música");
assertCorrect("Hermes s'encarregava de dur les ànimes que acabaven de morir a l'Inframón");
Expand Down

0 comments on commit 8d79dd2

Please sign in to comment.