Skip to content

Commit

Permalink
Merge pull request #10717 from languagetool-org/lt_marcoagpinto_20240…
Browse files Browse the repository at this point in the history
…711_0634

[pt-PT] Rewrote rule ID:TIVER_ESTIVER
  • Loading branch information
marcoagpinto authored Jul 11, 2024
2 parents fab6830 + 1543f34 commit 4e57a02
Showing 1 changed file with 21 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,35 +207,40 @@ USA
<url>https://ciberduvidas.iscte-iul.pt/consultorio/perguntas/porque-circulo-vicioso-e-nao-ciclo-vicioso/33313</url>
<example correction="círculo vicioso">O <marker>ciclo vicioso</marker> da pobreza.</example>
</rule>
<!-- TIVER estiver -->
<rule id='TIVER_ESTIVER' name='[pt-PT][Confusão] tiver/estiver' tone_tags="formal">
<!-- Created by Marco A.G.Pinto, Portuguese rule 2023-01-18 (Checked/Enhanced) (25-JUL-2022+) -->
<!--
Quando tiver a ver TV. → Quando estiver a ver TV.
-->


<rule id='TIVER_ESTIVER' name='[pt-PT][Confusão] tiver/estiver' tone_tags="formal" default="temp_off">
<antipattern>
<token postag='NC.+|AQ.+|CS|RG' postag_regexp='yes'/>
<token regexp='yes'>teve|tiveste|tiver|tiveres|tiverem|tivermos|tiveram</token>
<token regexp='no'>a</token>
<token postag='VMN0000' postag_regexp='no'/>
<token postag='SPS00|CS' postag_regexp='yes'/>
<example>Quando tiver a ver com isso.</example>
<example>Faz o que tiveres a fazer com o documento.</example>
<example>Faz o que tiveres a fazer que isso basta.</example>
<example>Faz o que tiveres a fazer desde que seja o certo.</example>
<example>Alguns dos meus filmes tiveram a ver com lares desfeitos.</example>
</antipattern>
<pattern>
<token postag='CS|RG' postag_regexp='yes'/>
<!-- <token regexp='yes'>caso|embora|quando|que|se</token> -->
<marker>
<and>
<token regexp='no' inflected='yes'>ter</token>
<token regexp='yes'>tiver|tiveres|tiverem|tivermos|tiveram</token>
</and>
<token regexp='yes'>teve|tiveste|tiver|tiveres|tiverem|tivermos|tiveram</token>
</marker>
<token regexp='no'>a</token>
<token postag='VMN0000' postag_regexp='no'/>
<token negate="yes">com</token>
</pattern>
<message>Possível confusão de termos.</message>
<suggestion><match no='2' postag='V.+' postag_regexp='yes'>estar</match></suggestion>
<suggestion><match no='1' postag='V.+' postag_regexp='yes'>estar</match></suggestion>
<example correction="esteve">Ele <marker>teve</marker> a ver TV.</example>
<example correction="estiveste">Quando <marker>tiveste</marker> a ver TV.</example>
<example correction="estiver">Quando <marker>tiver</marker> a ver TV.</example>
<example correction="estiveres">Quando <marker>tiveres</marker> a ver TV.</example>
<example correction="estiverem">Quando <marker>tiverem</marker> a ver TV.</example>
<example correction="estivermos">Quando <marker>tivermos</marker> a ver TV.</example>
<example correction="estiveram">Quando <marker>tiveram</marker> a ver TV.</example>
<example>Quando tiver a ver com isso.</example>
<example correction="estiveram">Elas <marker>tiveram</marker> a ver TV.</example>
</rule>


<rulegroup id='AVOID_GERUND' name='[pt-PT] Evitar o Gerúndio (perifrásico)' default='on' type='style' tone_tags="objective">
<!-- Created by Tiago F. Santos , Portuguese rule, 2016-11-24 -->
<url>https://pt.wikipedia.org/wiki/Gerundismo</url>
Expand Down

0 comments on commit 4e57a02

Please sign in to comment.