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:MORRER_PERECER_FALECER #10581

Merged
merged 1 commit into from
May 15, 2024
Merged
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 @@ -3710,23 +3710,41 @@ USA
<example>Desabamento de prédio deixa mais de 1000 mortos em Bangladesh.</example>
<example>Corpos não identificados de mulheres mortas em Los Angeles geralmente são chamados: "Sally in the Alley"</example>
</antipattern>
<antipattern>
<token postag='SENT_START|_PUNCT' postag_regexp='yes'/>
<token skip="4" postag='DA.+|NC.+|AQ.+|NP.+|V.+' postag_regexp='yes'>
<exception postag='SPS.+' postag_regexp='yes'/> <!-- Fix "entre" -->
</token>
<token postag='(SPS00:)?D.+' postag_regexp='yes'/>
<token min='0' max='1' postag='NC.+|AQ.+' postag_regexp='yes'/>
<token regexp='yes'>mort[ao]s?</token>
<example>Muçulmanos enterram seus mortos em covas.</example>
<example>Os muçulmanos enterram seus mortos em sepulturas.</example>
<example>A gente encontrou um cachorro morto no jardim.</example>
<example>Tom encontrou uma barata morta na comida dele.</example>
<example>Obrigada por cortar a árvore morta no meu jardim.</example>
<example>Os judeus de Hamburgo sepultavam os mortos no Cemitério Judaico de Altona.</example>
<example>Encontramos um cachorro morto no jardim.</example>
<example>Tem um gigante morto no nosso quintal.</example>
</antipattern>
<pattern>
<marker>
<token regexp='yes'>mort[ao]s?
<exception regexp='no' case_sensitive='yes'>Mortos</exception> <!-- Proper names -->
<exception scope='previous' postag='_PUNCT|VMII3.+|SPS00' postag_regexp='yes'/>
<exception scope='next' postag='SENT_END' postag_regexp='no'/>
</token>
</marker>
<token min='0' max='1' postag='RM' postag_regexp='no'/>
<token regexp='yes'>em|n[ao]s?
<exception scope='next' postag='Z0.+|PP.+' postag_regexp='yes'/>
</token>
</pattern>
<message>Num contexto formal, é preferível escrever &quot;perecer&quot; ou &quot;falecer&quot;.</message>
<suggestion><match no='1' postag='V.+' postag_regexp='yes'>perecer</match></suggestion>
<suggestion><match no='1' postag='V.+' postag_regexp='yes'>falecer</match></suggestion>
<suggestion><match no='1' postag='NC(.)(.)000' postag_replace='VMP00$2$1'>perecer</match></suggestion>
<suggestion><match no='1' postag='NC(.)(.)000' postag_replace='VMP00$2$1'>falecer</match></suggestion>
<example correction="perecidos|falecidos">Os militares <marker>mortos</marker> em combate foram muitos.</example>
<example correction="perecidos|falecidos">Os militares <marker>mortos</marker> no combate.</example>
<example correction="perecidos|falecidos">Os militares <marker>mortos</marker> honrosamente em combate.</example>
<example>Do matrimónio nasceram dois filhos, além de uma menina que nasceu morta em 1890.</example>
<example>Em um ofício publicado no mesmo dia da batalha, o General Labatut estimou o número de mortos em 200.</example>
<example>Foi um mestre de Okinawa-te, do estilo Tomari-te, nascido em 1829 e morto em 1898.</example>
Expand Down