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:AVIÃO_DE_COMBATE_PT_PT (regexp+suggestion) #10949

Merged
merged 1 commit into from
Oct 18, 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 @@ -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