Skip to content

Commit

Permalink
[pt] Enable working ACCENTUATED_PARONYMS_DA rules (#9016)
Browse files Browse the repository at this point in the history
- keep rule 2 as `temp_off`, but I've added an AP that should fix it;
 - for rule 6, results seem encouraging: https://regression.languagetoolplus.com/via-http/2023-07-21/pt-BR_full/result_grammar_ACCENTUATED_PARONYMS_DA%5B6%5D.html
  • Loading branch information
p-goulart authored Jul 24, 2023
1 parent 5588a2a commit e1e45bd
Showing 1 changed file with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21585,7 +21585,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
<token spacebefore="no">da</token>
<example>Ela é lin-da!</example>
</antipattern>
<rule>
<rule> <!-- 1 -->
<pattern>
<marker>
<token regexp='yes'>das?</token>
Expand All @@ -21599,7 +21599,12 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
<example correction="dá!|da">Assim não <marker>da!</marker></example>
<example>ananaí-da-amazônia</example>
</rule>
<rule default="temp_off">
<rule default="temp_off"> <!-- 2 -->
<antipattern>
<token case_sensitive="yes">da</token>
<token regexp="yes" case_sensitive="yes">\p{Lu}\p{Ll}+</token>
<example>Vi alguém da Direito.</example>
</antipattern>
<pattern>
<marker>
<token>da</token>
Expand All @@ -21613,7 +21618,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
<example correction="dá">Aí não <marker>da</marker> certo.</example>
<example correction="dá">Isso não lhes <marker>da</marker> direito de perguntar.</example>
</rule>
<rule default="temp_off">
<rule> <!-- 3 -->
<pattern>
<token regexp="yes">el[ea]|não</token>
<marker>
Expand All @@ -21630,7 +21635,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
<example>O nível da importância que eu percebi era alto.</example>
<example>O fim da aula chegou cedo.</example>
</rule>
<rule default="temp_off">
<rule> <!-- 4 -->
<pattern>
<token>se</token>
<marker>
Expand All @@ -21642,7 +21647,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
<suggestion>dá</suggestion>
<example correction="dá">Ela não se <marker>da</marker> conta.</example>
</rule>
<rule default="temp_off">
<rule> <!-- 5 -->
<pattern>
<marker>
<token>da</token>
Expand All @@ -21656,7 +21661,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
</rule>
<!-- This rule has potential to be destructive, so we'll keep it separate from the others for now and -->
<!-- see how it performs. -->
<rule default="temp_off">
<rule> <!-- 6 -->
<pattern>
<token regexp="yes">
[mst]e|[nv]os|lhes?
Expand Down

0 comments on commit e1e45bd

Please sign in to comment.