Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pt] Improved rule ID:VERBO_SER_ÚTIL_PARA_SERVIR_PARA #10715

Merged
merged 3 commits into from
Jul 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,22 @@ USA
<category id="STYLE" name="[pt-PT] Regras de Estilo" type="style">


<rule id='VERBO_SER_ÚTIL_PARA_SERVIR_PARA' name="[pt-PT][Simplificar] V.Ser útil para → V.Servir para" type="style" default="temp_off">
<pattern>
<marker>
<token inflected='yes'>ser</token>
<token skip='1' regexp='yes'>út(il|eis)</token>
</marker>
<token>para</token>
<token postag='V.+' postag_regexp='yes'/>
</pattern>
<message>&simplify_msg;</message>
<suggestion><match no='1' postag='V.+' postag_regexp='yes'>servir</match></suggestion>
<example correction="serviu">Esta equação <marker>foi útil</marker> para ajudar a população.</example>
<example correction="serviu">Esta equação <marker>foi útil</marker> nomeadamente para ajudar a população.</example>
</rule>


<rule id='CONFUSÃO_CAIXA_EMBALAGEM' name="[pt-PT] Confusão: Caixa/embalagem" tone_tags="objective" default="temp_off">
<pattern>
<token skip='4' inflected='yes'>tomar</token>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16211,24 +16211,6 @@ USA
<example correction="sentir-me-ei">E <marker>passarei a sentir-me</marker> estrangeiro no meu próprio país.</example>
</rule>


<rule id='VERBO_SER_ÚTIL_PARA_SERVIR_PARA' name="[Simplificar] V.Ser útil para → V.Servir para" type="style">
<pattern>
<marker>
<token inflected='yes'>ser</token>
<token>útil</token>
</marker>
<token min="0" max="1" postag='RM' postag_regexp='no'/>
<token>para</token>
<token postag='V.+' postag_regexp='yes'/>
</pattern>
<message>&simplify_msg;</message>
<suggestion><match no='1' postag='V.+' postag_regexp='yes'>servir</match></suggestion>
<example correction="serviu">Esta equação <marker>foi útil</marker> para ajudar a população.</example>
<example correction="serviu">Esta equação <marker>foi útil</marker> nomeadamente para ajudar a população.</example>
</rule>


<rule id='TER_SIDO_PART_PASSADO_VERBO' name="[Simplificar] V.Ter + sido + V.Part.Pass. → V." type="style" tags='picky'>
<antipattern>
<token regexp='yes'>t[eê]m</token>
Expand Down