Skip to content

Commit

Permalink
[pt] enable rules, add disambiguation rule for "tão", make TOMAR_ASSU…
Browse files Browse the repository at this point in the history
…MIR goal specific
  • Loading branch information
susanaboatto committed Sep 19, 2023
1 parent f204fcd commit fb3b88d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,16 @@
</disambig>
</rule>
</rulegroup>

<rule id="TAO_ADV" name="rare POS tags">
<pattern>
<token postag="V.+" regexp="yes"/>
<marker>
<token>tão</token>
</marker>
</pattern>
<disambig action="remove" postag="V.*"/>
<example type="untouched">Ela ficou tão bonita!</example>
</rule>
<rulegroup id="RARE_POS" name="rare POS tags">
<rule>
<antipattern>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30197,7 +30197,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
<example correction="há">Namoro um cara <marker>a</marker> quase nove meses.</example>
<example correction="há">Eu conheci Isabella <marker>a</marker> alguns anos</example>
</rule>
<rule default="temp_off">
<rule>
<pattern>
<token regexp="yes">daqui|dali</token>
<marker>
Expand Down Expand Up @@ -33973,7 +33973,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
<example correction="aderência">A <marker>adesão</marker> do pneu é boa.</example>
</rule>

<rule id='EMIGRAR_DE' name="Confusão: Emigrar + de" default="temp_off">
<rule id='EMIGRAR_DE' name="Confusão: Emigrar + de">
<pattern>
<token inflected='yes'>emigrar</token>
<token regexp='yes'>pa?ra</token>
Expand All @@ -33983,7 +33983,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
<example correction="imigraram para">Muitos <marker>emigraram para</marker> a França nos anos 60.</example>
</rule>

<rule id='IMIGRAR_PARA' name="Confusão: Imigrar + para" default="temp_off">
<rule id='IMIGRAR_PARA' name="Confusão: Imigrar + para">
<pattern>
<token inflected='yes'>imigrar</token>
<token postag="SPS.+" postag_regexp="yes" regexp='yes'>d.*</token>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8314,7 +8314,7 @@ USA
</category>
<category id='ACADEMIC' name='Linguagem acadêmica' type='style' tone_tags="academic">

<rule id='TOMAR_ASSUMIR' name="[Universitário][Científico] V. Tomar → V. Assumir" tone_tags="academic">
<rule id='TOMAR_ASSUMIR' name="[Universitário][Científico] V. Tomar → V. Assumir" tone_tags="academic" is_goal_specific="true">
<pattern>
<token postag='SENT_START|AQ.+|NC.+|NP.+|CS|CC' postag_regexp='yes'/>
<marker>
Expand Down

0 comments on commit fb3b88d

Please sign in to comment.