Skip to content

Rewrite comments to read naturally, remove AI-style em dashes#1473

Merged
mathuo merged 1 commit into
v8-branchfrom
claude/comment-cleanup-pass-y2v7ga
Jul 16, 2026
Merged

Rewrite comments to read naturally, remove AI-style em dashes#1473
mathuo merged 1 commit into
v8-branchfrom
claude/comment-cleanup-pass-y2v7ga

Conversation

@mathuo

@mathuo mathuo commented Jul 16, 2026

Copy link
Copy Markdown
Owner

Description

A copy-edit pass over comments across the codebase and docs site to remove the em-dash-heavy, AI-generated phrasing that had crept in, so comments read like a person wrote them.

What changed:

  • Em dashes () rewritten to ordinary punctuation (periods, commas, colons, parentheses, or joining words). This was the dominant tell (~500 occurrences).
  • Definitional dash-fragments (Singleton — only one X., Passive — does not consume.) rewritten as plain sentences.
  • ALL-CAPS mid-sentence emphasis (AND, NOT, MUST) lowercased.
  • Filler dropped: just/simply/merely, Note that, NOTE: prefixes.

Scope by area:

  • Library / enterprise / binding source: comment text only.
  • Test suites: comments, plus describe/test names switched from to : for consistency (no snapshot files exist, so names aren't coupled to anything).
  • Docs site: code comments in sandboxes, templates and components, plus a light touch on user-facing prose (READMEs, landing pages, release blurbs). The packages/docs/AGENTS.md writing-style guide already mandates this ("do not use em dashes… drop filler and marketing words"), so this brings existing content in line with it.

214 files changed. No runtime code was modified: the only non-comment edits are string labels and test/description text. The glyph the debug-panel demo renders as an empty-value placeholder is intentionally left as-is.

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation
  • Refactor / cleanup
  • Build / CI / tooling

Affected packages

  • dockview-core
  • dockview (vanilla JS)
  • dockview-react
  • dockview-vue
  • dockview-angular
  • docs

Also touches dockview-enterprise (not listed in the template).

How to test

This is a comments-and-strings-only change; a review of the diff is the main check. Verification performed in place of a full test run (dependencies were not installed in the working environment):

  • Only one em dash remains repo-wide (the intentional empty-value placeholder glyph in the debug-panel demo).
  • Block-comment (/* */) delimiters are balanced and unchanged vs. the base in all 214 files, so no comment was left unterminated.
  • Comments were stripped from the base and working copies and the remaining code compared: non-comment code is byte-identical except for the intended string edits (test/describe names and four docs strings), which were reviewed line by line.

Checklist

  • yarn lint:fix passes
  • yarn format passes
  • npm run gen has been run and generated files are up to date
  • yarn test passes
  • I have added or updated tests where applicable
  • Breaking changes are documented

🤖 Generated with Claude Code

https://claude.ai/code/session_01UZrBEk48dxvwBR6VkskSxw


Generated by Claude Code

Sweep code comments across the libraries, tests and docs site to strip the
em-dash-heavy, AI-generated phrasing that had crept in. Em dashes are rewritten
to ordinary punctuation (periods, commas, colons, parentheses, or joining
words), definitional dash-fragments ("Singleton -- only one X") become plain
sentences, ALL-CAPS mid-sentence emphasis is lowercased, and filler like
"just", "simply" and "Note that" is dropped.

Scope:
- Library, enterprise and binding source (dockview-core, dockview-enterprise,
  dockview-vue, dockview-angular, dockview): comment text only.
- Test suites: comments, plus describe/test names switched from em dash to
  colon for consistency.
- Docs site: code comments in sandboxes, templates and components, plus a
  light touch on user-facing prose (READMEs, landing pages, release blurbs).

No runtime code changed; the only non-comment edits are string labels and
test/description text. The em dash rendered as an empty-value placeholder in
the debug-panel demo is left as-is.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UZrBEk48dxvwBR6VkskSxw
@sonarqubecloud

Copy link
Copy Markdown

@mathuo
mathuo changed the base branch from master to v8-branch July 16, 2026 05:50
@mathuo
mathuo merged commit 272a5e7 into v8-branch Jul 16, 2026
9 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.

1 participant