Skip to content

fix(tools): parse alias lists that contain apostrophes - #498

Open
mjmirza wants to merge 1 commit into
mainfrom
fix/alias-flow-lists
Open

mjmirza wants to merge 1 commit into
mainfrom
fix/alias-flow-lists

Conversation

@mjmirza

@mjmirza mjmirza commented Nov 23, 2026

Copy link
Copy Markdown
Owner

What this changes

Alias lists were parsed by treating every apostrophe as a quote. Brewer's Theorem was joined to the next alias with the apostrophes removed, and lists such as Tell Don't Ask and Abadi's Extension to CAP were dropped. The duplicate checker used a second parser that split on every comma, so the quoted Postel's Law alias became two names, and a queue row of the second half would have been reported as a collision.

tools/catalogue_model.py now starts a quote only at the beginning of an item. An apostrophe inside an unquoted name stays in the name. A comma inside quotes does not split the item. tools/check-duplicates.py uses that parser. tools/check-links.py rejects a missing or unparsable aliases list. dist/entries.json records the parsed aliases, including the ten lists the old parser corrupted or dropped. The frontmatter contract in docs/ENTRY-TEMPLATE.md and schema/pattern.schema.json states the rule.

Verification

  • python3 tools/check-links-test.py
Ran 14 tests in 0.319s
OK
  • python3 tools/check-duplicates-test.py
Ran 14 tests in 18.126s
OK
  • python3 tools/check-links.py
890/890 entries pass identity and relationship checks
939/939 files pass internal links
  • python3 tools/check-structure.py
890/890 entries pass the structural gate
  • python3 tools/check-prose.py
935/935 files pass the prose gate
  • npx --yes markdownlint-cli2@0.23.2
Summary: 0 issues in 0 files
  • The other validator unit tests (check-structure, check-prose, check-family-names, gen-indexes, gen-catalogue-status, gen-by-problem-by-language, next-batch, validate-refs, check-claims, check-pr-security, check-code) passed.

  • python3 tools/gen-entry-index.py was re-run. dist/entries.json is committed.

tools/check-code.py --strict and tools/validate-refs.py --strict were not re-run. This change does not edit entry prose, code samples, or citation URLs.

For a new or corrected entry

Not a new entry. The alias contract is unchanged for lists that already parsed. Ten published alias lists that contain an apostrophe now keep the name that is written in the file.

Notes for reviewers

The corrected names are Brewer's Theorem, Brewer's Conjecture, Abadi's Extension to CAP, Tell Don't Ask, You Ain't Gonna Need It, You're Not Gonna Need It, Postel's Law for Interfaces, Cohn's Pyramid, Parkinson's Law of Triviality, Maslow's Hammer, Rat's Nest Code, and Fil d'Ariane. The Postel's Law alias that contains a comma stays one item.

Relationship refs, entry ids, and citation URLs are unchanged.

Open in Web Open in Cursor 

An apostrophe was treated as a quote, so Brewer's Theorem was joined
to the next alias and Tell Don't Ask was dropped. The duplicate
checker split a quoted alias on the comma. Both paths now share one
parser. check-links rejects a list that does not parse, and the entry
index records the aliases.

Co-authored-by: Mirza Iqbal <support@mirzaiqbal.com>
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.

1 participant