Skip to content

fix: topic-predicate-distance reads 〜については as a later clause's own topic - #2995

Open
isamu wants to merge 2 commits into
mainfrom
fix/topic-predicate-distance-nitsuite-topic
Open

isamu wants to merge 2 commits into
mainfrom
fix/topic-predicate-distance-nitsuite-topic

Conversation

@isamu

@isamu isamu commented Nov 30, 2026

Copy link
Copy Markdown
Owner

Summary

topic-predicate-distance measured 当社グループは、…製造及び販売を行っており、これらの製品販売については、…収益を認識しております。 from the first topic to the end of the sentence. The rule already closes the topic's clause at 〜ており、 when a later clause has a subject of its own, but it did not read 〜については as one: the tagger gives について as one particle, so the は is not on a noun.

A は on a compound particle after a noun of its own (販売については, 販売に関しては) now counts as a later clause's own topic. The particles come from a new lang-ja lexicon, topic-phrase-particle.

Refs #1331 (the case issue also lists entries already settled on main)

Items to Confirm / Review

  • The new subject only feeds the checks that ask whether a later clause has a subject of its own (〜ており、, 〜であり、, a setting topic before 〜ますが、). The check for a name topic straight after 〜ますが、 keeps its old reading; widening it there gave extra findings.
  • utelecon-account-leave line 40 (chaff-corpus: utelecon-account-leave — ngram-repetition, preamble-length, topic-predicate-distance #2971) is a different shape (a reason 〜ますので、 and a case topic 〜場合は) that the rule leaves alone on purpose; it is not touched.

Approach

  • isPhraseTopicAt in topic-clause.ts; TopicClauseWords.phraseParticles; the lexicon is added to the rule's extra_word_lists; not_flagged updated in both languages.
  • Tests (self-written): について and に関して after 〜ており、 close the topic's clause; 〜する際には (no new topic) is still counted to the end.
  • Judged chaff-corpus run (all documents, against main): the target false positive is gone; no judged-correct finding of topic-predicate-distance is lost and no new finding appears (one unjudged finding is no longer given). yarn corpus and yarn planted unchanged.

🤖 Generated with Claude Code
work in lab

isamu and others added 2 commits November 30, 2026 08:04
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