paperlint 16.8.0 → 17.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CLAUDE.md +10 -2
- package/CONTRIBUTING.md +1 -1
- package/README.md +17 -14
- package/dist/adapters/latex/abstract.d.ts +7 -1
- package/dist/adapters/latex/abstract.d.ts.map +1 -1
- package/dist/adapters/latex/abstract.js +19 -4
- package/dist/adapters/latex/abstract.js.map +1 -1
- package/dist/adapters/latex/captions.d.ts +6 -5
- package/dist/adapters/latex/captions.d.ts.map +1 -1
- package/dist/adapters/latex/captions.js +14 -30
- package/dist/adapters/latex/captions.js.map +1 -1
- package/dist/adapters/latex/index.d.ts +1 -1
- package/dist/adapters/latex/index.d.ts.map +1 -1
- package/dist/adapters/latex/index.js +5 -2
- package/dist/adapters/latex/index.js.map +1 -1
- package/dist/adapters/latex/prose.d.ts +6 -0
- package/dist/adapters/latex/prose.d.ts.map +1 -1
- package/dist/adapters/latex/prose.js +18 -12
- package/dist/adapters/latex/prose.js.map +1 -1
- package/dist/cli.d.ts +6 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +16 -8
- package/dist/cli.js.map +1 -1
- package/dist/domain/register.d.ts +23 -1
- package/dist/domain/register.d.ts.map +1 -1
- package/dist/domain/register.js +37 -14
- package/dist/domain/register.js.map +1 -1
- package/dist/domain/term-definitions.d.ts +48 -0
- package/dist/domain/term-definitions.d.ts.map +1 -0
- package/dist/domain/term-definitions.js +228 -0
- package/dist/domain/term-definitions.js.map +1 -0
- package/dist/domain/tex-document.d.ts +11 -0
- package/dist/domain/tex-document.d.ts.map +1 -1
- package/dist/domain/tex-document.js.map +1 -1
- package/dist/eslint-rules/review-frontmatter.js +5 -5
- package/dist/eslint-rules/review-frontmatter.schema.json +15 -8
- package/dist/eslint-rules/sibling-frontmatter.d.ts.map +1 -1
- package/dist/folder-venue-rule.d.ts +1 -1
- package/dist/folder-venue-rule.d.ts.map +1 -1
- package/dist/folder-venue-rule.js +4 -2
- package/dist/folder-venue-rule.js.map +1 -1
- package/dist/hooks-notice.d.ts +3 -3
- package/dist/hooks-notice.d.ts.map +1 -1
- package/dist/hooks-notice.js +41 -8
- package/dist/hooks-notice.js.map +1 -1
- package/dist/link-skills.d.ts +5 -0
- package/dist/link-skills.d.ts.map +1 -1
- package/dist/link-skills.js +7 -0
- package/dist/link-skills.js.map +1 -1
- package/dist/ports/latex.d.ts +11 -1
- package/dist/ports/latex.d.ts.map +1 -1
- package/dist/presets.d.ts +21 -2
- package/dist/presets.d.ts.map +1 -1
- package/dist/presets.js +66 -17
- package/dist/presets.js.map +1 -1
- package/dist/readability.d.ts +12 -2
- package/dist/readability.d.ts.map +1 -1
- package/dist/readability.js +76 -3
- package/dist/readability.js.map +1 -1
- package/dist/register-bands.d.ts +16 -5
- package/dist/register-bands.d.ts.map +1 -1
- package/dist/register-bands.js +56 -17
- package/dist/register-bands.js.map +1 -1
- package/dist/skills/argument-arc/scripts/headings-core.d.ts +12 -0
- package/dist/skills/argument-arc/scripts/headings.d.ts +2 -0
- package/dist/skills/cold-read-diff/scripts/cold-read-core.d.ts +12 -0
- package/dist/skills/cold-read-diff/scripts/readers.d.ts +2 -1
- package/dist/term-definition-rules.d.ts +26 -0
- package/dist/term-definition-rules.d.ts.map +1 -0
- package/dist/term-definition-rules.js +137 -0
- package/dist/term-definition-rules.js.map +1 -0
- package/dist/tex-paper.d.ts +6 -0
- package/dist/tex-paper.d.ts.map +1 -1
- package/dist/tex-paper.js +10 -0
- package/dist/tex-paper.js.map +1 -1
- package/dist/tex-requirements.d.ts +2 -0
- package/dist/tex-requirements.d.ts.map +1 -1
- package/dist/tex-requirements.js +9 -0
- package/dist/tex-requirements.js.map +1 -1
- package/dist/tex-venue-rules.d.ts +3 -2
- package/dist/tex-venue-rules.d.ts.map +1 -1
- package/dist/tex-venue-rules.js +3 -2
- package/dist/tex-venue-rules.js.map +1 -1
- package/docs/configuration.md +2 -2
- package/{skills/paper-pipeline/references → docs/design}/acceptance-gate.md +50 -53
- package/docs/design/paper-pipeline-history.md +217 -0
- package/docs/design/skill-provenance.md +132 -0
- package/docs/design/study-modes.md +1 -1
- package/docs/design/verify-citations-history.md +135 -0
- package/docs/design/writing-exemplars.md +19 -0
- package/docs/install.md +7 -4
- package/docs/layout.md +5 -4
- package/docs/optional-rules.md +4 -0
- package/docs/osf-artifact.md +54 -0
- package/docs/pipeline.md +171 -0
- package/docs/render.md +82 -0
- package/docs/rules/paper/folder-venue-leftover.md +10 -7
- package/docs/rules/tex/contrast-frames.md +1 -2
- package/docs/rules/tex/max-caption-words.md +82 -0
- package/docs/rules/tex/max-paragraph-words.md +2 -2
- package/docs/rules/tex/negated-sentences.md +96 -0
- package/docs/rules/tex/term-before-definition.md +103 -0
- package/docs/rules/tex/term-defined-twice.md +62 -0
- package/docs/rules/tex/venue-leftover.md +13 -1
- package/docs/rules.md +23 -18
- package/docs/skills.md +16 -21
- package/docs/submission.md +14 -0
- package/docs/texlive-install-decision.md +1 -1
- package/docs/toolchain.md +11 -11
- package/eslint-rules/review-frontmatter.schema.json +15 -8
- package/eslint-rules/review-frontmatter.test.mjs +8 -5
- package/eslint-rules/review-frontmatter.ts +5 -5
- package/eslint.config.mjs +1 -5
- package/hooks/paper-status-gates.sh +21 -4
- package/hooks/paper-status-gates.test.ts +51 -0
- package/lib/skill-checks.test.mjs +2 -6
- package/lib/skill-trigger-cases.mjs +12 -97
- package/lib/skill-trigger-cases.test.ts +0 -6
- package/package.json +3 -1
- package/presets/acm-sigconf.md +1 -1
- package/presets/agenticdev.jsonc +5 -2
- package/presets/agenticdev.md +4 -2
- package/presets/aidc.jsonc +14 -1
- package/presets/aidc.md +3 -2
- package/presets/aisec.jsonc +9 -3
- package/presets/aisec.md +4 -1
- package/presets/ase.jsonc +145 -0
- package/presets/ase.md +178 -0
- package/presets/ccs.jsonc +87 -0
- package/presets/ccs.md +184 -0
- package/presets/icse.jsonc +100 -0
- package/presets/icse.md +126 -0
- package/presets/ieee-conference.md +1 -1
- package/presets/sp.jsonc +152 -0
- package/presets/sp.md +160 -0
- package/presets/venue-profile.schema.json +22 -3
- package/scripts/harness-api.frozen.json +0 -4
- package/scripts/pipeline.ts +481 -0
- package/skills/CLAUDE.md +2 -2
- package/skills/CLAUDE.md.spec.ts +26 -1
- package/skills/analyze-sibling-paper/SKILL.md +2 -20
- package/skills/analyze-sibling-paper/SKILL.md.spec.ts +9 -19
- package/skills/argument-arc/SKILL.md +32 -18
- package/skills/argument-arc/SKILL.md.spec.ts +43 -17
- package/skills/argument-arc/scripts/headings-core.js +46 -0
- package/skills/argument-arc/scripts/headings-core.ts +65 -0
- package/skills/argument-arc/scripts/headings.js +15 -0
- package/skills/argument-arc/scripts/headings.test.ts +105 -0
- package/skills/argument-arc/scripts/headings.ts +20 -0
- package/skills/build-benchmark/SKILL.md +1 -12
- package/skills/build-benchmark/SKILL.md.spec.ts +15 -11
- package/skills/build-label-page/SKILL.md.spec.ts +11 -0
- package/skills/camera-ready/SKILL.md +1 -8
- package/skills/camera-ready/SKILL.md.spec.ts +8 -7
- package/skills/cold-read-diff/SKILL.md +36 -25
- package/skills/cold-read-diff/SKILL.md.spec.ts +44 -24
- package/skills/cold-read-diff/scripts/cold-read-core.js +63 -6
- package/skills/cold-read-diff/scripts/cold-read-core.ts +81 -6
- package/skills/cold-read-diff/scripts/cold-read.js +1 -1
- package/skills/cold-read-diff/scripts/cold-read.test.ts +66 -0
- package/skills/cold-read-diff/scripts/cold-read.ts +1 -1
- package/skills/cold-read-diff/scripts/readers.js +2 -1
- package/skills/cold-read-diff/scripts/readers.ts +2 -1
- package/skills/draft-paper/SKILL.md +16 -29
- package/skills/draft-paper/SKILL.md.spec.ts +27 -28
- package/skills/extend-paper/SKILL.md +7 -16
- package/skills/extend-paper/SKILL.md.spec.ts +18 -15
- package/skills/find-venue/SKILL.md +11 -24
- package/skills/find-venue/SKILL.md.spec.ts +19 -23
- package/skills/harden-paper/SKILL.md +62 -290
- package/skills/harden-paper/SKILL.md.spec.ts +82 -304
- package/skills/harden-paper/harden-paper.harness.mjs +1 -2
- package/skills/jobs.ts +25 -0
- package/skills/label-agent-runs/SKILL.md.spec.ts +10 -0
- package/skills/map-prior-work/SKILL.md +5 -4
- package/skills/map-prior-work/SKILL.md.spec.ts +13 -3
- package/skills/paper-pipeline/SKILL.md +80 -278
- package/skills/paper-pipeline/SKILL.md.spec.ts +130 -276
- package/skills/paper-pipeline/description-language.eval.mjs +0 -22
- package/skills/paper-pipeline/framing-vs-vocabulary.eval.mjs +0 -29
- package/skills/paper-pipeline/paper-pipeline.harness.mjs +0 -16
- package/skills/paper-pipeline/pipeline-firing.eval.mjs +7 -29
- package/skills/paper-pipeline/pipeline-language.eval.mjs +0 -52
- package/skills/paper-pipeline/references/artifact-checklist.md +6 -1
- package/skills/paper-pipeline/references/body-vs-appendix.md +3 -4
- package/skills/paper-pipeline/references/pipeline-status-template.md +8 -10
- package/skills/paper-pipeline/references/review-ratchet.md +4 -7
- package/skills/paper-pipeline/references/venue-bar.md +1 -2
- package/skills/paper-pipeline/references/writing-craft.md +21 -281
- package/skills/paper-status/SKILL.md +17 -20
- package/skills/paper-status/SKILL.md.spec.ts +23 -19
- package/skills/pc-panel-review/SKILL.md +66 -93
- package/skills/pc-panel-review/SKILL.md.spec.ts +75 -92
- package/skills/plan-paper-timeline/SKILL.md +7 -29
- package/skills/plan-paper-timeline/SKILL.md.spec.ts +16 -28
- package/skills/plan-paper-timeline/plan-paper-timeline.effects.harness.mjs +2 -2
- package/skills/render-paper/check-render.sh +2 -2
- package/skills/render-paper/render-paper.harness.mjs +4 -20
- package/skills/research-ideate/SKILL.md +15 -32
- package/skills/research-ideate/SKILL.md.spec.ts +25 -31
- package/skills/rewrite-unclear/SKILL.md +15 -14
- package/skills/rewrite-unclear/SKILL.md.spec.ts +24 -15
- package/skills/rewrite-unclear/rewrite-unclear.eval.ts +2 -3
- package/skills/run-agent-grid/SKILL.md +3 -3
- package/skills/run-agent-grid/SKILL.md.spec.ts +10 -2
- package/skills/study-accepted-papers/SKILL.md +5 -5
- package/skills/study-accepted-papers/SKILL.md.spec.ts +27 -4
- package/skills/submit-paper/SKILL.md +37 -31
- package/skills/submit-paper/SKILL.md.spec.ts +46 -30
- package/skills/submit-paper/check-deanon.sh +1 -1
- package/skills/tighten-paper/SKILL.md +43 -68
- package/skills/tighten-paper/SKILL.md.spec.ts +51 -67
- package/skills/verify-citations/SKILL.md +18 -112
- package/skills/verify-citations/SKILL.md.spec.ts +27 -114
- package/src/adapters/latex/abstract.test.ts +42 -0
- package/src/adapters/latex/abstract.ts +23 -6
- package/src/adapters/latex/captions.test.ts +36 -38
- package/src/adapters/latex/captions.ts +16 -33
- package/src/adapters/latex/index.test.ts +11 -0
- package/src/adapters/latex/index.ts +5 -2
- package/src/adapters/latex/prose.ts +23 -11
- package/src/cli.ts +26 -5
- package/src/domain/register.test.ts +65 -0
- package/src/domain/register.ts +72 -16
- package/src/domain/term-definitions.test.ts +240 -0
- package/src/domain/term-definitions.ts +329 -0
- package/src/domain/tex-document.ts +12 -0
- package/src/domain/venue-name.test.ts +4 -4
- package/src/folder-venue-rule.test.ts +23 -2
- package/src/folder-venue-rule.ts +8 -8
- package/src/hooks-notice.test.ts +127 -0
- package/src/hooks-notice.ts +50 -10
- package/src/link-skills.ts +9 -0
- package/src/new-paper.test.ts +2 -2
- package/src/paper-settings-commands.test.ts +1 -1
- package/src/ports/latex.ts +11 -0
- package/src/preset-card-rule.test.ts +4 -0
- package/src/presets.test.ts +141 -4
- package/src/presets.ts +113 -22
- package/src/readability.test.ts +92 -0
- package/src/readability.ts +113 -5
- package/src/register-bands.test.ts +81 -1
- package/src/register-bands.ts +88 -23
- package/src/rule-cases.test.ts +122 -2
- package/src/term-definition-rules.test.ts +150 -0
- package/src/term-definition-rules.ts +189 -0
- package/src/tex-paper.test.ts +18 -1
- package/src/tex-paper.ts +11 -0
- package/src/tex-requirements.ts +15 -0
- package/src/tex-venue-rules.test.ts +45 -1
- package/src/tex-venue-rules.ts +8 -3
- package/src/venue-rules.test.ts +2 -2
- package/templates/paper/PIPELINE-STATUS.md +19 -19
- package/dist/paper-prose.d.ts +0 -17
- package/dist/paper-prose.d.ts.map +0 -1
- package/dist/paper-prose.js +0 -46
- package/dist/paper-prose.js.map +0 -1
- package/skills/grade-paper-writing/SKILL.md +0 -494
- package/skills/grade-paper-writing/SKILL.md.spec.ts +0 -501
- package/skills/grade-paper-writing/__snapshots__/prose-lint.test.ts.snap +0 -84
- package/skills/grade-paper-writing/fixtures/control_gopen.txt +0 -1
- package/skills/grade-paper-writing/fixtures/control_human_paper.txt +0 -1
- package/skills/grade-paper-writing/fixtures/rewrite.txt +0 -1
- package/skills/grade-paper-writing/fixtures/specimen.txt +0 -1
- package/skills/grade-paper-writing/fixtures/structure-checks.md +0 -22
- package/skills/grade-paper-writing/grade-paper-writing.eval.mjs +0 -19
- package/skills/grade-paper-writing/grade-paper-writing.harness.mjs +0 -23
- package/skills/grade-paper-writing/prose-lint.mjs +0 -602
- package/skills/grade-paper-writing/prose-lint.test.ts +0 -413
- package/skills/osf-artifact-upload/SKILL.md +0 -58
- package/skills/osf-artifact-upload/SKILL.md.spec.ts +0 -65
- package/skills/osf-artifact-upload/osf-artifact-upload.eval.mjs +0 -22
- package/skills/osf-artifact-upload/osf-artifact-upload.harness.ts +0 -102
- package/skills/paper-adversarial-review/SKILL.md +0 -100
- package/skills/paper-adversarial-review/SKILL.md.spec.ts +0 -107
- package/skills/paper-adversarial-review/paper-adversarial-review.eval.mjs +0 -19
- package/skills/paper-adversarial-review/paper-adversarial-review.harness.mjs +0 -24
- package/skills/paper-pipeline/grade-paper-writing-ablation.eval.mjs +0 -1274
- package/skills/paper-pipeline/references/credit-criteria.md +0 -69
- package/skills/paper-pipeline/references/occupancy-2026-08-06-probe/README.md +0 -35
- package/skills/paper-pipeline/references/occupancy-2026-08-06-probe/run_retext.mjs +0 -24
- package/skills/paper-pipeline/references/occupancy-2026-08-06-probe/sentences.txt +0 -11
- package/skills/paper-pipeline/references/occupancy-2026-08-06-probe/test_sentences.py +0 -25
- package/skills/paper-pipeline/references/occupancy-2026-08-06-prose-checkers.md +0 -538
- package/skills/paper-pipeline/references/occupancy-2026-08-06-reproducible-tooling.md +0 -431
- package/skills/paper-pipeline/references/occupancy-2026-08-06-staleness-and-orchestration.md +0 -592
- package/skills/paper-pipeline/repro/2026-08-08-parent-replication.mjs +0 -92
- package/skills/render-paper/SKILL.md +0 -123
- package/skills/render-paper/SKILL.md.spec.ts +0 -130
- package/skills/render-paper/render-paper.eval.mjs +0 -19
- package/skills/submission-portal/SKILL.md +0 -129
- package/skills/submission-portal/SKILL.md.spec.ts +0 -134
- package/skills/submission-portal/submission-portal.eval.mjs +0 -15
- package/skills/submission-portal/submission-portal.test.ts +0 -12
- package/skills/sweep-design-space/SKILL.md +0 -232
- package/skills/sweep-design-space/SKILL.md.spec.ts +0 -248
- package/skills/sweep-design-space/sweep-design-space.eval.mjs +0 -19
- package/skills/sweep-design-space/sweep-design-space.harness.mjs +0 -23
- package/src/paper-prose.test.ts +0 -78
- package/src/paper-prose.ts +0 -67
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
# What makes a paper COUNT — the grading this pipeline applies (single source of truth)
|
|
2
|
-
|
|
3
|
-
Why an independent researcher writes papers at all: each one is **evidence in a review of a body of
|
|
4
|
-
work** — a credential file that someone else will read, score criterion by criterion, and either credit
|
|
5
|
-
or refuse. Every stage of the pipeline is graded against this, not against abstract "impact." Cite this
|
|
6
|
-
file from the other skills instead of re-deriving it.
|
|
7
|
-
|
|
8
|
-
⚠️ **Two things this file is NOT.** It is not legal advice — where a credential review is run by a
|
|
9
|
-
government or a professional body, the final call belongs to a qualified adviser in that system, and the
|
|
10
|
-
statutes, policy manuals and decided cases that ground the rules below belong in the author's own private
|
|
11
|
-
notes, not in a shared pipeline. And it is not a promise: what follows is how reviewers of a body of work
|
|
12
|
-
have been observed to score, which is a prior, not a guarantee.
|
|
13
|
-
|
|
14
|
-
## The criteria a paper feeds (a paper is a HUB — one effort, several criteria)
|
|
15
|
-
|
|
16
|
-
- **Authorship of scholarly articles** — the paper itself. The test is a _scholarly article_ in a
|
|
17
|
-
_professional / major-trade / major-media_ outlet. **Peer-review + indexing is the operative bar, NOT
|
|
18
|
-
venue prestige**; peer-reviewed conference and workshop _proceedings_ qualify. Publishing
|
|
19
|
-
"**regardless of the caliber**" satisfies the plain criterion at the first step. There is **no
|
|
20
|
-
approved-venue list** — "a venue with proven acceptance" is not a thing, and anyone who offers you one
|
|
21
|
-
is selling something.
|
|
22
|
-
- **Original contribution of major significance** — driven by the paper's **citations / adoption**, not
|
|
23
|
-
GitHub stars. Being funded, patented or published "will not necessarily establish… major significance";
|
|
24
|
-
what is looked for is work "highly cited relative to others". This is the riskiest criterion for an
|
|
25
|
-
independent researcher, and the paper's downstream impact — not its existence — is what feeds it.
|
|
26
|
-
- **Judging the work of others** — reviewing / PC service (the organizer **review-offer email** that
|
|
27
|
-
arrives after submission). It must be _genuine_ peer review, and you need proof you _completed_ a
|
|
28
|
-
review, not merely that you were invited.
|
|
29
|
-
- **Published material about you** — press or coverage _about_ the work. Distinct from authorship, and it
|
|
30
|
-
needs its own evidence (a front-page aggregator thread, a trade-press write-up).
|
|
31
|
-
|
|
32
|
-
## Where venue quality actually bites (and where it does not)
|
|
33
|
-
|
|
34
|
-
- **The plain criterion (first step) is venue-agnostic on prestige and newness.** A first-edition workshop
|
|
35
|
-
with indexed proceedings clears it. In decided cases this criterion is granted in a sentence, with
|
|
36
|
-
journals and conference proceedings counted interchangeably.
|
|
37
|
-
- **The merits stage (second step — "sustained standing at the top of the field") is where prestige,
|
|
38
|
-
citations and recency matter.** A fresh venue does not _subtract_; it simply does not _add_ standing
|
|
39
|
-
yet — cured by citations, expert letters, and a **body of work**. Recency cuts both ways: a burst of
|
|
40
|
-
publications immediately before a filing undercuts "sustained" (a real refusal ground — papers all
|
|
41
|
-
dated to the year of filing), and stale work with declining citations fails from the other side. Target
|
|
42
|
-
a **steady cadence**.
|
|
43
|
-
|
|
44
|
-
## Decisions this forces on the pipeline
|
|
45
|
-
|
|
46
|
-
1. **Body of work > one trophy.** Several peer-reviewed papers in one coherent lane beat one paper at a
|
|
47
|
-
fancy venue. Keep the corpus connected.
|
|
48
|
-
2. **Idea validation** (`research-ideate`): favor ideas that yield a _reusable method or benchmark_ (it
|
|
49
|
-
survives review) over a one-off "tool X is bad" result (it reads as a blog post), and that plausibly
|
|
50
|
-
earn downstream citations.
|
|
51
|
-
3. **Venue choice** (`find-venue`): a peer-reviewed, **indexed** venue is the whole game; workshop newness
|
|
52
|
-
is fine; **non-archival** workshops (no indexed proceedings) rank LOW. The prestige upgrade is
|
|
53
|
-
`extend-paper` to a stronger venue later, not holding out now.
|
|
54
|
-
4. **Timeline** (`plan-paper-timeline`): **space submissions out**; do not cluster them into the month
|
|
55
|
-
before a planned external filing. This is the FILING-SPACING rule, and this paragraph is its reason.
|
|
56
|
-
5. **Name consistency**: publish under ONE canonical (passport) name across every paper, and use an
|
|
57
|
-
**ORCID** to tie all output to one identity regardless of how a venue spells the name. Where a form
|
|
58
|
-
asks for a country, it usually means **residence**, not citizenship — the two differ for many authors,
|
|
59
|
-
and the wrong one creates payment and sanctions friction that has nothing to do with the science.
|
|
60
|
-
6. **Judging**: after each submission, offer to review for the venue; keep both the invitation and the
|
|
61
|
-
proof that you completed the review.
|
|
62
|
-
7. **The personal half stays private.** Which filing, on what schedule, under whose advice — that is the
|
|
63
|
-
author's own business and belongs in the author's own notes, never in a shared or public repository.
|
|
64
|
-
|
|
65
|
-
## Provenance
|
|
66
|
-
|
|
67
|
-
Two papers were run on exactly this logic: **AgenticDev 2026 @ ASE** ("Measuring the Wrong Number") and
|
|
68
|
-
**AISec 2026 @ ACM CCS** ("Safety Theater") — one coherent lane, both peer-reviewed and indexed, both with
|
|
69
|
-
an extension path for prestige.
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: The probe that measured whether any shipped prose linter catches our actual defect
|
|
3
|
-
created: 2026-08-06
|
|
4
|
-
tags: [paper-pipeline, prose, occupancy, repro]
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# What this is
|
|
8
|
-
|
|
9
|
-
Six real sentences from `compile-rules-2026` that the author rejected on sight — *"wtf"*,
|
|
10
|
-
*"VAGUE AF"*, *"confusing af"* — run through every shipped deterministic prose checker we could
|
|
11
|
-
install. `sentences.txt` holds the test set; `test_sentences.py` runs proselint / write-good /
|
|
12
|
-
textstat; `run_retext.mjs` runs retext-readability at several thresholds.
|
|
13
|
-
|
|
14
|
-
**These scripts are the evidence, not the write-up.** The finding — that nothing flags the defect —
|
|
15
|
-
is a negative result, and a negative result nobody can re-run is an opinion. Rescued out of the
|
|
16
|
-
session scratchpad, which is erased when the session ends.
|
|
17
|
-
|
|
18
|
-
Result and full tool-by-tool detail: `../occupancy-2026-08-06-prose-checkers.md`.
|
|
19
|
-
|
|
20
|
-
## Re-running it
|
|
21
|
-
|
|
22
|
-
```
|
|
23
|
-
pip install proselint textstat && npm i -g write-good retext retext-readability
|
|
24
|
-
python3 test_sentences.py && node run_retext.mjs
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
Both read `sentences.txt`, so adding a newly-rejected sentence to that file is how the test set
|
|
28
|
-
grows. Do add them: the set is the only ground truth we have about what "unreadable but passing"
|
|
29
|
-
looks like, and it is what any future check must be measured against.
|
|
30
|
-
|
|
31
|
-
## One caveat, recorded rather than smoothed over
|
|
32
|
-
|
|
33
|
-
Sentence 6 is a **reconstruction**. The original's exact text was not supplied to the probe, so a
|
|
34
|
-
same-shape stand-in was built (six factual claims joined by dashes and semicolons). It is marked as
|
|
35
|
-
such here and in the report. Replace it with the real sentence when convenient.
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import {unified} from 'unified';
|
|
2
|
-
import retextEnglish from 'retext-english';
|
|
3
|
-
import retextReadability from 'retext-readability';
|
|
4
|
-
import retextStringify from 'retext-stringify';
|
|
5
|
-
import {reporter} from 'vfile-reporter';
|
|
6
|
-
import fs from 'node:fs';
|
|
7
|
-
|
|
8
|
-
const sentences = fs.readFileSync('sentences.txt', 'utf8')
|
|
9
|
-
.split(/\n\n+/).filter(Boolean).map(s => s.replace(/^\d+\.\s*/, '').trim());
|
|
10
|
-
|
|
11
|
-
for (const [label, opts] of [
|
|
12
|
-
['DEFAULT (age=16, minWords=5, threshold=4/7)', {}],
|
|
13
|
-
['STRICT (age=6, minWords=1, threshold=1/7)', {age: 6, minWords: 1, threshold: 1/7}],
|
|
14
|
-
]) {
|
|
15
|
-
console.log(`\n======= ${label} =======`);
|
|
16
|
-
const processor = unified().use(retextEnglish).use(retextReadability, opts).use(retextStringify);
|
|
17
|
-
for (let i = 0; i < sentences.length; i++) {
|
|
18
|
-
const file = await processor.process(sentences[i]);
|
|
19
|
-
console.log(`--- sentence ${i+1} ---`);
|
|
20
|
-
console.log(sentences[i]);
|
|
21
|
-
console.log(reporter(file));
|
|
22
|
-
console.log();
|
|
23
|
-
}
|
|
24
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
1. The state to remove is therefore not the rule but its claim about itself.
|
|
2
|
-
|
|
3
|
-
2. These files are filled with constructions nobody built.
|
|
4
|
-
|
|
5
|
-
3. Three answers, all of them after the fact.
|
|
6
|
-
|
|
7
|
-
4. Section 4.4 invites the suspicion that the resolver guesses.
|
|
8
|
-
|
|
9
|
-
5. The only part that reads English is the one not allowed to decide anything. It proposes; the other two dispose.
|
|
10
|
-
|
|
11
|
-
6. The audit found six problems: the config was stale, the hook silently no-ops on error, the guard reads a variable the harness never sets, the fallback path was never tested, the log rotates before anyone reads it, and the alert fires into a channel nobody watches.
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import textstat
|
|
2
|
-
|
|
3
|
-
sentences = {
|
|
4
|
-
1: "The state to remove is therefore not the rule but its claim about itself.",
|
|
5
|
-
2: "These files are filled with constructions nobody built.",
|
|
6
|
-
3: "Three answers, all of them after the fact.",
|
|
7
|
-
4: "Section 4.4 invites the suspicion that the resolver guesses.",
|
|
8
|
-
5: "The only part that reads English is the one not allowed to decide anything. It proposes; the other two dispose.",
|
|
9
|
-
6: "The audit found six problems: the config was stale, the hook silently no-ops on error, the guard reads a variable the harness never sets, the fallback path was never tested, the log rotates before anyone reads it, and the alert fires into a channel nobody watches.",
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
for k, s in sentences.items():
|
|
13
|
-
print(f"--- Sentence {k} ---")
|
|
14
|
-
print(s)
|
|
15
|
-
print("words:", textstat.lexicon_count(s))
|
|
16
|
-
print("sentences:", textstat.sentence_count(s))
|
|
17
|
-
print("Flesch reading ease:", textstat.flesch_reading_ease(s))
|
|
18
|
-
print("Flesch-Kincaid grade:", textstat.flesch_kincaid_grade(s))
|
|
19
|
-
print("Gunning fog:", textstat.gunning_fog(s))
|
|
20
|
-
print("SMOG:", textstat.smog_index(s))
|
|
21
|
-
print("Coleman-Liau:", textstat.coleman_liau_index(s))
|
|
22
|
-
print("ARI:", textstat.automated_readability_index(s))
|
|
23
|
-
print("Dale-Chall:", textstat.dale_chall_readability_score(s))
|
|
24
|
-
print("difficult words:", textstat.difficult_words(s))
|
|
25
|
-
print()
|