8000 refactor: one sentence per plural by dominikwozniak · Pull Request #95 · dominikwozniak/dw-mc · GitHub
[go: up one dir, main page]

Skip to content

refactor: one sentence per plural - #95

Merged
dominikwozniak merged 1 commit into
mainfrom
refactor/84-one-sentence-per-plural
Sep 18, 2026
Merged

dominikwozniak merged 1 commit into
mainfrom
refactor/84-one-sentence-per-plural

Conversation

@dominikwozniak
Copy link
Copy Markdown
Owner

Four sentences are spelled twice, arithmetic and all. Two of them are a rule read from both ends — dw-mc status and dw-mc stamp say the same thing about the same number, and git.ts counts the same commits before a session is cut and before one is taken away — which is the hazard src/domain/bucket.ts:67 already names: a sentence matched from the other side of the tool is a rule that breaks on a reword.

What changes

  • src/adapters/git.ts — one commits(n), said before a session is cut and before one is taken away.
  • src/domain/bucket.ts — blockedBy is exported for the reason unanswered is, and src/domain/stamp.ts says it rather than spelling it again.
  • src/cli/sweep.ts — calls the repositories(n) it already has instead of writing the irregular plural out a second time.
  • src/cli/findings.ts — imports rule from src/cli/row.ts, as status.ts and pick.ts do.

Test plan

  • pnpm check — pass (51 files, 695 tests)
  • No test assertion changed. Every sentence keeps its wording, which is what src/adapters/git.test.ts, src/cli/uninstall.test.ts, src/domain/stamp.test.ts, src/domain/bucket.test.ts and src/cli/status.test.ts pin.

Risk

None on disk. If a sentence were wrong, the tests that read it back would say so, and they are unchanged.

Closes #84

🤖 Generated with Claude Code

Four sentences were spelled twice, arithmetic and all: the commits a session
holds, in the two places `git.ts` counts them; the blocking findings, in the
bucket rule and in the stamp rule that says the same thing about the same
number; the repositories a sweep swept, beside the helper that already exists
for that irregular plural; and the rule between two columns, which `row.ts`
already exports.

`count` stays in `cli/table.ts`. The layer that could be reached from all three
is `terms/`, and ADR 0006 says a term carries no branch and is a word the
glossary names. Pluralisation is neither, so each sentence is closed where it
is said instead.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@dominikwozniak
dominikwozniak merged commit 813c30f into main Sep 18, 2026
1 check passed
@dominikwozniak
dominikwozniak deleted the refactor/84-one-sentence-per-plural branch September 18, 2026 07:08
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.

refactor: one sentence per plural

1 participant

0