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] Improved rule ID:CONFUSÃO_CAIXA_EMBALAGEM and cleaned other rule #10932

Merged
merged 2 commits into from
Oct 13, 2024
Merged
Changes from 1 commit
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 @@ -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" 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