paperlint 18.2.1 → 18.3.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.
Files changed (71) hide show
  1. package/.github/dependabot.yml +17 -0
  2. package/.github/workflows/ci.yml +30 -5
  3. package/CLAUDE.md +2 -1
  4. package/dist/domain/register.d.ts +1 -1
  5. package/dist/domain/register.d.ts.map +1 -1
  6. package/dist/domain/sentences.d.ts +3 -11
  7. package/dist/domain/sentences.d.ts.map +1 -1
  8. package/dist/domain/sentences.js +53 -8
  9. package/dist/domain/sentences.js.map +1 -1
  10. package/dist/eslint-rules/CLAUDE.md.spec.js +2 -2
  11. package/dist/eslint-rules/CLAUDE.md.spec.js.map +1 -1
  12. package/dist/folder-venue-rule.js +1 -1
  13. package/dist/readability.d.ts +12 -9
  14. package/dist/readability.d.ts.map +1 -1
  15. package/dist/readability.js +3 -3
  16. package/dist/readability.js.map +1 -1
  17. package/docs/design/paper-sources.md +1 -1
  18. package/docs/e2e.md +2 -2
  19. package/docs/optional-rules.md +2 -2
  20. package/docs/rules/pdf/body-size.md +1 -1
  21. package/docs/rules/tex/heading-case.md +2 -2
  22. package/docs/rules/tex/max-paragraph-numbers.md +13 -7
  23. package/docs/rules/tex/max-paragraph-words.md +17 -28
  24. package/docs/rules/tex/max-sentence-words.md +3 -2
  25. package/docs/rules/tex/negated-sentences.md +2 -2
  26. package/docs/rules/tex/register.md +1 -1
  27. package/docs/rules/tex/term-before-definition.md +1 -1
  28. package/docs/rules.md +3 -3
  29. package/docs/venues.md +1 -1
  30. package/docs/website.md +61 -5
  31. package/eslint-rules/CLAUDE.md +3 -3
  32. package/eslint-rules/CLAUDE.md.spec.ts +2 -2
  33. package/eslint.config.mjs +15 -4
  34. package/fixtures/real-papers.test.ts +24 -19
  35. package/package.json +4 -5
  36. package/presets/acm-sigconf.jsonc +1 -1
  37. package/presets/aidc-2026.jsonc +4 -4
  38. package/presets/aidc-2026.md +1 -1
  39. package/presets/ase-2026.md +1 -1
  40. package/presets/ieee-conference.jsonc +1 -1
  41. package/presets/msr-2027.jsonc +1 -1
  42. package/presets/neurips-style.jsonc +2 -2
  43. package/presets/neurips-style.md +1 -1
  44. package/presets/sp-2027.md +1 -1
  45. package/presets/venue-profile.schema.json +1 -1
  46. package/scripts/check.ts +9 -1
  47. package/scripts/coverage-config.test.ts +2 -0
  48. package/scripts/grow-real-papers/archive.test.ts +294 -0
  49. package/scripts/grow-real-papers/archive.ts +287 -0
  50. package/scripts/grow-real-papers/collect.test.ts +329 -0
  51. package/scripts/grow-real-papers/collect.ts +316 -0
  52. package/scripts/grow-real-papers/http.test.ts +95 -0
  53. package/scripts/grow-real-papers/http.ts +76 -0
  54. package/scripts/grow-real-papers/main.test.ts +295 -0
  55. package/scripts/grow-real-papers/main.ts +221 -0
  56. package/scripts/grow-real-papers/paper.test.ts +305 -0
  57. package/scripts/grow-real-papers/paper.ts +241 -0
  58. package/scripts/grow-real-papers/rules.test.ts +222 -0
  59. package/scripts/grow-real-papers/rules.ts +250 -0
  60. package/scripts/grow-real-papers/sources.test.ts +275 -0
  61. package/scripts/grow-real-papers/sources.ts +239 -0
  62. package/scripts/grow-real-papers/testkit.ts +79 -0
  63. package/src/domain/register.ts +1 -1
  64. package/src/domain/sentences.test.ts +128 -0
  65. package/src/domain/sentences.ts +60 -11
  66. package/src/folder-venue-rule.test.ts +1 -1
  67. package/src/folder-venue-rule.ts +1 -1
  68. package/src/readability.test.ts +82 -41
  69. package/src/readability.ts +12 -9
  70. package/src/register-bands.test.ts +4 -4
  71. package/src/rule-cases.test.ts +6 -6
@@ -59,6 +59,23 @@ updates:
59
59
 
60
60
  # Versions of GitHub Actions themselves go stale silently and are only noticed when
61
61
  # the runner drops a warning about old Node.
62
+ # paperlint.dev (site/): its own lock, so its Next.js and React updates come in their own PR.
63
+ - package-ecosystem: "npm"
64
+ directory: "/site"
65
+ schedule:
66
+ interval: "monthly"
67
+ time: "06:00"
68
+ timezone: "Asia/Almaty"
69
+ cooldown:
70
+ default-days: 3
71
+ groups:
72
+ site:
73
+ patterns: ["*"]
74
+ open-pull-requests-limit: 1
75
+ commit-message:
76
+ prefix: "deps"
77
+ labels: ["dependencies"]
78
+
62
79
  - package-ecosystem: "github-actions"
63
80
  directory: "/"
64
81
  schedule:
@@ -224,7 +224,8 @@ jobs:
224
224
  # there is no pull_request object, and a bare `.draft` would be missing and kill every check there.
225
225
  if: github.event_name != 'pull_request' || github.event.pull_request.draft == false
226
226
  runs-on: ubuntu-latest
227
- timeout-minutes: 15
227
+ # 10 + 5 for the two e2e steps, 20 for the real papers below.
228
+ timeout-minutes: 35
228
229
  steps:
229
230
  - uses: actions/checkout@v7
230
231
 
@@ -264,13 +265,37 @@ jobs:
264
265
  run: npm run test:e2e:studies
265
266
  timeout-minutes: 5
266
267
 
267
- # Every rule over every real paper of the corpus (6 accepted, 108 arXiv preprints) in ONE
268
+ # Every rule over every real paper of the corpus (98 accepted, 108 arXiv preprints) in ONE
268
269
  # `paperlint lint --json`, against each paper's baseline: the vitest project `real-papers`,
269
270
  # outside `unit` so the macOS shards and the coverage run do not repeat it. No TeX needed.
270
- # Why every paper runs, and what it costs: fixtures/arxiv-papers/README.md.
271
+ # Why every paper runs, and what it costs: fixtures/real-papers/preprints/README.md. The lint
272
+ # of the 206 papers took 582.7 s locally (2026-11-19), past the 10 minutes this step had.
271
273
  - name: vitest run --project real-papers
272
274
  run: npx vitest run --project real-papers
273
- timeout-minutes: 10
275
+ timeout-minutes: 20
276
+
277
+ # paperlint.dev: `site/` is a static Next.js export with its own package.json and lock. Its build
278
+ # reads README.md and docs/layout.md and throws when a block it shows is gone, so this job is the
279
+ # check that the site and the README still agree (#342). Before the build, site/'s own gates:
280
+ # Steiger and ESLint, tsc, vitest at 100% coverage of the pure logic. The root's install is not
281
+ # needed and not done. Measured 2026-11-19: 29 s from a clean `npm ci` (warm npm cache, root
282
+ # node_modules absent) to the exported HTML. Vercel runs only `next build` on deploy.
283
+ site:
284
+ if: github.event_name != 'pull_request' || github.event.pull_request.draft == false
285
+ runs-on: ubuntu-latest
286
+ timeout-minutes: 5
287
+ steps:
288
+ - uses: actions/checkout@v7
289
+
290
+ - uses: actions/setup-node@v7
291
+ with:
292
+ node-version: 22
293
+ cache: npm
294
+ cache-dependency-path: site/package-lock.json
295
+
296
+ - name: npm run site:build
297
+ run: npm run site:build
298
+ timeout-minutes: 4
274
299
 
275
300
  # ── DOES THIS PULL REQUEST CHANGE ANYTHING BUT DOCS? ────────────────────────────────────────────
276
301
  # dorny/paths-filter lists a PR's files from the API (no checkout). With `every`, a file counts as
@@ -284,7 +309,7 @@ jobs:
284
309
  outputs:
285
310
  code: ${{ steps.filter.outputs.code }}
286
311
  steps:
287
- - uses: dorny/paths-filter@v3
312
+ - uses: dorny/paths-filter@v4
288
313
  id: filter
289
314
  with:
290
315
  predicate-quantifier: every
package/CLAUDE.md CHANGED
@@ -1,4 +1,4 @@
1
- <!-- vigiles:sha256:afa3100d601208e4 compiled from CLAUDE.md.spec.ts -->
1
+ <!-- vigiles:sha256:5c9ce6ca352a0a54 compiled from CLAUDE.md.spec.ts -->
2
2
 
3
3
  # CLAUDE.md
4
4
 
@@ -34,6 +34,7 @@ This file loads on every turn, so it holds only what applies to **any** change h
34
34
  | writing or changing a skill | [`skills/CLAUDE.md`](skills/CLAUDE.md) | how skills ship |
35
35
  | in `src/` | [`src/CLAUDE.md`](src/CLAUDE.md) | the two layer axes |
36
36
  | thinking of a Claude Code plugin | [`plugin/CLAUDE.md`](plugin/CLAUDE.md) | why there is none, and what must be measured to bring it back |
37
+ | working on the website, paperlint.dev | [`site/CLAUDE.md`](site/CLAUDE.md) | the design the author chose, and what the page may claim |
37
38
  | changing CI, Dependabot or the release | [`.github/CLAUDE.md`](.github/CLAUDE.md) | cost, Dependabot cadence, release from the PR title |
38
39
  | writing a test | [`docs/testing.md`](docs/testing.md), [`docs/e2e.md`](docs/e2e.md) | which kind of test, fakes, the e2e triggers |
39
40
 
@@ -28,7 +28,7 @@ export type RegisterMeasureName = "contrast_frames" | "claim_emphasis" | "relati
28
28
  export declare const REGISTER_MEASURES: readonly RegisterMeasureName[];
29
29
  /** One accepted paper of the venue, as the counters measured it. */
30
30
  export interface RegisterAnchor {
31
- /** What the preset calls it: a directory under `fixtures/accepted-papers/`, or a citation. */
31
+ /** What the preset calls it: a directory under `fixtures/real-papers/accepted/`, or a citation. */
32
32
  readonly paper: string;
33
33
  readonly words: number;
34
34
  readonly counts: Readonly<Record<RegisterMeasureName, number>>;
@@ -1 +1 @@
1
- {"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../src/domain/register.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,OAAO,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAI1E,qDAAqD;AACrD,MAAM,MAAM,mBAAmB,GAC7B,iBAAiB,GAAG,gBAAgB,GAAG,kBAAkB,CAAC;AAE5D,eAAO,MAAM,iBAAiB,EAAE,SAAS,mBAAmB,EAI3D,CAAC;AAEF,oEAAoE;AACpE,MAAM,WAAW,cAAc;IAC7B,8FAA8F;IAC9F,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,mBAAmB,EAAE,MAAM,CAAC,CAAC,CAAC;IAC/D;;;OAGG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE;QAClB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;QAC3B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;KAC1B,CAAC;CACH;AAED,wFAAwF;AACxF,eAAO,MAAM,SAAS,IAAI,CAAC;AAE3B,sCAAsC;AACtC,eAAO,MAAM,GAAG,QAAS,CAAC;AAE1B,0DAA0D;AAC1D,eAAO,MAAM,MAAM,GAAI,O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AM,eAAe,GAAI,GAAG,QAAQ,KAAG,OAGe,CAAC;AAE9D,wCAAwC;AACxC,eAAO,MAAM,aAAa,GAAI,IAAI,SAAS,QAAQ,EAAE,KAAG,SAAS,UAAU,EAKtE,CAAC"}
@@ -1,12 +1,3 @@
1
- /**
2
- * The sentences of body prose — one splitter, so every rule that counts or judges sentences cuts
3
- * them the same way (`tex/claim-provenance` judges each; `tex/register` counts them).
4
- *
5
- * A passage becomes one text: its prose as itself, and each mark (a citation, a cross-reference) or
6
- * math as one character no prose contains, where it stands. `Intl.Segmenter` cuts that text; a break
7
- * after an abbreviation is undone, and marks set right after a full stop belong to the sentence the
8
- * full stop ends.
9
- */
10
1
  import type { Passage, ProsePiece, Segment, TextRun } from "./tex-document.ts";
11
2
  /** What stands in a sentence's text for a mark: characters no prose contains (private use). */
12
3
  export declare const CITATION = "\uE000";
@@ -19,8 +10,9 @@ export declare const runOf: (p: Passage) => TextRun;
19
10
  /** `[from, to)` of a text. */
20
11
  export type Range = readonly [number, number];
21
12
  /**
22
- * The sentences of `text`, as `[from, to)` ranges. A break after an abbreviation is undone, and
23
- * marks standing right after a full stop belong to the sentence the full stop ends.
13
+ * The sentences of `text`, as `[from, to)` ranges. A break the segmenter withheld before a lowercase
14
+ * word is put back, a break after an abbreviation is undone, and marks standing right after a full
15
+ * stop belong to the sentence the full stop ends.
24
16
  */
25
17
  export declare function sentences(text: string): readonly Range[];
26
18
  //# sourceMappingURL=sentences.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sentences.d.ts","sourceRoot":"","sources":["../../src/domain/sentences.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE/E,+FAA+F;AAC/F,eAAO,MAAM,QAAQ,WAAM,CAAC;AAC5B,eAAO,MAAM,SAAS,WAAM,CAAC;AAC7B,eAAO,MAAM,IAAI,WAAM,CAAC;AAExB,oGAAoG;AACpG,wBAAgB,SAAS,CAAC,CAAC,EAAE,UAAU,GAAG,OAAO,CAYhD;AAED,2EAA2E;AAC3E,eAAO,MAAM,KAAK,GAAI,GAAG,OAAO,KAAG,OAGlC,CAAC;AAWF,8BAA8B;AAC9B,MAAM,MAAM,KAAK,GAAG,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAE9C;;;GAGG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,KAAK,EAAE,CAaxD"}
1
+ {"version":3,"file":"sentences.d.ts","sourceRoot":"","sources":["../../src/domain/sentences.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE/E,+FAA+F;AAC/F,eAAO,MAAM,QAAQ,WAAM,CAAC;AAC5B,eAAO,MAAM,SAAS,WAAM,CAAC;AAC7B,eAAO,MAAM,IAAI,WAAM,CAAC;AAExB,oGAAoG;AACpG,wBAAgB,SAAS,CAAC,CAAC,EAAE,UAAU,GAAG,OAAO,CAYhD;AAED,2EAA2E;AAC3E,eAAO,MAAM,KAAK,GAAI,GAAG,OAAO,KAAG,OAGlC,CAAC;AA0CF,8BAA8B;AAC9B,MAAM,MAAM,KAAK,GAAG,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAe9C;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,KAAK,EAAE,CAexD"}
@@ -1,3 +1,14 @@
1
+ /**
2
+ * The sentences of body prose — one splitter, so every rule that counts or judges sentences cuts
3
+ * them the same way (`tex/claim-provenance` judges each; `tex/register` counts them).
4
+ *
5
+ * A passage becomes one text: its prose as itself, and each mark (a citation, a cross-reference) or
6
+ * math as one character no prose contains, where it stands. `Intl.Segmenter` cuts that text, and the
7
+ * break it withholds before a sentence that opens in lowercase is put back; a break after an
8
+ * abbreviation is undone, and marks set right after a full stop belong to the sentence the full stop
9
+ * ends — unless a lowercase word follows them, which makes them the next sentence's subject.
10
+ */
11
+ import { sortBy, unique } from "remeda";
1
12
  /** What stands in a sentence's text for a mark: characters no prose contains (private use). */
2
13
  export const CITATION = "";
3
14
  export const REFERENCE = "";
@@ -24,22 +35,56 @@ export const runOf = (p) => {
24
35
  /** An abbreviation whose full stop does not end a sentence, at the end of a segment. */
25
36
  const ABBREVIATION = /(?:^|[^\p{L}])(?:e\.g|i\.e|cf|vs|et al|Figs?|Secs?|Tab|Eqs?|No|App|approx|resp)\.\s*$/u;
26
37
  const SEGMENTER = new Intl.Segmenter("en", { granularity: "sentence" });
27
- /** Marks, and the spaces among them, that open a segment: a `\cite` or a footnote set after the full stop. */
28
- const LEADING_MARKS = /^[\s]*[]/u;
29
38
  /**
30
- * The sentences of `text`, as `[from, to)` ranges. A break after an abbreviation is undone, and
31
- * marks standing right after a full stop belong to the sentence the full stop ends.
39
+ * A full stop, the closing quotes after it and the spaces after those, when the next letter is
40
+ * lowercase. Rule SB8 of UAX #29 withholds the break there, so `Intl.Segmenter` runs `16 GB. fp16
41
+ * is …` into one sentence (#543); so it does when a mark, or a macro the reader leaves out, opens the
42
+ * next sentence (`\citet{x} shows`). Between the spaces and that letter stands only what SB8 skips:
43
+ * marks, math, digits, punctuation that ends no sentence. A bracket right after the full stop keeps
44
+ * it inside the sentence (`(Disp.) is`).
45
+ */
46
+ const LOWERCASE_OPENING = /\.['"’”]*\s+(?=[^\p{L}.!?]*\p{Ll})/gu;
47
+ /**
48
+ * A full stop that ends no sentence before a lowercase word: a dotted abbreviation (`i.i.d.`,
49
+ * `w.r.t.`, `Ph.D.`), an initial (`Y.`, the `P.` of `C.-P.`), an ellipsis, the short name of a
50
+ * numbered thing (`Art. 5(c)`, `Eqn. 3`, `eq. 2`, `see refs. 4`), a company's (`Co.`, `Inc.`) or a
51
+ * common truncation (`etc.`, `avg.`, `dim.`), or an inline enumerator (`cases: 1. the`, `and 2. the`,
52
+ * `(1. parse`). Before a capital each of these may end a sentence, so the
53
+ * segmenter's own breaks after them stay. Matched against the text up to and including the full
54
+ * stop, at most `WINDOW` characters of it.
55
+ */
56
+ const ABBREVIATION_BEFORE_LOWERCASE = /(?:\p{L}\.\p{L}{1,3}|(?:^|[^\p{L}])(?:\p{Lu}|Appx|Art|Def|Thm|Lem|Prop|Alg|Ch|Vol|pp|Refs?|Eqns?|eqn|eqs?|refs?|Co|Inc|Ltd|Corp|etc|avg|func|dim)|(?:^|[:;,(]\s*|\b(?:and|or)\s+)\d{1,2}|\.\.)\.$/u;
57
+ /** Enough text before a full stop to hold the longest abbreviation above and the character before it. */
58
+ const WINDOW = 8;
59
+ /**
60
+ * Marks, and the spaces among them, that open a segment: a `\cite` or a footnote set after the full
61
+ * stop — not when a lowercase word follows them, which makes them the subject of the sentence they open.
62
+ */
63
+ const LEADING_MARKS = new RegExp(`^[\\s${CITATION}${REFERENCE}]*[${CITATION}${REFERENCE}](?![^\\p{L}.!?]*\\p{Ll})`, "u");
64
+ /** Where `Intl.Segmenter` starts a sentence, and where it withheld a start before a lowercase word. */
65
+ const startsOf = (text) => {
66
+ const segmented = [...SEGMENTER.segment(text)].map((s) => s.index);
67
+ const withheld = [...text.matchAll(LOWERCASE_OPENING)].flatMap((m) => ABBREVIATION_BEFORE_LOWERCASE.test(text.slice(Math.max(0, m.index + 1 - WINDOW), m.index + 1))
68
+ ? []
69
+ : [m.index + m[0].length]);
70
+ return sortBy(unique([...segmented, ...withheld]), (at) => at);
71
+ };
72
+ /**
73
+ * The sentences of `text`, as `[from, to)` ranges. A break the segmenter withheld before a lowercase
74
+ * word is put back, a break after an abbreviation is undone, and marks standing right after a full
75
+ * stop belong to the sentence the full stop ends.
32
76
  */
33
77
  export function sentences(text) {
34
- return [...SEGMENTER.segment(text)].reduce((acc, s) => {
78
+ const starts = startsOf(text);
79
+ return starts.reduce((acc, start, i) => {
80
+ const end = starts[i + 1] ?? text.length;
35
81
  const prev = acc.at(-1);
36
- const end = s.index + s.segment.length;
37
82
  if (prev === undefined)
38
- return [[s.index, end]];
83
+ return [[start, end]];
39
84
  const before = acc.slice(0, -1);
40
85
  if (ABBREVIATION.test(text.slice(...prev)))
41
86
  return [...before, [prev[0], end]];
42
- const split = s.index + (LEADING_MARKS.exec(s.segment)?.[0].length ?? 0);
87
+ const split = start + (LEADING_MARKS.exec(text.slice(start, end))?.[0].length ?? 0);
43
88
  return split < end
44
89
  ? [...before, [prev[0], split], [split, end]]
45
90
  : [...before, [prev[0], end]];
@@ -1 +1 @@
1
- {"version":3,"file":"sentences.js","sourceRoot":"","sources":["../../src/domain/sentences.ts"],"names":[],"mappings":"AAWA,+FAA+F;AAC/F,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,CAAC;AAC5B,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,CAAC;AAC7B,MAAM,CAAC,MAAM,IAAI,GAAG,GAAG,CAAC;AAExB,oGAAoG;AACpG,MAAM,UAAU,SAAS,CAAC,CAAa;IACrC,QAAQ,CAAC,CAAC,IAAI,EAAE,CAAC;QACf,KAAK,MAAM;YACT,OAAO,CAAC,CAAC,OAAO,CAAC;QACnB,KAAK,OAAO;YACV,OAAO;gBACL,IAAI,EAAE,CAAC,CAAC,KAAK,KAAK,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS;gBACnD,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK;aACjB,CAAC;QACJ,KAAK,MAAM;YACT,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;IAC5C,CAAC;AACH,CAAC;AAED,2EAA2E;AAC3E,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,CAAU,EAAW,EAAE;IAC3C,MAAM,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,OAAO,EAAE,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AE,GAAG,CAAC,CAAC;YAC7C,CAAC,CAAC,CAAC,GAAG,MAAM,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;IAClC,CAAC,EAAE,EAAE,CAAC,CAAC;AACT,CAAC"}
@@ -12,8 +12,8 @@ that file's header.`,
12
12
  | --- | --- |
13
13
  | **Both halves** (root \`CLAUDE.md\`), for every registered rule | ${file("src/rule-cases.test.ts")} fails on a registered rule with no cases |
14
14
  | **One rule, one requirement**: two checks with different reasons to switch them off are two rules | review |
15
- | **A venue requirement is validated on real accepted papers** of that venue, built to PDF, with the ground truth established independently | review; the papers are in ${file("fixtures/accepted-papers/README.md")} |
16
- | **Quiet on correct real papers**: every rule runs over the 6 accepted papers and the 108 arXiv preprints of ${file("fixtures/arxiv-papers/README.md")}, and a finding not in a paper's baseline fails the test. Read each new finding and decide: a real defect in the paper → re-record the baseline and say so in the PR; a false alarm → fix the rule, never the baseline. | ${file("fixtures/real-papers.test.ts")} |
15
+ | **A venue requirement is validated on real accepted papers** of that venue, built to PDF, with the ground truth established independently | review; the papers are in ${file("fixtures/real-papers/accepted/README.md")} |
16
+ | **Quiet on correct real papers**: every rule runs over the 6 accepted papers and the 108 arXiv preprints of ${file("fixtures/real-papers/preprints/README.md")}, and a finding not in a paper's baseline fails the test. Read each new finding and decide: a real defect in the paper → re-record the baseline and say so in the PR; a false alarm → fix the rule, never the baseline. | ${file("fixtures/real-papers.test.ts")} |
17
17
  | **Its page**, \`docs/rules/<group>/<rule>.md\`, and \`meta.docs.url\` pointing at it | ${file("src/rule-docs.test.ts")}; its \`AWAITING_PAGE\` list only shrinks |
18
18
  | **Loud on an empty input set**: a rule that matched no files must not report like one that passed | ${file("scripts/rules-see-files.mjs")}, per rule and not per glob, in \`npm run check\` |
19
19
 
@@ -1 +1 @@
1
- {"version":3,"file":"CLAUDE.md.spec.js","sourceRoot":"","sources":["../../eslint-rules/CLAUDE.md.spec.ts"],"names":[],"mappings":"AA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AAI,CAAC,eAAe,CAAC,6BAA6B;QAEhG,0BAA0B,EAAE,KAAK,CAAA;;;;;;;;;;;;iEAY4B;KAC9D;IACD,KAAK,EAAE;QACL,uBAAuB,EAAE,QAAQ,CAC/B,0ZAA0Z,CAC3Z;KACF;CACF,CAAC,CAAC"}
@@ -59,7 +59,7 @@ export function judgeFolder(folder, preset, others) {
59
59
  * A template family (`acm-sigconf`, `ieee-conference`), as the preset declares itself (`"type":
60
60
  * "family"`), which a paper for a venue paperlint has no preset for extends directly. Such a paper
61
61
  * declares a format, not a venue, so a venue in its folder name may be its own: the accepted ACSAC
62
- * papers in `fixtures/accepted-papers/` extend `ieee-conference` from folders named `…-acsac24`, and
62
+ * papers in `fixtures/real-papers/accepted/` extend `ieee-conference` from folders named `…-acsac24`, and
63
63
  * ACSAC is a shipped venue, the parent conference of `aidc-2026`.
64
64
  */
65
65
  const isFamily = (preset) => preset.identity.type === "family";
@@ -1,17 +1,20 @@
1
1
  /**
2
2
  * THE PARAGRAPH CEILING — `tex/max-paragraph-words`, a rule of the `tex` plugin over the body's
3
- * prose: a paragraph runs past `max` words (default 150).
3
+ * prose: a paragraph runs past `max` words (default 250).
4
4
  *
5
5
  * ── OFF BY DEFAULT ───────────────────────────────────────────────────────────────
6
6
  * No call for papers states a paragraph limit, so no venue is a source for the number. The rule is
7
7
  * registered and silent until a project turns it on in its `rules`, as `tex/heading-case` is. The
8
8
  * name and the `max` option follow ESLint's own `max-lines`, `max-len`, `max-statements`.
9
9
  *
10
- * ── WHERE 150 COMES FROM ─────────────────────────────────────────────────────────
11
- * The wall writing-craft.md names («The wall-of-text check»), measured
12
- * with this rule's counter on the accepted papers in `fixtures/accepted-papers/`: it sits at the
13
- * pooled 95th percentile of paragraph length of the five two-column IEEE ones (154). The measurement
14
- * is on the rule's page. A paragraph is at most `max` words; 150 is allowed.
10
+ * ── WHERE 250 COMES FROM ─────────────────────────────────────────────────────────
11
+ * The 99th percentile of paragraph length over the accepted real papers in
12
+ * `fixtures/real-papers/accepted/` (96 papers with at least 2,500 body words, 7,994 paragraphs,
13
+ * measured with this rule's counter): p99 is 252, so 250 leaves about 1% of accepted paragraphs
14
+ * over it. The author chose it on 2026-11-20. It rests on what 99% of accepted paragraphs pass, not
15
+ * on reviewer evidence: a pilot on ICLR 2025 presentation scores found no link between long
16
+ * paragraphs and the score (inconclusive). The measurement is on the rule's page. A paragraph is
17
+ * at most `max` words; 250 is allowed.
15
18
  *
16
19
  * ── WHAT IT READS ────────────────────────────────────────────────────────────────
17
20
  * The body's prose through the `LatexReader` port (`bodyProse`): paragraphs, list items and
@@ -25,9 +28,9 @@ import type { Caption, Passage } from "./domain/tex-document.ts";
25
28
  import { type ProseDeps } from "./tex-paper.ts";
26
29
  import { type Located, type TexRuleModule } from "./tex-venue-rules.ts";
27
30
  /** The ceiling when the config sets none: the largest paragraph that does not fire. */
28
- export declare const DEFAULT_MAX_PARAGRAPH_WORDS = 150;
29
- /** The numbers ceiling when the config sets none: a ninth number fires. */
30
- export declare const DEFAULT_MAX_PARAGRAPH_NUMBERS = 8;
31
+ export declare const DEFAULT_MAX_PARAGRAPH_WORDS = 250;
32
+ /** The numbers ceiling when the config sets none: an eleventh number fires. */
33
+ export declare const DEFAULT_MAX_PARAGRAPH_NUMBERS = 10;
31
34
  /** The sentence ceiling when the config sets none: a 56th word fires. */
32
35
  export declare const DEFAULT_MAX_SENTENCE_WORDS = 55;
33
36
  /** The caption ceiling when the config sets none: a 101st word fires. */
@@ -1 +1 @@
1
- {"version":3,"file":"readability.d.ts","sourceRoot":"","sources":["../src/readability.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAWjE,OAAO,EAA4B,KAAK,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC1E,OAAO,EAEL,KAAK,OAAO,EACZ,KAAK,aAAa,EACnB,MAAM,sBAAsB,CAAC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iB,GAC5B,UAAU,SAAS,OAAO,EAAE,EAC5B,KAAK,MAAM,EACX,aAAa,MAAM,KAClB,SAAS,OAAO,EAIf,CAAC;AAoEL,eAAO,MAAM,mBAAmB,GAAI,MAAM,SAAS,KAAG,aAiBpD,CAAC;AAsDH,2GAA2G;AAC3G,eAAO,MAAM,qBAAqB,GAAI,MAAM,SAAS,KAAG,aASrD,CAAC;AAEJ,iEAAiE;AACjE,eAAO,MAAM,uBAAuB,GAAI,MAAM,SAAS,KAAG,aASvD,CAAC;AAEJ,8DAA8D;AAC9D,eAAO,MAAM,oBAAoB,GAAI,MAAM,SAAS,KAAG,aASpD,CAAC"}
@@ -7,9 +7,9 @@ import { startOf } from "./register.js";
7
7
  import { readPaper, reportInPaper } from "./tex-paper.js";
8
8
  import { ruleDocsUrl, } from "./tex-venue-rules.js";
9
9
  /** The ceiling when the config sets none: the largest paragraph that does not fire. */
10
- export const DEFAULT_MAX_PARAGRAPH_WORDS = 150;
11
- /** The numbers ceiling when the config sets none: a ninth number fires. */
12
- export const DEFAULT_MAX_PARAGRAPH_NUMBERS = 8;
10
+ export const DEFAULT_MAX_PARAGRAPH_WORDS = 250;
11
+ /** The numbers ceiling when the config sets none: an eleventh number fires. */
12
+ export const DEFAULT_MAX_PARAGRAPH_NUMBERS = 10;
13
13
  /** The sentence ceiling when the config sets none: a 56th word fires. */
14
14
  export const DEFAULT_MAX_SENTENCE_WORDS = 55;
15
15
  /** The caption ceiling when the config sets none: a 101st word fires. */
@@ -1 +1 @@
1
- {"version":3,"file":"readability.js","sourceRoot":"","sources":["../src/readability.ts"],"names":[],"mappings":"AAwBA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EACL,aAAa,EACb,OAAO,GAER,MAAM,sBAAsB,CAAC;AAC9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IAAe,EAAiB,EAAE,CACrE,WAAW,CACT;IACE,IAAI,EAAE,oBAAoB;IAC1B,IAAI,EAAE,sDAAsD;IAC5D,QAAQ,EAAE,0BAA0B;IACpC,KAAK,EAAE,kBAAkB;CAC1B,EACD,IAAI,CACL,CAAC"}
@@ -150,7 +150,7 @@ Each planted paper of `fixtures/paper-sources/` carries `tex-truth.json`, writte
150
150
  `test/e2e/tex/paper-sources.e2e.ts` builds it with `pdflatex -recorder` and `bibtex` and snapshots the
151
151
  record the build writes. `-u` re-records; a TeX that answers differently fails. The unit tests of the
152
152
  consumers lay that file at `_build/sources.json` (`test/recorded-fixture.ts`). The accepted papers of
153
- `fixtures/accepted-papers/` carry theirs the same way (`test/e2e/tex/accepted-papers-record.e2e.ts`).
153
+ `fixtures/real-papers/accepted/` carry theirs the same way (`test/e2e/tex/accepted-papers-record.e2e.ts`).
154
154
  The files are the numbers; this document does not copy them.
155
155
 
156
156
  ## 9. Decisions
package/docs/e2e.md CHANGED
@@ -112,7 +112,7 @@ see it, so the content of the artifact is what gets measured.**
112
112
 
113
113
  **Where the body ends, on real papers** (`test/e2e/tex/page-count.e2e.ts`). `format/page-limit`
114
114
  counts a body that ends at the references, and that count is checked on papers nobody here wrote:
115
- the accepted ACSAC papers in `fixtures/accepted-papers/` that carry a `page-count.json` (ACSAC is
115
+ the accepted ACSAC papers in `fixtures/real-papers/accepted/` that carry a `page-count.json` (ACSAC is
116
116
  AIDC's parent venue, same IEEEtran template), built with figures replaced by blank boxes of the
117
117
  same size and the packages paperlint's TeX Live lacks vendored beside them. Each `page-count.json`
118
118
  holds the references page and the body count established by rendering the PDF and looking at it,
@@ -201,6 +201,6 @@ it so the LaTeX rules see LaTeX rather than a placeholder.
201
201
 
202
202
  ⚠️ **Every line of that corpus was written by somebody who already knew which rule would read it.**
203
203
  It keeps the stage machinery honest and it cannot tell you anything about false positives. So the
204
- run then adds one accepted paper from `fixtures/accepted-papers/` (`secure-acsac24`) and holds the
204
+ run then adds one accepted paper from `fixtures/real-papers/accepted/` (`secure-acsac24`) and holds the
205
205
  installed binary to that paper's recorded `baseline.json` — the same recording
206
206
  `fixtures/real-papers.test.ts` holds the repository's own `run` to.
@@ -33,8 +33,8 @@ writing, not a number the venue states.
33
33
  | [`tex/claim-emphasis`](rules/tex/claim-emphasis.md) | claims set in bold inside a sentence outside that band |
34
34
  | [`tex/relation-markers`](rules/tex/relation-markers.md) | words naming how a sentence relates to the one before (_because_, _however_ …) outside that band |
35
35
  | [`tex/negated-sentences`](rules/tex/negated-sentences.md) | negated sentences outside that band |
36
- | [`tex/max-paragraph-words`](rules/tex/max-paragraph-words.md) | a paragraph over 150 words |
37
- | [`tex/max-paragraph-numbers`](rules/tex/max-paragraph-numbers.md) | a paragraph holding more than 8 numbers |
36
+ | [`tex/max-paragraph-words`](rules/tex/max-paragraph-words.md) | a paragraph over 250 words |
37
+ | [`tex/max-paragraph-numbers`](rules/tex/max-paragraph-numbers.md) | a paragraph holding more than 10 numbers |
38
38
  | [`tex/max-sentence-words`](rules/tex/max-sentence-words.md) | a sentence over 55 words |
39
39
  | [`tex/max-caption-words`](rules/tex/max-caption-words.md) | a caption over 100 words, or a caption sentence over 40 |
40
40
 
@@ -24,7 +24,7 @@ way a paper is made to fit the page limit. A reviewer or a production editor who
24
24
  the paper; a page limit checked on a shrunk paper checks nothing.
25
25
 
26
26
  It is an error because it was measured to be exact on real papers, not assumed. On five accepted
27
- papers, built (`fixtures/accepted-papers/body-size.json`, `test/e2e/tex/page-count.e2e.ts`):
27
+ papers, built (`fixtures/real-papers/accepted/body-size.json`, `test/e2e/tex/page-count.e2e.ts`):
28
28
 
29
29
  | paper | declared | rendered (pdf.js) | measured (banal) | finding |
30
30
  | ------------------------------ | ---------------------- | ------------------------------------------ | ---------------- | ------- |
@@ -373,10 +373,10 @@ here.
373
373
  A rule that judges a venue's requirement is validated on papers of that venue, not on fixtures its
374
374
  author wrote. Two corpora, 2026-10-03, both measured on headings, before the rule read `\title`:
375
375
 
376
- - **The accepted paper in this repository**, `fixtures/accepted-papers/agenticdev-acm26`: 9
376
+ - **The accepted paper in this repository**, `fixtures/real-papers/accepted/agenticdev-acm26`: 9
377
377
  headings, 6 of them in sentence case, which the vendor's checklist does not accept. The rule
378
378
  reports 18 words, every one a true positive, and its fixes write the six corrected
379
- headings ([`fixtures/accepted-papers/README.md`](https://github.com/zernie/paperlint/blob/main/fixtures/accepted-papers/README.md)).
379
+ headings ([`fixtures/real-papers/accepted/README.md`](https://github.com/zernie/paperlint/blob/main/fixtures/real-papers/accepted/README.md)).
380
380
  Its `\title` and short title, read since 2026-10-04, are already in headline style and add no
381
381
  finding.
382
382
  - **277 `acmart` sources from arXiv** (authors' versions of papers whose arXiv comment names an ACM
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## What it catches
6
6
 
7
- A paragraph of the body with more than `max` numbers (default 8, so a ninth fires). It reports once per paragraph, at its start, with the count and the paragraph's first words.
7
+ A paragraph of the body with more than `max` numbers (default 10, so an eleventh fires). It reports once per paragraph, at its start, with the count and the paragraph's first words.
8
8
 
9
9
  ## How it counts
10
10
 
@@ -22,7 +22,7 @@ so no venue preset carries the number. In the root `paperlint.json`, or in one p
22
22
 
23
23
  ```json
24
24
  {
25
- "rules": { "tex/max-paragraph-numbers": ["warn", { "max": 8 }] }
25
+ "rules": { "tex/max-paragraph-numbers": ["warn", { "max": 10 }] }
26
26
  }
27
27
  ```
28
28
 
@@ -32,19 +32,25 @@ See [optional rules](../../optional-rules.md).
32
32
 
33
33
  A paragraph with many figures reads as a table written in prose; the reader cannot hold them.
34
34
 
35
- The default is a general one, not measured per venue. It has not been checked against the accepted
36
- papers of `fixtures/accepted-papers/` in this version; the earlier draft of the issue recorded that
37
- every accepted paper fires at least one of the two sibling ceilings, which is why both are off.
35
+ The default is the 99th percentile per unit over the accepted real papers in
36
+ `fixtures/real-papers/accepted/` (96 papers with at least 2,500 body words, 7,994 paragraphs,
37
+ measured with this rule's counter). The author chose it on 2026-11-20.
38
+
39
+ | unit | accepted p95 | p99 | p99.9 | old default | default | units over the old default | papers quiet at the old default |
40
+ | --------------------- | -----------: | --: | ----: | ----------: | ------: | -------------------------: | ------------------------------: |
41
+ | numbers per paragraph | 5 | 10 | 19 | 8 | 10 | 1.66% | 49/96 |
42
+
43
+ A pilot on ICLR 2025 reviewer presentation scores (30 papers per side) found no link between numbers per paragraph and the score (inconclusive; Cliff's delta for the share of sentences over 55 words -0.12, CI [-0.39, +0.18]), so the default rests on what 99% of accepted units pass, not on reviewer evidence.
38
44
 
39
45
  ## Examples
40
46
 
41
47
  ```latex
42
- In 2023 we saw 1, 2, 3, 4, 5, 6, 7, 8 and 9 cases ... % fires: nine numbers
48
+ In 2023 we saw 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 and 11 cases ... % fires: eleven numbers
43
49
  ```
44
50
 
45
51
  ## Options / preset fields
46
52
 
47
- `{ "max": 8 }` — an integer, the largest value that does not fire. No preset field.
53
+ `{ "max": 10 }` — an integer, the largest value that does not fire. No preset field.
48
54
 
49
55
  ## What it does not check
50
56
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## What it catches
6
6
 
7
- A paragraph of the body longer than `max` words (default 150; 150 itself is allowed). It reports once
7
+ A paragraph of the body longer than `max` words (default 250; 250 itself is allowed). It reports once
8
8
  per paragraph, at its start, with the word count and the paragraph's first words.
9
9
 
10
10
  Words are counted as [`tex/register`](register.md) counts them: a citation, a cross-reference or
@@ -19,7 +19,7 @@ limit, so no venue preset can carry the number; it is a project's own choice. In
19
19
 
20
20
  ```json
21
21
  {
22
- "rules": { "tex/max-paragraph-words": ["warn", { "max": 150 }] }
22
+ "rules": { "tex/max-paragraph-words": ["warn", { "max": 250 }] }
23
23
  }
24
24
  ```
25
25
 
@@ -29,45 +29,34 @@ or in one paper's own `paperlint.json`, for that paper alone. See
29
29
  ## Why
30
30
 
31
31
  A reader sees a paragraph's length before reading a word. A page-long block is skimmed past, and what
32
- the argument turns on in the middle of it is lost. 150 is the wall `writing-craft.md` names (its
33
- "wall-of-text check"); it is a general default, not a venue's.
34
-
35
- Measured with this rule's own counter on the accepted papers of `fixtures/accepted-papers/`
36
- (p50 / p95 / p99 / max in words; one finding per paragraph over 150):
37
-
38
- | paper | layout | paragraphs | p50 | p95 | p99 | max | over 150 |
39
- | ----------------------------------------- | --------------- | ---------: | --: | --: | --: | --: | -------: |
40
- | `llm-splained-acsac25` (ACSAC 2025) | IEEE two-column | 190 | 44 | 132 | 151 | 174 | 2 |
41
- | `secure-acsac24` (ACSAC 2024) | IEEE two-column | 101 | 71 | 150 | 191 | 214 | 5 |
42
- | `barovox-acsac24` (ACSAC 2024) | IEEE two-column | 101 | 67 | 154 | 196 | 229 | 8 |
43
- | `rr-dataset-quality-acsac24` (ACSAC 2024) | IEEE two-column | 117 | 50 | 209 | 262 | 431 | 12 |
44
- | `leaking-queries-acsac25` (ACSAC 2025) | IEEE two-column | 99 | 87 | 170 | 213 | 213 | 11 |
45
- | pooled, the five IEEE papers | IEEE two-column | 608 | 63 | 154 | 214 | 431 | 38 |
46
- | `agenticdev-acm26` (AgenticDev '26) | ACM sigconf | 43 | 90 | 194 | 282 | 282 | 9 |
47
- | pooled, all six | | 651 | 63 | 157 | 214 | 431 | 47 |
48
-
49
- 150 sits at the pooled 95th percentile of the five IEEE papers (154), so it is **not quiet on
50
- accepted papers**: about one paragraph in twenty of an accepted paper is over it. That is why the
51
- rule is off by default and why accepted papers are not in the rule's baseline. The one ACM paper has
52
- a longer median (90 words against 63); one paper cannot set a ceiling, so a project that wants its
53
- own number sets `max`.
32
+ the argument turns on in the middle of it is lost.
33
+
34
+ The default is the 99th percentile per unit over the accepted real papers in
35
+ `fixtures/real-papers/accepted/` (96 papers with at least 2,500 body words, 7,994 paragraphs,
36
+ measured with this rule's counter). The author chose it on 2026-11-20.
37
+
38
+ | unit | accepted p95 | p99 | p99.9 | old default | default | units over the old default | papers quiet at the old default |
39
+ | --------------- | -----------: | --: | ----: | ----------: | ------: | -------------------------: | ------------------------------: |
40
+ | paragraph words | 184 | 252 | 344 | 150 | 250 | 10.02% | 0/96 |
41
+
42
+ A pilot on ICLR 2025 reviewer presentation scores (30 papers per side) found no link between long sentences or paragraphs and the score (inconclusive; Cliff's delta for the share of sentences over 55 words -0.12, CI [-0.39, +0.18]), so the default rests on what 99% of accepted units pass, not on reviewer evidence.
54
43
 
55
44
  ## Examples
56
45
 
57
46
  ```latex
58
- A paragraph of two hundred words that states the method, the three baselines, the metric,
59
- the dataset, its size and its limits all in one block ... % fires: over 150 words
47
+ A paragraph of three hundred words that states the method, the three baselines, the metric,
48
+ the dataset, its size and its limits all in one block ... % fires: over 250 words
60
49
 
61
50
  The method has three parts. % passes
62
51
  ```
63
52
 
64
53
  ## Options / preset fields
65
54
 
66
- `{ "max": 150 }` — an integer, the largest paragraph that does not fire. No preset field.
55
+ `{ "max": 250 }` — an integer, the largest paragraph that does not fire. No preset field.
67
56
 
68
57
  ## What it does not check
69
58
 
70
- How wide the column is. The wall a reader meets is in the rendered PDF, where 150 words fill more of
59
+ How wide the column is. The wall a reader meets is in the rendered PDF, where 250 words fill more of
71
60
  a narrow two-column page than of a one-column one; the rule counts words, not lines. A paragraph that
72
61
  is a list in disguise is counted as written. A sentence is split where `tex/register` splits it.
73
62