-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Lt marcoagpinto 20250123 1304 #11206
Conversation
WalkthroughThis pull request involves modifications to Portuguese language style rules in the LanguageTool project. Specifically, the changes relate to a rule group focused on replacing the verb "gastar" with more formal alternatives like "despender" and "desembolsar" in financial contexts. The modifications include adding new rules in the Portuguese-specific style XML file for European Portuguese, which aim to enhance the formality of language usage by suggesting more precise terminology. Changes
Possibly related PRs
Suggested reviewers
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
It failed a check. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
languagetool-language-modules/pt/src/main/resources/org/languagetool/rules/pt/pt-PT/style.xml (1)
3424-3433
: Consider adding antipatterns for common idiomatic expressions.While the current implementation works well, it could benefit from additional antipatterns to handle common idiomatic expressions using "gastar" that shouldn't be flagged.
For example:
<antipattern> <token inflected='yes'>gastar</token> <token>saliva</token> </antipattern>
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
languagetool-language-modules/pt/src/main/resources/org/languagetool/rules/pt/pt-PT/style.xml
(1 hunks)languagetool-language-modules/pt/src/main/resources/org/languagetool/rules/pt/style.xml
(0 hunks)
💤 Files with no reviewable changes (1)
- languagetool-language-modules/pt/src/main/resources/org/languagetool/rules/pt/style.xml
🔇 Additional comments (4)
languagetool-language-modules/pt/src/main/resources/org/languagetool/rules/pt/pt-PT/style.xml (4)
3401-3403
: LGTM! Well-structured rule group with clear purpose.The rule group is well-organized and properly documented with comments.
3404-3416
: LGTM! Good use of antipatterns to avoid false positives.The antipatterns effectively prevent the rule from triggering on legitimate uses of "gastos" as a noun.
3417-3423
: Comprehensive coverage of financial terms.The pattern includes an extensive list of financial and monetary terms, making the rule robust and widely applicable. The list covers various currencies, financial instruments, and monetary concepts.
3434-3455
: LGTM! Proper handling of past participle forms.The second rule correctly handles past participle forms with auxiliary verbs while maintaining the same comprehensive financial terms coverage.
I noticed you have commits with the "CodeQL" test failed. Is it safe for me to merge this pull request? Thanks! |
@marcoagpinto I think that CodeQL test is unrelated to rule tests, and you can merge the PR. @SteVio89 can confirm? |
Merged! Thanks! |
@susanaboatto
Here it is!
Summary by CodeRabbit
New Features
Refactor