Skip to content

fix: latin-spacing does not count a source line with a URL and an access date - #2989

Merged
isamu merged 1 commit into
mainfrom
fix/latin-spacing-cited-url-line
Nov 30, 2026
Merged

isamu merged 1 commit into
mainfrom
fix/latin-spacing-cited-url-line

Conversation

@isamu

@isamu isamu commented Nov 30, 2026

Copy link
Copy Markdown
Owner

Summary

latin-spacing counted the space in a footnote's source line (an issuing body and a meeting's name, then the title, the URL and an access date in brackets) as the writer's spacing between Japanese and Latin letters. The rule already leaves out a bibliographic entry line in the SIST form; a source line is the same kind of record, whose spaces separate its fields.

A line now also reads as a cited entry when it holds a URL and a bracketed access date: a bracket with a numeral whose content starts or ends with a word of the access-date-label lexicon (参照, 閲覧, アクセス).

Closes #2970

Items to Confirm / Review

  • The whole line is left out, as with the SIST entry line. A line with a URL but no access-date bracket is still counted, and so is a bracket like (2024/3/12参照) on a line with no URL.
  • access-date-label is added to the rule's extra_word_lists; the not_flagged text names the new case in both languages.

Approach

  • isCitedEntryLine(line, accessLabels) in latin-spacing-source.ts; orthography.ts passes the lexicon.
  • Tests (self-written): the footnote shape is quiet; a URL alone or an access date alone is still read as prose.
  • Judged chaff-corpus run (all documents, against main): the target false positive is gone; no judged-correct finding of latin-spacing is lost and no new finding appears. yarn corpus and yarn planted unchanged.

🤖 Generated with Claude Code
work in lab

…ess date

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@isamu isamu mentioned this pull request Nov 30, 2026
@isamu
isamu merged commit 3383955 into main Nov 30, 2026
25 of 40 checks passed
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.

chaff-corpus: soumu-wp-r06-ai-rules-japan — latin-spacing

1 participant