-
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] Moved rule verbs/nouns down and improved it disambiguation.xml #11007
Conversation
WalkthroughThe pull request introduces a new rule in the Changes
Possibly related PRs
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🔇 Additional comments (2)languagetool-language-modules/pt/src/main/resources/org/languagetool/resource/pt/disambiguation.xml (2)
The comment effectively documents the movement of PI.+ rules to the bottom of the file, providing good context for the code organization change.
The new PI_VERBS rule is well-implemented with:
The rule effectively prevents incorrect verb tagging when followed by nouns, improving disambiguation accuracy. Let's verify the impact of this rule on the codebase: ✅ Verification successfulBased on the search results, I can now verify the review comment. The search shows that:
Rule implementation is correct and safe. The rule:
🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Check for potential conflicts with the new PI_VERBS rule
# Test 1: Look for similar patterns that might be affected
rg -A 2 'postag="VMIP3S0|VMM02S0|VMSP2S0|VMIP2S0|VMN02S0|VMSF2S0|VMIP1S0"'
# Test 2: Check for any existing rules that might conflict with PI_VERBS
rg -A 2 'token postag="NC\.\+" postag_regexp="yes"'
Length of output: 167455 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 (
|
I noticed that the verb/noun rules, some of them, need to be moved down to fully work.
So, I have moved it down and improved it.
Summary by CodeRabbit