Skip to content

Commit

Permalink
[pt] Rewrote and enhanced rule ID:FAZER_USO_DE-USAR-RECORRER
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoagpinto committed Jul 24, 2023
1 parent bb575ef commit 796cda1
Showing 1 changed file with 22 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12023,75 +12023,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

0 comments on commit 796cda1

Please sign in to comment.