Skip to content

Write numbers as COUNT.n, not ONE.n - #2

Merged
emptymalei merged 1 commit into
mainfrom
claude/glyph-cli-init-hj21nq
Oct 7, 2026
Merged

emptymalei merged 1 commit into
mainfrom
claude/glyph-cli-init-hj21nq

Conversation

@emptymalei

Copy link
Copy Markdown
Member

Requested by L · project thread

Before: numbers were ONE.<n>, so some numbers were drawn exactly like words. For example, ONE.495 looked the same as ONE.SELF ("one of us"). glyph could only warn about it.

After: numbers are COUNT.<n>, following the updated grammar. COUNT is a new 16th part (... / ... / ###). It is the only kind whose which is read as bits, and it never takes a part as its which, so a number can no longer look like a word. COUNT alone is zero, and "how many?" is OPEN.COUNT.

How

  • The bundled vocab.json is replaced with the canon one, which adds COUNT and changes "how many?" to OPEN.COUNT.
  • The parser now:
    • rejects ONE.12 and COUNT.SELF;
    • reads COUNT.0 as COUNT.
  • add and validate refuse COUNT words, because numbers are built in.
  • decode reads bits only after COUNT, or in a reply with no kind under a COUNT word (_.12). The old guessing rule and the number warning are gone.
  • The examples, tests and docs follow the grammar's drawings. A new test checks that no COUNT.n from 1 to 511 is drawn like any vocabulary word.
  • The version goes to 0.2.0, because ONE.n no longer parses.

🤖 Generated with Claude Code

https://claude.ai/code/session_01F8Qs752onkG5wP4feFsWjQ


Generated by Claude Code

The grammar moved numbers to a new 16th part, COUNT, so a number can
never be drawn like a word (ONE.495 looked exactly like ONE.SELF).
COUNT is the only kind whose which is read as bits, it never takes a
part as its which, and COUNT alone is zero. "How many?" is OPEN.COUNT.

The bundled vocabulary, parser, decoder, examples, tests and docs follow
the canon grammar; the ONE.n twin warning is gone. Version 0.2.0.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01F8Qs752onkG5wP4feFsWjQ
@emptymalei emptymalei self-assigned this Oct 7, 2026
@emptymalei
emptymalei merged commit 79dca20 into main Oct 7, 2026
5 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.

2 participants