-
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
(FR) Rule creation quart d'heure #10965
Conversation
WalkthroughA new grammar rule has been introduced in the French language module's Changes
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 (1)
languagetool-language-modules/fr/src/main/resources/org/languagetool/rules/fr/grammar.xml (1)
117280-117288
: LGTM with suggestions for enhancement.The rule implementation correctly handles the basic case of "quart-d'heure" → "quart d'heure". The pattern matching and correction suggestion are working as intended.
Consider these enhancements:
- Add more examples to cover variations:
<example correction="quart d'heure">Je l'ai vu un <marker>quart-d'heure</marker> hier.</example> +<example correction="quart d'heure">Un <marker>quart-d'heure</marker> plus tard.</example> +<example>Il est arrivé il y a un quart d'heure.</example>
- Make the error message more informative:
-<message>L'expression <suggestion>\1 \3</suggestion> s'écrit sans trait d'union.</message> +<message>L'expression « quart d'heure » <suggestion>\1 \3</suggestion> s'écrit sans trait d'union selon l'usage standard.</message>
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (1)
- languagetool-language-modules/fr/src/main/resources/org/languagetool/rules/fr/grammar.xml (1 hunks)
🔇 Additional comments (1)
languagetool-language-modules/fr/src/main/resources/org/languagetool/rules/fr/grammar.xml (1)
117280-117280
: Verify the default="temp_off" setting.The rule is currently disabled by default. Please confirm if this is intentional or if it should be enabled after testing.
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.
That's definitely a good one! :D LGTM
See https://app.asana.com/0/1205948788428908/1208607138266449/f and #10962
Summary by CodeRabbit