Skip to content

chore(scripts): report what the language backfill would actually write - #252

Merged
aquie00t merged 1 commit into
mainfrom
chore/backfill-lang-report
Sep 1, 2026
Merged

chore(scripts): report what the language backfill would actually write#252
aquie00t merged 1 commit into
mainfrom
chore/backfill-lang-report

Conversation

@aquie00t

@aquie00t aquie00t commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator

The dry run said how many posts it would label but not into what, which is the one question a dry run exists to answer. Running it against production made that concrete: "1367 labelled" looks fine, and would have hidden either a healthy corpus or a detector quietly filing every Turkish post under English.

It now tallies per language and samples per bucket rather than in scan order. Scan order is by id, which in practice is a run of news bots all writing the same language, so a flat sample of the first twenty says nothing about what is further down.

Posts the detector declines to call are sampled too. That bucket is where a language it cannot handle would silently pile up, and a bare count would never say so - reading it is what confirmed the 229 unlabelled posts are link-only bot release notes rather than missed Turkish.

Claude-Session: https://claude.ai/code/session_01LP54iXPnpBLkTfg2te3hcn

What does this PR do?

A brief description of the changes introduced.

Closes #


Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Documentation
  • Chore

Checklist

  • My branch follows the naming convention (feature/, fix/, chore/, docs/)
  • My commits follow Conventional Commits
  • I have tested my changes locally
  • I have not introduced any breaking changes
  • I have updated relevant documentation if needed

The dry run said how many posts it would label but not into what, which is
the one question a dry run exists to answer. Running it against production
made that concrete: "1367 labelled" looks fine, and would have hidden either
a healthy corpus or a detector quietly filing every Turkish post under
English.

It now tallies per language and samples per bucket rather than in scan order.
Scan order is by id, which in practice is a run of news bots all writing the
same language, so a flat sample of the first twenty says nothing about what
is further down.

Posts the detector declines to call are sampled too. That bucket is where a
language it cannot handle would silently pile up, and a bare count would
never say so - reading it is what confirmed the 229 unlabelled posts are
link-only bot release notes rather than missed Turkish.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LP54iXPnpBLkTfg2te3hcn
@aquie00t
aquie00t merged commit 4e0788a into main Sep 1, 2026
3 checks passed
@aquie00t
aquie00t deleted the chore/backfill-lang-report branch September 1, 2026 04:34
@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 1.14.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant