Skip to content

Commit

Permalink
Merge pull request #10932 from languagetool-org/lt_marcoagpinto_20241…
Browse files Browse the repository at this point in the history
…014_0021

[pt-PT] Improved rule ID:CONFUSÃO_CAIXA_EMBALAGEM and cleaned other rule
  • Loading branch information
marcoagpinto authored Oct 13, 2024
2 parents 20d222e + 7d5bf4c commit 7777267
Showing 1 changed file with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ USA
<category id="STYLE" name="[pt-PT] Regras de Estilo" type="style">


<rule id='CONFUSÃO_CAIXA_EMBALAGEM' name="[pt-PT] Confusão: Caixa/embalagem" tone_tags="objective">
<rule id='CONFUSÃO_CAIXA_EMBALAGEM' name="[pt-PT] Confusão: Caixa/embalagem (fármacos)" tone_tags="objective" default="temp_off">
<!-- Used ChatGPT 4o for enhancements and extra accuracy -->
<pattern>
<token skip='4' inflected='yes'>tomar</token>
<token skip='4' regexp='yes' inflected='yes'>administrar|dosar|ingerir|injec?tar|prescrever|ministrar|tomar</token>
<marker>
<token regexp='yes'>caixas?
<exception scope='previous' postag='_PUNCT'/></token>
<token regexp='yes'>caixas?<exception scope='previous' postag='_PUNCT'/></token>
</marker>
</pattern>
<message>Se estiver a referir-se a fármacos ou afins, empregue o termo &quot;embalagem&quot;.</message>
Expand All @@ -105,9 +105,7 @@ USA
<pattern>
<token skip='4' regexp='yes' inflected='yes'>ser|ter</token>
<marker>
<token>prazer
<exception scope='previous' postag_regexp='yes' postag='V.+'/>
</token>
<token>prazer<exception scope='previous' postag_regexp='yes' postag='V.+'/></token>
</marker>
<token regexp='yes'>de|em|que</token>
</pattern>
Expand Down

0 comments on commit 7777267

Please sign in to comment.