-
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] Added AP to rule ID:CRASE_CONFUSION #11035
Conversation
WalkthroughThe pull request modifies the Changes
Possibly related PRs
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🔇 Additional comments (3)languagetool-language-modules/pt/src/main/resources/org/languagetool/rules/pt/grammar.xml (3)
The exception patterns for adverbs, nouns, adjectives, and prepositions will help prevent false positives in common grammatical constructions where 'à/às' usage is correct.
The new examples are well-chosen as they demonstrate:
These examples will be valuable for testing and documentation.
The addition of patterns for past participles (VMP00.+), pronouns (RM), adverbs (RG), and prepositions (SP000) will help reduce false positives by recognizing more valid grammatical constructions. Let's verify if these patterns match real-world usage: ✅ Verification successfulLet me gather more context about the CRASE_CONFUSION rule and its patterns. Let me check for more antipattern examples in the CRASE_CONFUSION rule to verify the pattern consistency. Token pattern expansion is consistent with Portuguese grammar rules The added patterns (VMP00.+|RM|RG|SP000) in line 13556 are verified to be:
🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Search for similar patterns in other Portuguese grammar rules
rg -A 2 "postag='.*VMP00\\.\\+.*RM.*RG.*SP000'" languagetool-language-modules/pt/
Length of output: 618 Script: #!/bin/bash
# Search for CRASE_CONFUSION rule definition and its patterns
rg -B 2 -A 5 "CRASE_CONFUSION" languagetool-language-modules/pt/src/main/resources/org/languagetool/rules/pt/grammar.xml
Length of output: 723 Script: #!/bin/bash
# Search for all antipatterns in CRASE_CONFUSION rule
rg -B 1 -A 10 "<antipattern>" languagetool-language-modules/pt/src/main/resources/org/languagetool/rules/pt/grammar.xml | grep -A 10 -B 1 "CRASE_CONFUSION"
Length of output: 1171 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 (
|
An antipattern to fix false positives.
Summary by CodeRabbit
New Features
Bug Fixes