Skip to content

fix: comparative-without-baseline reads 〜することで before a comparison as its cause - #3002

Open
isamu wants to merge 1 commit into
mainfrom
fix/comparative-without-baseline-kotode
Open

isamu wants to merge 1 commit into
mainfrom
fix/comparative-without-baseline-kotode

Conversation

@isamu

@isamu isamu commented Nov 30, 2026

Copy link
Copy Markdown
Owner

Summary

A comparison after 〜することで (情報を見ることで、より早く理解できる) compares with not doing so, as one after これにより or 〜ことにより does. It was reported as a comparison with no baseline.

ことで joins the cause group of comparative-baseline. The analyser gives it as two tokens (こと, で), so followsCause now also reads a token run together with the next one, when both stand before the comparative. The rule's not_flagged text gains the example in both languages.

Items to Confirm / Review

  • The two-token reading applies to every cause entry in both languages. English cause entries are words with no partner that a run-together pair could form; Japanese entries other than ことで are single tokens already.
  • A ことで after the comparison (より確実になることで、…) is still reported; tested.
  • Judged corpus: the false positive is gone, no correct finding lost, nothing new. yarn corpus and yarn planted unchanged.

Refs #2963

🤖 Generated with Claude Code
work in lab

… its cause

情報を見ることで、より早く理解できる compares with not doing so, as これにより does.
A cause word may now be two tokens (こと で); ことで joins the cause group.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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.

1 participant