Skip to content

Fehlalarm Verb/Adjektiv - #12072

Open
palakkhinvasara wants to merge 1 commit into
languagetool-org:masterfrom
palakkhinvasara:Fix-fehlalarm-adjective
Open

Fehlalarm Verb/Adjektiv#12072
palakkhinvasara wants to merge 1 commit into
languagetool-org:masterfrom
palakkhinvasara:Fix-fehlalarm-adjective

Conversation

@palakkhinvasara

@palakkhinvasara palakkhinvasara commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

#12038 #12038
Fixes a false positive in VerbAgreementRule where adjective/verb ambiguous
tokens like "faul" were incorrectly detected as finite verbs.

Example:
"Während er faul auf der Couch saß, musste ich putzen."

The rule now ignores adjective readings when no real finite verb reading is
present.

Added regression coverage in VerbAgreementRuleTest.

Summary by CodeRabbit

  • Bug Fixes

    • Improved German grammar checking to avoid incorrectly flagging adjective forms as finite verbs.
    • Reduced false-positive verb agreement warnings in sentences containing adjective readings.
  • Tests

    • Added coverage for correct sentences involving verbs such as “saß,” “musste,” “ist,” and “bleibt.”

@coderabbitai

coderabbitai Bot commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Walkthrough

The German verb agreement rule now filters adjective-only token readings during finite-verb detection. Regression tests add three valid sentences involving ambiguous verb and adjective forms.

Changes

Verb agreement detection

Layer / File(s) Summary
Finite-verb reading filter and regression coverage
languagetool-language-modules/de/src/main/java/org/languagetool/rules/de/VerbAgreementRule.java, languagetool-language-modules/de/src/test/java/org/languagetool/rules/de/VerbAgreementRuleTest.java
isFiniteVerb checks for qualifying person-specific verb readings that are not marked :SFT, rejects adjective-only readings, and adds three no-match regression assertions.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title matches the main change: reducing false alarms in verb/adjective handling.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@palakkhinvasara palakkhinvasara changed the title fix for adjective https://github.com/languagetool-org/languagetool/issues/12038 Jul 15, 2026
@palakkhinvasara palakkhinvasara changed the title https://github.com/languagetool-org/languagetool/issues/12038 Fehlalarm Verb/Adjektiv Jul 15, 2026
@palakkhinvasara

palakkhinvasara commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

Hi @marcoagpinto @jaumeortola , Can you please review this PR?

Thanks,
palak

@marcoagpinto

Copy link
Copy Markdown
Member

Heya,

Please ask Jaume: @jaumeortola

Jaume, could you please review?

Thanks!

@palakkhinvasara

Copy link
Copy Markdown
Contributor Author

Hi @jaumeortola , Can you please review this PR?

Thanks,
palak

@palakkhinvasara

Copy link
Copy Markdown
Contributor Author

Hi @marcoagpinto , Can you please review this PR?I have raised this since yesterday

Thanks,
palak

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants