Skip to content

Clarify that token counts are tokenizer-specific - #49

Closed
stussysenik wants to merge 1 commit into
software-mansion:mainfrom
stussysenik:docs/claude-token-count-caveat
Closed

stussysenik wants to merge 1 commit into
software-mansion:mainfrom
stussysenik:docs/claude-token-count-caveat

Conversation

@stussysenik

Copy link
Copy Markdown

BEFORE

  • The Model pricing page shows 38 / 27 tokens and a flat "roughly 40% more" claim, with only a Tiktokenizer link.
  • Nothing says the numbers come from one tokenizer, so readers can read the overhead as a property of Polish alone.

FIX

  • State that the counts come from OpenAI's tokenizer.
  • Add the Claude counts for the same two sentences, about 65 and 42, so the overhead is shown as model-dependent.

AFTER

  • The section distinguishes the language effect from the tokenizer effect.
  • No link to the reporter's calculator was added; the change is the factual correction only.

Testing

  • bun run check exit 0: Prettier, astro check, links and mailmap all pass. The fork's noreply identity is in .mailmap.
  • bun run build exit 0: 27 pages built.
  • Scratch assertion on the section text: exit 1 on main ("does not state the Claude token counts"), exit 0 on this branch.
  • Both builds were served locally and the rendered section compared in a browser; the two new sentences appear only after the change.

Fixes #48

Developed with AI assistance (OpenCode); PR description drafted for owner review.

@mkaput

mkaput commented Nov 20, 2026

Copy link
Copy Markdown
Member

Thanks for putting this together! We’re keeping this section focused on the broader point that language choice affects token usage. The example serves that purpose without a comparison across tokenizers, so we don’t think the additional detail is needed here.

Closing this as out of scope, but thank you for the contribution.

@mkaput mkaput closed this Nov 20, 2026
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.

Language choice and token cost: the gap between Polish and English also depends on the model

2 participants