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-PT] Added AP to rule ID:PASSAR_TEMPO_DECORRER_TEMPO #9033

Merged
merged 3 commits into from
Jul 25, 2023
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 @@ -4579,21 +4579,8 @@ USA
</rule>


<!-- PASSARAM 10 MINUTOS decorreram 10 minutos -->
<rulegroup id='PASSAR_TEMPO_DECORRER_TEMPO' name="[pt-PT][Formal] 'passar' tempo → decorrer">
<!-- Created by Marco A.G.Pinto with Ricardo Joseh Lima suggestions, Portuguese rule 2023-03-11 (2-MAR-2023+) -->
<!--
Subrule1:
Dez minutos passaram desde o início do show. → Dez minutos decorreram desde o início do show.

Subrule2:
Passados os 30 dias tudo mudou. → Decorridos os 30 dias tudo mudou.
Passaram horas desde o início do show. → Decorreram horas desde o início do show.
-->
<!--
MARCOAGPINTO inserted global antipatterns for all subrules on top using the logic (2-MAR-2023+)
-->


<antipattern>
<token regexp='yes'>&expressoes_de_tempo_simples;
<exception scope='previous' postag_regexp='yes' postag='Z0.+'/>
Expand Down Expand Up @@ -4672,6 +4659,15 @@ USA
<example>Eu gosto de pescar; é uma maneira muito relaxante de passar o dia.</example>
</antipattern>

<antipattern>
<token inflected='yes'>passar</token>
<token postag='(SPS00:)?[DP][ADIPRT].+' postag_regexp='yes'/>
<token regexp='yes'>&expressoes_de_tempo_simples;</token>
<token postag='(SPS00:)?[DP][ADIPRT].+' postag_regexp='yes'/>
<token postag='V.+' postag_regexp='yes'/>
<example>Ela chega e passa o dia a gritar com o Rui.</example>
</antipattern>

<!-- Subrule1: -->
<rule>
<pattern>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11903,7 +11903,28 @@ USA
<example correction="Demorei|Levei|Estive"><marker>Perdi</marker> meses a escrever o livro.</example>
</rule>
</category>



<category id='SHORTEN_IT' name="Linguagem concisa" type="style">


<rule id='DAR_VALOR_VALORIZAR' name="Simplificar: Verbo 'dar' + valor → valorizar" default="temp_off">
<!-- IDEA shorten_it -->
<pattern>
<marker>
<token inflected='yes'>dar</token>
<token>valor</token>
<token regexp='yes'>às?|aos?</token>
</marker>
</pattern>
<message>&simplify_msg;</message>
<suggestion><match no='1' postag='V.+' postag_regexp='yes'>valorizar</match> <match no='3' postag='SPS00:DA0(..)0' postag_replace='DA0$10'>o</match></suggestion>
<example correction="valoriza a">Ele não <marker>dá valor à</marker> mulher.</example>
<example correction="valoriza o">Ele <marker>dá valor ao</marker> trabalho do Rui.</example>
</rule>


<!-- UM TAMANHO DÁ/SERVE PARA TODOS tamanho único -->
<rule id='ERRO_TRADUÇÃO_UM_TAMANHO_SERVE_DÁ_PARA_TODOS' name="[Erro tradução] 'um tamanho dá para todos' → 'tamanho único'">
<!-- IDEA shorten_it -->
Expand Down Expand Up @@ -12023,75 +12044,57 @@ USA
<example correction="aquilo no ecrã">Vê tudo <marker>aquilo que está no ecrã</marker>.</example>
</rule>

<!-- FAZER USO DE usar recorrer -->
<rulegroup id='FAZER_USO_DE-USAR-RECORRER' name="Fazer uso de > usar > recorrer" tags="picky">
<!-- Created by Marco A.G.Pinto, Portuguese rule - 2020-10-02 (2-JUL-2020+) -->

<rulegroup id='FAZER_USO_DE-USAR-RECORRER' name="Simplificar: Fazer uso de → usar/recorrer" tags="picky" default="temp_off">
<!-- IDEA shorten_it -->

<!-- DE -->
<rule>
<pattern>
<token inflected='yes'>fazer</token>
<token>uso</token>
<token>de</token>
</pattern>
<message>Substitua por:</message>
<message>&simplify_msg;</message>
<suggestion><match no='1' postag='V.+' postag_regexp='yes'>usar</match></suggestion>
<suggestion><match no='1' postag='V.+' postag_regexp='yes'>recorrer</match> a</suggestion>
<example correction="usar|recorrer a">Vamos <marker>fazer uso de</marker> simuladores.</example>
</rule>

<!-- DA -->
<!-- DA(S)/DO(S) -->
<rule>
<pattern>
<token inflected='yes'>fazer</token>
<token>uso</token>
<token>da</token>
<token regexp='yes'>d[ao]s?</token>
</pattern>
<message>Substitua por:</message>
<suggestion><match no='1' postag='V.+' postag_regexp='yes'>usar</match> a</suggestion>
<suggestion><match no='1' postag='V.+' postag_regexp='yes'>recorrer</match> à</suggestion>
<message>&simplify_msg;</message>
<suggestion><match no='1' postag='V.+' postag_regexp='yes'>usar</match> <match no='3' postag='SPS00:DA0(..)0' postag_replace='DA0$10'>o</match></suggestion>
<suggestion><match no='1' postag='V.+' postag_regexp='yes'>recorrer</match> <match no='3' postag='SPS00:DA0(..)0' postag_replace='SPS00:DA0$10'>a:o</match></suggestion>
<example correction="usar a|recorrer à">Vamos <marker>fazer uso da</marker> tecnologia.</example>
</rule>

<!-- DAS -->
<rule>
<pattern>
<token inflected='yes'>fazer</token>
<token>uso</token>
<token>das</token>
</pattern>
<message>Substitua por:</message>
<suggestion><match no='1' postag='V.+' postag_regexp='yes'>usar</match> as</suggestion>
<suggestion><match no='1' postag='V.+' postag_regexp='yes'>recorrer</match> às</suggestion>
<example correction="usar as|recorrer às">Vamos <marker>fazer uso das</marker> tecnologias.</example>
</rule>

<!-- DO -->
<rule>
<pattern>
<token inflected='yes'>fazer</token>
<token>uso</token>
<token>do</token>
</pattern>
<message>Substitua por:</message>
<suggestion><match no='1' postag='V.+' postag_regexp='yes'>usar</match> o</suggestion>
<suggestion><match no='1' postag='V.+' postag_regexp='yes'>recorrer</match> ao</suggestion>
<example correction="usar o|recorrer ao">Vamos <marker>fazer uso do</marker> computador.</example>
<example correction="usar os|recorrer aos">Vamos <marker>fazer uso dos</marker> computadores.</example>
</rule>

<!-- DOS -->
<!-- DELA(S)/DELE(S) -->
<rule>
<pattern>
<token inflected='yes'>fazer</token>
<token>fazer</token>
<token>uso</token>
<token>dos</token>
<token regexp='yes'>del[ae]s?</token>
</pattern>
<message>Substitua por:</message>
<suggestion><match no='1' postag='V.+' postag_regexp='yes'>usar</match> os</suggestion>
<suggestion><match no='1' postag='V.+' postag_regexp='yes'>recorrer</match> aos</suggestion>
<example correction="usar os|recorrer aos">Vamos <marker>fazer uso dos</marker> computadores.</example>
<message>&simplify_msg;</message>
<suggestion>usá-l<match no='3' postag='SPS00:PP3(..)00' postag_replace='DA0$10'>o</match></suggestion>
<example correction="usá-la">Vamos <marker>fazer uso dela</marker> para o bem.</example>
<example correction="usá-las">Vamos <marker>fazer uso delas</marker> para o bem.</example>
<example correction="usá-lo">Vamos <marker>fazer uso dele</marker> para o bem.</example>
<example correction="usá-los">Vamos <marker>fazer uso deles</marker> para o bem.</example>
</rule>

</rulegroup>


<rule id='AO_MESMO_TEMPO_QUE_ENQUANTO' name=" Ao mesmo tempo que → enquanto" type="style" tags='picky' default='off'>
<!--IDEA shorten_it-->
<antipattern>
Expand Down