You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse filesBrowse the repository at this point in the historyBrowse files
UXBYISSA
committed
Publish the full measured token table and the isolation experiment
Every file now carries a measured token count and chars-per-token figure from
count_tokens on claude-opus-5, replacing the character-ratio estimates.
Two corrections came out of measuring, in opposite directions, and the section
states both rather than quietly fixing the numbers.
The estimates were low by 33-57% on every row: the assumed English prose ratio
was 3.9 chars/token against ~2.99 actual, and English is most of these files,
so the miss was systematic rather than random.
The Arabic multiplier was understated. Isolating pure samples gives Arabic
prose at 1.47 ch/tok against English prose at 3.50 — about 2.4x, not the 1.6x
previously claimed.
But file-level ch/tok here is driven by code-versus-prose, not Arabic share:
no file exceeds 5% Arabic, and probe-focus.js with zero Arabic measures 2.17
against probe-rtl.js at 2.19. The two-rate model reconciles probe-rtl.js to
within 0.8% of its measured total, which is what makes both rates credible on
their own rather than a coincidence of one comparison.
Sample size is stated with the figure: one matched prose pair, corroborated by
the reconciliation on unrelated text. Order of magnitude, not a constant.
Also records a finding with no payoff: raw Unicode ranges are the most
expensive construct measured and escapes tokenise ~30% cheaper, but only 48
characters across all probes sit inside them — roughly 41 tokens. Measured
before refactoring, which is how a pointless refactor gets avoided.
0 commit comments