Closed affemitkaraffe closed 1 week ago
The changes in this pull request focus on the GermanSpellerRule
class within the GermanSpellerRule.java
file. New patterns for invalid compound parts have been introduced, replacing the previous pattern and enhancing the validation logic for compound words. Additionally, updates have been made to methods handling specific compound structures and spelling rules, particularly concerning gender-neutral forms and specific morphological patterns. A corresponding test in GermanSpellerRuleTest.java
has also been updated to improve test coverage by verifying the handling of a specific word.
File | Change Summary |
---|---|
languagetool-language-modules/de/src/main/java/org/languagetool/rules/de/GermanSpellerRule.java |
- Added new patterns INVALID_COMP_PART_1 and INVALID_COMP_PART_2 . - Updated processTwoPartCompounds method to incorporate new checks. - Adjusted isMisspelled method for handling specific words. - Method signatures updated (no actual changes in functionality). |
languagetool-language-modules/de/src/test/java/org/languagetool/rules/de/GermanSpellerRuleTest.java |
- Added assertion in testIgnoreMisspelledWord to check handling of the word "Wahlkamp". |
GermanSpellerRule.java
regarding the INVALID_COMP_PART
pattern are directly related to the modifications made in this PR, which also updates patterns in the same file to include "ahmen" as part of noun classification.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?
Summary by CodeRabbit
New Features
Bug Fixes
Tests