-
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] Fix for "ela o ama" in disambiguation.xml rule ID:RARE_POS #10993
Conversation
WalkthroughThe pull request introduces modifications to the Changes
Possibly related PRs
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🔇 Additional comments (1)languagetool-language-modules/pt/src/main/resources/org/languagetool/resource/pt/disambiguation.xml (1)
The addition of Let's verify the impact of this change: ✅ Verification successfulRegex pattern modification is correctly implemented and consistent with other language modules The verification confirms that:
🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Verify the handling of pronouns in the modified rule
# Test: Check for occurrences of pronoun-based constructs that should be affected
rg -A 2 "ela o ama"
# Test: Verify other similar pronoun patterns that should be handled
ast-grep --pattern $'token postag="V.+" postag_regexp="yes">
<exception postag_regexp="yes" postag="CS|RG|NC.+|AQ.+|CC|SPS.+|[DP].+"/>'
Length of output: 160 Script: #!/bin/bash
# Let's verify the changes in the disambiguation rules more comprehensively
# Check for similar pronoun-related patterns in disambiguation files
rg -l "postag=\"V.+\"" --type xml
# Look for test cases or examples in Portuguese test files
fd -e xml -e txt . languagetool-language-modules/pt/src/test/ --exec grep -l -i "ela.*ama"
# Check for similar disambiguation rules in the Portuguese module
rg "<token.*postag=\"V.+\".*exception.*\[DP\]" --type xml languagetool-language-modules/pt/
# Look for related documentation or comments
rg -B2 "RARE_POS" languagetool-language-modules/pt/src/main/resources/org/languagetool/resource/pt/disambiguation.xml
Length of output: 6507 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 (
|
"ela o ama" had "ela" appearing as a verb, so I created an exception postag. |
Fix for "Ela o ama" in verbs/nouns rule.
Summary by CodeRabbit
New Features
Bug Fixes
Documentation