Skip to content

Commit

Permalink
Merge pull request #10949 from languagetool-org/lt_marcoagpinto_20241…
Browse files Browse the repository at this point in the history
…018_0717

[pt-PT] Improved rule ID:AVIÃO_DE_COMBATE_PT_PT (regexp+suggestion)
  • Loading branch information
marcoagpinto authored Oct 18, 2024
2 parents 5b114a4 + 0e66599 commit e69249b
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4093,14 +4093,16 @@ USA


<rule id='AVIÃO_DE_COMBATE_PT_PT' name="[pt-PT][Simplificar] Avião de combate → caça" tone_tags="objective">
<!-- Used ChatGPT 4o for enhancements and extra accuracy -->
<!-- With "aeronave" there was the problem of it being a female word messing the suggestions -->
<pattern>
<marker>
<token regexp='yes'>avi(ão|ões)|aeroplanos?</token>
<token regexp='yes'>avi(ão|ões)|aeroplanos?|caças?|jac?tos?</token>
<token>de</token>
<token regexp='yes'>combate|guerra</token>
</marker>
</pattern>
<message>&simplify_msg;</message>
<message>Substitua o termo por &quot;caça&quot; apenas quando se referir a aeronaves de combate aéreo.</message>
<suggestion><match no='1' postag='NC.(.)000' postag_replace='NCC$1000'>caça</match></suggestion>
<example correction="caça">O <marker>avião de combate</marker> é muito rápido.</example>
<example correction="caças">Os <marker>aviões de combate</marker> são muito rápidos.</example>
Expand Down

0 comments on commit e69249b

Please sign in to comment.