-
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
[pt] Improved verbs/nouns in disambiguation.xml #11015
Conversation
WalkthroughThe pull request introduces modifications to the Changes
Possibly related issues
Possibly related PRs
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
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 (
|
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
🧹 Outside diff range and nitpick comments (7)
languagetool-language-modules/pt/src/main/resources/org/languagetool/resource/pt/disambiguation.xml (7)
Line range hint
3864-3875
: Note the use of external AI for verificationThe rule effectively handles disambiguation of "pela/como" when appearing as verbs. While using ChatGPT for verification is helpful, consider documenting specific test cases in the rule's examples section for better maintainability.
Would you like me to help generate example test cases for this rule?
Line range hint
3876-3893
: Consider documenting rule dependenciesThe comment indicates this rule was moved down for correct functionality. Consider:
- Documenting why the rule position matters
- Adding more examples to cover edge cases
- Explaining the interaction with other rules
Line range hint
3894-3965
: Consider simplifying complex patternsWhile the rule is well-documented with examples, the patterns could be simplified:
- Consider breaking down complex regexp patterns into smaller, more maintainable pieces
- The multiple conditions could be reorganized for better readability
Line range hint
3966-3974
: Add examples for national prefixes ruleThe rule would benefit from example cases to demonstrate:
- Valid national prefix usage
- Edge cases that should be handled
- Cases that should not be matched
Line range hint
3975-4217
: Consider reorganizing toponym rulesThe rules for English toponyms could be better organized:
- Group related patterns (states, counties, provinces) more clearly
- Consider using shared patterns for common elements
- Add comments explaining the rationale for each pattern group
Line range hint
4218-4954
: Improve maintainability of English word rulesThe English word rules are comprehensive but could be improved:
- Consider splitting into smaller, focused rule groups
- Add more comments explaining pattern logic
- Consider moving common patterns to shared entities
Line range hint
4955-5050
: Add more documentation for context rulesThe rules for handling words around English text would benefit from:
- More detailed comments explaining the logic
- Examples showing different context scenarios
- Documentation of the filter behavior
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (1)
languagetool-language-modules/pt/src/main/resources/org/languagetool/resource/pt/disambiguation.xml
(1 hunks)
Fixed a bit the rules.
Summary by CodeRabbit
New Features
Bug Fixes
Documentation