paperlint 20.6.1 → 20.7.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 (70) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/dist/default-levels.d.ts +5 -0
  3. package/dist/default-levels.d.ts.map +1 -0
  4. package/dist/default-levels.js +36 -0
  5. package/dist/default-levels.js.map +1 -0
  6. package/dist/domain/preset-submission-fields.d.ts +15 -0
  7. package/dist/domain/preset-submission-fields.d.ts.map +1 -0
  8. package/dist/domain/preset-submission-fields.js +25 -0
  9. package/dist/domain/preset-submission-fields.js.map +1 -0
  10. package/dist/domain/venue-scope.d.ts +29 -0
  11. package/dist/domain/venue-scope.d.ts.map +1 -0
  12. package/dist/domain/venue-scope.js +18 -0
  13. package/dist/domain/venue-scope.js.map +1 -0
  14. package/dist/folder-venue-rule.d.ts +1 -1
  15. package/dist/folder-venue-rule.d.ts.map +1 -1
  16. package/dist/folder-venue-rule.js.map +1 -1
  17. package/dist/preset-merge.d.ts +34 -0
  18. package/dist/preset-merge.d.ts.map +1 -0
  19. package/dist/preset-merge.js +89 -0
  20. package/dist/preset-merge.js.map +1 -0
  21. package/dist/presets.d.ts +3 -2
  22. package/dist/presets.d.ts.map +1 -1
  23. package/dist/presets.js +3 -84
  24. package/dist/presets.js.map +1 -1
  25. package/dist/tex-requirements.d.ts +4 -1
  26. package/dist/tex-requirements.d.ts.map +1 -1
  27. package/dist/tex-requirements.js +3 -20
  28. package/dist/tex-requirements.js.map +1 -1
  29. package/dist/tex-venue-rules.d.ts +4 -24
  30. package/dist/tex-venue-rules.d.ts.map +1 -1
  31. package/dist/tex-venue-rules.js +6 -84
  32. package/dist/tex-venue-rules.js.map +1 -1
  33. package/dist/venue-leftover.d.ts +50 -0
  34. package/dist/venue-leftover.d.ts.map +1 -0
  35. package/dist/venue-leftover.js +129 -0
  36. package/dist/venue-leftover.js.map +1 -0
  37. package/docs/rules/tex/venue-leftover.md +34 -3
  38. package/docs/rules.md +1 -1
  39. package/docs/venues.md +6 -4
  40. package/package.json +2 -1
  41. package/presets/acl-latex.md +1 -1
  42. package/presets/langcode-2027.jsonc +106 -0
  43. package/presets/langcode-2027.md +79 -0
  44. package/presets/naacl-2027.jsonc +19 -0
  45. package/presets/naacl-2027.md +42 -0
  46. package/presets/venue-profile.schema.json +22 -1
  47. package/scripts/eslint-file-length.mjs +5 -5
  48. package/scripts/release-config.test.ts +114 -0
  49. package/scripts/release-type.test.ts +86 -0
  50. package/scripts/release-type.ts +76 -0
  51. package/scripts/semantic-release-plugins.d.ts +20 -1
  52. package/src/default-levels.test.ts +43 -0
  53. package/src/default-levels.ts +53 -0
  54. package/src/domain/preset-submission-fields.ts +49 -0
  55. package/src/domain/venue-scope.test.ts +33 -0
  56. package/src/domain/venue-scope.ts +39 -0
  57. package/src/folder-venue-rule.ts +2 -1
  58. package/src/paper-settings-commands.test.ts +1 -1
  59. package/src/preset-card-rule.test.ts +2 -0
  60. package/src/preset-merge.ts +141 -0
  61. package/src/presets-scope.test.ts +177 -0
  62. package/src/presets.test.ts +17 -56
  63. package/src/presets.ts +5 -130
  64. package/src/rule-cases.test.ts +10 -3
  65. package/src/tex-requirements.ts +14 -45
  66. package/src/tex-venue-rules.test.ts +66 -154
  67. package/src/tex-venue-rules.ts +25 -146
  68. package/src/venue-leftover.test.ts +112 -0
  69. package/src/venue-leftover.ts +207 -0
  70. package/src/venue-rules.test.ts +2 -2
@@ -12,6 +12,25 @@ It only knows the venues paperlint ships a preset for, by each preset's `name` a
12
12
  year of each edition, which is the preset's id (`icse-2028` is ICSE 2028). A venue with no preset is
13
13
  not recognized.
14
14
 
15
+ It runs only when the paper extends a venue preset. A template family (`paperlint:acm-sigconf`,
16
+ `paperlint:ieee-conference`) names no venue, so no venue is "another" one, and the rule is silent.
17
+
18
+ ## Where it looks
19
+
20
+ | part of the paper | read |
21
+ | ---------------------------------------------------------------- | ---------------------------- |
22
+ | a venue-stating command (`\acmConference` …), wherever it stands | always |
23
+ | the front matter: everything before the first `\section` | always |
24
+ | the body: from the first `\section` on | only with `{ "body": true }` |
25
+ | a paper with no `\section` | all of it, as front matter |
26
+
27
+ The body is off by default because related work names venues with recent years on every page:
28
+ «Lam et al. (CodeCrash, NeurIPS 2025)», «A separate ASE 2026 study examines …». On the 206 papers of
29
+ the real-paper corpus, every one of the 18 findings the rule gave in the body or under a family preset
30
+ was such a citation or the paper's own venue line; with this scope it gives none. A leftover from an
31
+ earlier submission sits in the author block, the venue line, a footnote on the title page or the
32
+ abstract, which the default still reads.
33
+
15
34
  ## When a name counts
16
35
 
17
36
  A venue preset is one edition, and its year has one source: the id. A name never carries a year
@@ -31,7 +50,7 @@ year: any year beside another venue's name counts, and its own names never do.
31
50
  ACL's template has no venue-stating command; IEEEtran states the venue, when at all, in the
32
51
  `\IEEEpubid` copyright line.
33
52
 
34
- It reads the whole paper — `paper.tex` with the files it `\input`s, `\include`s or `\subfile`s
53
+ It reads `paper.tex` with the files it `\input`s, `\include`s or `\subfile`s
35
54
  spliced in; a name found in an included file is reported at that include, with the file and line at
36
55
  the front of the message. It looks at what a reader sees — prose, the author block, captions,
37
56
  footnotes, a citation's note in square brackets, and the venue-stating commands — and ignores
@@ -59,7 +78,11 @@ the definition, whether or not the macro is used: the rule does not expand macro
59
78
  and the exit code stays 0
60
79
  ```
61
80
 
62
- What the machine cannot see: a venue without a shipped preset; a year written apart from the name
81
+ What the machine cannot see: a venue without a shipped preset; a leftover in the body, unless
82
+ `body` is on; an abstract set as `\section*{Abstract}` (the front matter ends at the first section,
83
+ starred or not, so such an abstract is body); a `\section` token that is no heading
84
+ (`\titlespacing*{\section}`, `\let\oldsection\section`) standing before the abstract, which ends the
85
+ front matter early; a year written apart from the name
63
86
  («MSR, in 2027»); a name split by markup (`\textbf{AI}Sec`); a venue named in a sentence on purpose,
64
87
  which only a disable directive tells apart.
65
88
 
@@ -95,7 +118,13 @@ edition.
95
118
 
96
119
  ## Preset fields
97
120
 
98
- No rule options. It reads every shipped preset's `name` and `aliases`, collected along `extends`,
121
+ One rule option, `body` (default `false`): also read the body, from the first `\section` on.
122
+
123
+ ```jsonc
124
+ "rules": { "tex/venue-leftover": ["warn", { "body": true }] }
125
+ ```
126
+
127
+ It reads every shipped preset's `name` and `aliases`, collected along `extends`,
99
128
  and the year of its id:
100
129
 
101
130
  ```jsonc
@@ -121,6 +150,8 @@ venue preset, a parent of another year, or parents that name each other, are ref
121
150
  ## What it does not check
122
151
 
123
152
  - A venue no shipped preset describes.
153
+ - A paper that extends a template family rather than a venue.
154
+ - The body, from the first `\section` on, unless `body` is on.
124
155
  - A name split by markup (`\textbf{AI}Sec`).
125
156
  - A name in prose with no year beside it («submitted to MSR»): the rule cannot tell it from an
126
157
  acronym or a mention of the series.
package/docs/rules.md CHANGED
@@ -48,7 +48,7 @@ reads and when it fails. Errors fail `paperlint lint`; warnings print and do not
48
48
  | [`tex/heading-case`](rules/tex/heading-case.md) | optional; the AgenticDev preset sets `error` | `paper.tex` and the files it includes | a word in the paper's `\title` or in a `\section`, `\subsection`, `\subsubsection`, `\paragraph` or `\subparagraph` title is not in the style its scope asks: `{ "title", "headings", "levels"? }`, each `chicago-headline` (Conference Publishing's quote of the Chicago Manual of Style), `sentence` (first word only) or `any`. Words that are a preposition in one title and a particle in another (`up`, `on`, `in`) are not read mid-title. **Fixable:** `--fix` — [page](rules/tex/heading-case.md) |
49
49
  | [`format/layout-override`](rules/format/layout-override.md) | error | `paper.tex` → `paperlint.json` | the source changes the page layout the venue's template sets for the whole document — `geometry`, a layout `\setlength`, `\linespread`, `\baselinestretch` — [page](rules/format/layout-override.md) |
50
50
  | [`anonymity/identity`](rules/anonymity/identity.md) | error | `paper.tex` → `_build/paper.facts.json` | a double-blind venue (`"blind": true`) and no `identity` declared, or a declared name, handle, email or project in the PDF's text, metadata or link targets — [page](rules/anonymity/identity.md) |
51
- | [`tex/venue-leftover`](rules/tex/venue-leftover.md) | warn | `paper.tex` → `paperlint.json` | the text names another shipped venue than the edition the paper extends («Submission to VenueA 2026» in a paper now set for VenueB 2027): in prose beside a year no older than the paper's own minus one, in a venue-stating command (`\acmConference` …) always — [page](rules/tex/venue-leftover.md) |
51
+ | [`tex/venue-leftover`](rules/tex/venue-leftover.md) | warn | `paper.tex` → `paperlint.json` | the text names another shipped venue than the edition the paper extends («Submission to VenueA 2026» in a paper now set for VenueB 2027): in prose beside a year no older than the paper's own minus one, in a venue-stating command (`\acmConference` …) always; reads the front matter (the body with `body: true`), silent under a template family — [page](rules/tex/venue-leftover.md) |
52
52
  | [`tex/claim-provenance`](rules/tex/claim-provenance.md) | opt-in: `paperlint:writing` | `paper.tex` | a sentence of the body states a number and does not say whose it is — no citation or link, no _we_/_our_, no `\ref` or "Table 2", no sample ("n = 134", "48 runs") — [page](rules/tex/claim-provenance.md) |
53
53
  | [`tex/register`](rules/tex/register.md) | opt-in: `paperlint:writing` | `paper.tex` and the files it includes | the body runs to a post's register: more than 0.8 sentences per 1000 words open with _And_, _So_, _But_, _Nor_, _Or_ or _Yet_ — the limit is an option — [page](rules/tex/register.md) |
54
54
  | [`tex/contrast-frames`](rules/tex/contrast-frames.md) | opt-in: `paperlint:writing` | `paper.tex` and the files it includes → `paperlint.json` | contrast frames (_X, not Y_, _not X but Y_, _rather than_, _instead of_, _as opposed to_) per 10,000 words fall outside the band the venue preset's anchors set (AIDC: 0–10.4, from five accepted ACSAC papers); above it, each frame is reported too — [page](rules/tex/contrast-frames.md) |
package/docs/venues.md CHANGED
@@ -65,10 +65,12 @@ MSR is held beside ICSE, but it is a conference of its own, not a workshop, so i
65
65
 
66
66
  **Natural language processing**
67
67
 
68
- | edition | parent | family | what is checked |
69
- | ---------------------- | ---------------------- | --------------------- | ----------------------------------------------- |
70
- | `paperlint:emnlp-2026` | — | `paperlint:acl-latex` | the class line and packages (minimal preset) |
71
- | `paperlint:realm-2026` | `paperlint:emnlp-2026` | `paperlint:acl-latex` | the workshop's format; no page limit (its card) |
68
+ | edition | parent | family | what is checked |
69
+ | ------------------------- | ---------------------- | --------------------- | ----------------------------------------------- |
70
+ | `paperlint:emnlp-2026` | — | `paperlint:acl-latex` | the class line and packages (minimal preset) |
71
+ | `paperlint:realm-2026` | `paperlint:emnlp-2026` | `paperlint:acl-latex` | the workshop's format; no page limit (its card) |
72
+ | `paperlint:naacl-2027` | — | `paperlint:acl-latex` | the class line and packages (minimal preset) |
73
+ | `paperlint:langcode-2027` | `paperlint:naacl-2027` | `paperlint:acl-latex` | the workshop's call; no page limit (its card) |
72
74
 
73
75
  **Machine learning and AI**
74
76
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "paperlint",
3
- "version": "20.6.1",
3
+ "version": "20.7.0",
4
4
  "description": "A linter for scientific papers written in LaTeX: catches mistakes before you submit to a conference or journal.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -54,6 +54,7 @@
54
54
  },
55
55
  "devDependencies": {
56
56
  "@semantic-release/commit-analyzer": "13.0.1",
57
+ "@semantic-release/exec": "7.1.0",
57
58
  "@semantic-release/release-notes-generator": "14.1.1",
58
59
  "@types/js-yaml": "^4.0.9",
59
60
  "@types/markdown-it": "^14.2.0",
@@ -32,7 +32,7 @@ measurement is not enough to move them here.
32
32
  <!-- prettier-ignore-start -->
33
33
  <!-- Generated from acl-latex.jsonc by `npx eslint --fix` (rule preset/card-rules). Edit the preset, not this section. -->
34
34
 
35
- **`paperlint:acl-latex`** — template family, no venue of its own · extended by `paperlint:emnlp-2026`, `paperlint:realm-2026`
35
+ **`paperlint:acl-latex`** — template family, no venue of its own · extended by `paperlint:emnlp-2026`, `paperlint:langcode-2027`, `paperlint:naacl-2027`, `paperlint:realm-2026`
36
36
 
37
37
  No preset of this chain sets a rule: under it, every rule keeps paperlint's default.
38
38
 
@@ -0,0 +1,106 @@
1
+ // LangCode 2027 (the First Language and Code Workshop), a workshop at NAACL 2027 — a VENUE preset
2
+ // over the ACL family. The class line and the TeX packages come from acl-latex.jsonc; this file adds
3
+ // what LangCode's call sets. Its card, in prose: `langcode-2027.md` beside this file.
4
+ //
5
+ // Verbatim from https://langcode2027.github.io/submission/ (fetched 2026-11-25):
6
+ // «Long (8 pages), short (4 pages), or a system paper for a shared task (4 pages). References don't count.»
7
+ // «Use the official template as is. Don't change margins, fonts, or spacing.»
8
+ // «Add a Limitations section — Place it after the conclusion. It's required, and it doesn't count toward your pages.»
9
+ // «Make it anonymous — Remove names and affiliations, cite your own work in the third person, and anonymize code links.»
10
+ // «Not counted toward the limit: references, the required Limitations section, the optional
11
+ // Ethical Considerations section, and appendices.»
12
+ // «Subject to change. Deadlines are 11:59 PM UTC-12.»
13
+ // and from https://langcode2027.github.io/ (same day): «Co-located with NAACL 2027», «All accepted
14
+ // papers are archival and appear in the LangCode 2027 proceedings in the ACL Anthology.»
15
+ {
16
+ "type": "venue",
17
+ "name": "LangCode",
18
+ // The call quoted above.
19
+ "url": "https://langcode2027.github.io/",
20
+ "extends": "paperlint:acl-latex",
21
+
22
+ // A workshop (`"workshop": true`): the schema then requires its `parent`, the edition of the
23
+ // conference it is held at, and paperlint refuses a parent of another year.
24
+ "workshop": true,
25
+
26
+ // The conference it is held at: «Co-located with NAACL 2027» (the call above).
27
+ "parent": "paperlint:naacl-2027",
28
+
29
+ // «Make it anonymous — Remove names and affiliations …» (the submission page above).
30
+ "blind": true,
31
+
32
+ // «Add a Limitations section … It's required» (the submission page above). No `position`: the
33
+ // call puts it «after the conclusion», and the optional Ethical Considerations section may follow
34
+ // it, so it need not be the last section.
35
+ "required_sections": [{ "title": "Limitations" }],
36
+
37
+ // What the call says the workshop is for: its headline, and its five areas with their topics
38
+ // (https://langcode2027.github.io/, «We invite submissions across five areas, including but not
39
+ // limited to:»). Each topic is written «<area>: <topic>», the area's heading joined to its line.
40
+ "scope": {
41
+ "url": "https://langcode2027.github.io/",
42
+ "read": "2026-11-25",
43
+ "sentences": [
44
+ "Towards secure, trustworthy, robust, and multilingual code generation.",
45
+ "We invite submissions across five areas, including but not limited to:",
46
+ ],
47
+ "topics": [
48
+ "Secure Code Generation: Vulnerability-aware training and decoding",
49
+ "Secure Code Generation: Guardrails: input filtering, output auditing, policy enforcement",
50
+ "Secure Code Generation: Adversarial attacks: jailbreaks, prompt injection, obfuscation",
51
+ "Secure Code Generation: Safety of agentic coding systems",
52
+ "Trustworthiness: Explainability and interpretability of code models",
53
+ "Trustworthiness: Calibration, uncertainty, and hallucination",
54
+ "Trustworthiness: Contamination-aware benchmarks and evaluation",
55
+ "Trustworthiness: Human–CodeLLM and agent alignment",
56
+ "Robustness: Paraphrasing, dialectal variation, and code-mixed prompts",
57
+ "Robustness: Low-resource, emerging, legacy, and domain-specific languages",
58
+ "Robustness: Adaptation to new languages and distribution shift",
59
+ "Multilinguality: Generation, explanation, and documentation from non-English prompts",
60
+ "Multilinguality: Cross-lingual transfer to new natural languages",
61
+ "Multilinguality: Data curation for underrepresented languages",
62
+ "Applications: Efficient code models for low-compute settings",
63
+ "Applications: Deploying code models across languages and communities",
64
+ "Applications: CodeLLMs in computing education",
65
+ ],
66
+ },
67
+
68
+ // The call's dates, AoE («11:59 PM UTC-12»), in UTC at the end of the AoE day. No portal
69
+ // reading: the call names OpenReview, and no reading of its deadline was taken.
70
+ "deadlines": [
71
+ {
72
+ "what": "submission",
73
+ "at": "2027-02-06T11:59:59Z",
74
+ "source": "call",
75
+ "url": "https://langcode2027.github.io/submission/",
76
+ "read": "2026-11-25",
77
+ },
78
+ {
79
+ "what": "notification",
80
+ "at": "2027-03-27T11:59:59Z",
81
+ "source": "call",
82
+ "url": "https://langcode2027.github.io/submission/",
83
+ "read": "2026-11-25",
84
+ },
85
+ {
86
+ "what": "camera-ready",
87
+ "at": "2027-04-17T11:59:59Z",
88
+ "source": "call",
89
+ "url": "https://langcode2027.github.io/submission/",
90
+ "read": "2026-11-25",
91
+ },
92
+ ],
93
+
94
+ "format": {
95
+ // 🔴 THE PAGE LIMITS ARE NOT GATED. The limit counts content only and leaves out «the required
96
+ // Limitations section, the optional Ethical Considerations section», which stand between the
97
+ // conclusion and the references. format/page-limit's body count runs to the references or the
98
+ // appendix, so it would count them as body and report a paper inside the limit (the same
99
+ // measurement as realm-2026.jsonc). The kinds exist so a paper can name its own.
100
+ "kinds": {
101
+ "long": {},
102
+ "short": {},
103
+ "system": {},
104
+ },
105
+ },
106
+ }
@@ -0,0 +1,79 @@
1
+ ---
2
+ title: "LangCode @ NAACL 2027 — venue card"
3
+ ---
4
+
5
+ # LangCode @ NAACL 2027
6
+
7
+ The card of the venue preset `paperlint:langcode-2027` ([`langcode-2027.jsonc`](langcode-2027.jsonc)):
8
+ what the venue asks for, in prose. The numbers a machine checks live in the preset; the section at
9
+ the end is generated from it.
10
+
11
+ Sources: the call, [langcode2027.github.io](https://langcode2027.github.io/), and its submission
12
+ page, [langcode2027.github.io/submission](https://langcode2027.github.io/submission/), both read
13
+ 2026-11-25. The call says «Subject to change»: 🔴 **re-read it before relying on a date.**
14
+
15
+ ## The venue (2027, the 1st edition)
16
+
17
+ | field | value |
18
+ | ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
19
+ | full name | LangCode 2027, the First Language and Code Workshop, at NAACL 2027 |
20
+ | where and when | «NAACL 2027, June 1–5, 2027, in San Francisco, California, USA»; «One day, in person, hybrid. Authors who cannot travel can present remotely.» |
21
+ | submission | **5 February 2027**, «11:59 PM UTC-12» (= 6 February 11:59 UTC), on OpenReview |
22
+ | ARR commitment | 12 March 2027, for papers already reviewed through ACL Rolling Review |
23
+ | notification | 26 March 2027 |
24
+ | camera-ready | 16 April 2027, «with one extra page» |
25
+ | archival | «All accepted papers are archival and appear in the LangCode 2027 proceedings in the ACL Anthology … There is no non-archival option.» |
26
+ | blind | **double-blind**: «Remove names and affiliations, cite your own work in the third person, and anonymize code links.» |
27
+ | template | ACL: «Use the official template as is. Don't change margins, fonts, or spacing.» |
28
+ | required section | **Limitations**: «Place it after the conclusion. It's required, and it doesn't count toward your pages.» |
29
+
30
+ ## What the workshop is for
31
+
32
+ The call's headline: «Towards secure, trustworthy, robust, and multilingual code generation.» Its
33
+ five areas, «including but not limited to», are Secure Code Generation, Trustworthiness,
34
+ Robustness, Multilinguality and Applications; each area's topics are in the preset's `scope`,
35
+ verbatim.
36
+
37
+ ## Paper kinds and limits
38
+
39
+ | kind | at submission | at camera-ready | not counted |
40
+ | -------- | ------------: | --------------: | ----------------------------------------------------------------------------------------------------------- |
41
+ | `long` | 8 pages | 9 pages | «references, the required Limitations section, the optional Ethical Considerations section, and appendices» |
42
+ | `short` | 4 pages | 5 pages | the same |
43
+ | `system` | 4 pages | 5 pages | the same; «Only teams that took part in the Test phase can submit one.» |
44
+
45
+ 🔴 **The page limits are not gated.** `format/page-limit` counts the body up to the references or
46
+ the appendix, so it would count the Limitations and Ethical Considerations sections as body and
47
+ report a paper inside the limit (the same measurement as [REALM 2026](realm-2026.md)).
48
+
49
+ ## What the preset encodes
50
+
51
+ - **The template**, through `extends: paperlint:acl-latex` ([`acl-latex.md`](acl-latex.md)): the
52
+ class line and the TeX packages.
53
+ - **Double-blind review** (`blind`): `anonymity/identity` looks for the paper's own identity in the
54
+ PDF.
55
+ - **The Limitations section** (`required_sections`): `tex/required-section` reports a paper without
56
+ `\section{Limitations}` or `\section*{Limitations}`.
57
+ - **The deadlines**, from the call, in UTC.
58
+ - **The scope**: the headline and the topics above, verbatim, for a reader; no rule judges a paper
59
+ against them.
60
+ - **The parent conference**, `"workshop": true` and `"parent": "paperlint:naacl-2027"`
61
+ ([`naacl-2027.md`](naacl-2027.md)): «NAACL 2027» counts as a LangCode paper's own conference.
62
+
63
+ ## Not verified
64
+
65
+ - The OpenReview group's address and its form's fields: not read, so the preset names no portal.
66
+ - Whether the Ethical Considerations section is required: the call calls it «optional».
67
+
68
+ ## What the preset resolves to
69
+
70
+ <!-- paperlint:preset-rules -->
71
+ <!-- prettier-ignore-start -->
72
+ <!-- Generated from langcode-2027.jsonc by `npx eslint --fix` (rule preset/card-rules). Edit the preset, not this section. -->
73
+
74
+ **`paperlint:langcode-2027`** — venue preset for LangCode 2027 · call for papers: <https://langcode2027.github.io/> · extends `paperlint:acl-latex`
75
+
76
+ No preset of this chain sets a rule: under it, every rule keeps paperlint's default.
77
+
78
+ <!-- prettier-ignore-end -->
79
+ <!-- /paperlint:preset-rules -->
@@ -0,0 +1,19 @@
1
+ // NAACL 2027 (the Annual Conference of the Nations of the Americas Chapter of the ACL) — a MINIMAL
2
+ // venue preset: the conference LangCode 2027 is held at, so the workshop can name it as its
3
+ // `parent`. It carries the edition's names and its template family, and no page limit. Its card:
4
+ // `naacl-2027.md`.
5
+ //
6
+ // Verbatim from https://2027.naacl.org/calls/main_conference_papers/ (fetched 2026-11-25): «NAACL
7
+ // 2027 will take place in San Francisco, California, USA, from June 1 to June 5, 2027.», «Both long
8
+ // and short paper submissions should follow all of the ARR submission requirements and policies,
9
+ // including: Long Papers (8 pages) and Short Papers (4 pages)».
10
+ {
11
+ "type": "venue",
12
+ "name": "NAACL",
13
+ // The call quoted above.
14
+ "url": "https://2027.naacl.org/calls/main_conference_papers/",
15
+ "extends": "paperlint:acl-latex",
16
+
17
+ // What the conference is called in a paper's text (tex/venue-leftover).
18
+ "aliases": ["NAACL"],
19
+ }
@@ -0,0 +1,42 @@
1
+ ---
2
+ title: "NAACL 2027 — venue card"
3
+ ---
4
+
5
+ # NAACL 2027
6
+
7
+ The card of the venue preset `paperlint:naacl-2027` ([`naacl-2027.jsonc`](naacl-2027.jsonc)).
8
+
9
+ 🔴 **Only the format is checked.** This preset is minimal: it exists so
10
+ [LangCode 2027](langcode-2027.md), the workshop paperlint ships, can name the conference it is held
11
+ at as its `parent`. It carries the edition's names and its template family, ACL
12
+ ([`acl-latex.md`](acl-latex.md)), and no page limit, no deadline and no portal: NAACL's papers are
13
+ reviewed through ACL Rolling Review, whose rules paperlint does not encode yet. A paper for the main
14
+ conference gets the ACL class line and TeX packages checked, and nothing the call sets.
15
+
16
+ ## The edition
17
+
18
+ - **The call**:
19
+ [2027.naacl.org/calls/main_conference_papers](https://2027.naacl.org/calls/main_conference_papers/),
20
+ read 2026-11-25: «NAACL 2027 will take place in San Francisco, California, USA, from June 1 to
21
+ June 5, 2027.», «Both long and short paper submissions should follow all of the ARR submission
22
+ requirements and policies, including: Long Papers (8 pages) and Short Papers (4 pages)».
23
+ - **Not encoded**: the page limits above, and «Final versions of accepted papers will be given one
24
+ additional page of content (up to 9 pages for long papers, up to 5 pages for short papers)».
25
+
26
+ ## Names
27
+
28
+ `NAACL`: in a LangCode 2027 paper, «NAACL 2027» is the paper's own conference; in another venue's
29
+ paper it is reported once, as NAACL.
30
+
31
+ ## What the preset resolves to
32
+
33
+ <!-- paperlint:preset-rules -->
34
+ <!-- prettier-ignore-start -->
35
+ <!-- Generated from naacl-2027.jsonc by `npx eslint --fix` (rule preset/card-rules). Edit the preset, not this section. -->
36
+
37
+ **`paperlint:naacl-2027`** — venue preset for NAACL 2027 · call for papers: <https://2027.naacl.org/calls/main_conference_papers/> · extends `paperlint:acl-latex`
38
+
39
+ No preset of this chain sets a rule: under it, every rule keeps paperlint's default.
40
+
41
+ <!-- prettier-ignore-end -->
42
+ <!-- /paperlint:preset-rules -->
@@ -132,6 +132,26 @@
132
132
  }
133
133
  }
134
134
  },
135
+ "scope": {
136
+ "description": "What the call for papers says the venue is for, VERBATIM: its scope sentences and, where the call gives one, its topic list, with the page they were read from and the day. Data for a reader, so a review can judge the paper against the venue's own words; no rule judges a paper against it. A child preset's value replaces its parent's; a workshop does not inherit its parent conference's scope. A family or the base set has none.",
137
+ "type": "object",
138
+ "additionalProperties": false,
139
+ "required": ["url", "read", "sentences"],
140
+ "properties": {
141
+ "url": { "type": "string", "pattern": "^https://[^\\s/]+[^\\s]*$" },
142
+ "read": { "type": "string", "pattern": "^\\d{4}-\\d{2}-\\d{2}$" },
143
+ "sentences": {
144
+ "type": "array",
145
+ "minItems": 1,
146
+ "items": { "type": "string", "minLength": 1 }
147
+ },
148
+ "topics": {
149
+ "type": "array",
150
+ "minItems": 1,
151
+ "items": { "type": "string", "minLength": 1 }
152
+ }
153
+ }
154
+ },
135
155
  "submission_fields": {
136
156
  "description": "The fields the edition's submission form asks beyond the title, the abstract, the authors and the PDF, as READ — where (`source`: `portal`, through the portal's API; `form`, copied from the form), from which page and on which day. Read by `paperlint submission`: a paper answers them in its paperlint.json `fields`, checked against these before anything is sent, so an option the form does not offer is refused here instead of dropped by the portal without a word. `fields` maps the portal API's key to its kind: `checkbox` (true or false), `choice` (one of `options`, a dropdown or radio buttons), `checkboxes` (a list of `options`, HotCRP's topics spelled \"Group: Topic\"), `integer` and `number` (within `min` and `max`), `text`, `multiline_text`, `email`, `pc_conflicts` (PC member's email → conflict type), and `document` and `attachments` (file uploads, which paperlint declares but does not send). `required`: the form does not complete without it. A child's value replaces its parent's.",
137
157
  "type": "object",
@@ -556,7 +576,8 @@
556
576
  "name": false,
557
577
  "url": false,
558
578
  "parent": false,
559
- "workshop": false
579
+ "workshop": false,
580
+ "scope": false
560
581
  }
561
582
  }
562
583
  },
@@ -70,8 +70,8 @@ const legacyCeilings = {
70
70
  "src/paper-settings-commands.test.ts": 318,
71
71
  "src/paper-settings.test.ts": 519,
72
72
  "src/pdf-facts.ts": 343,
73
- "src/presets.test.ts": 1238,
74
- "src/presets.ts": 505,
73
+ "src/presets.test.ts": 1199,
74
+ "src/presets.ts": 404,
75
75
  "src/readability.test.ts": 331,
76
76
  "src/references.test.ts": 715,
77
77
  "src/register-bands.test.ts": 353,
@@ -89,9 +89,9 @@ const legacyCeilings = {
89
89
  "src/submission.ts": 1155,
90
90
  "src/talk-rules.test.ts": 427,
91
91
  "src/talk-rules.ts": 562,
92
- "src/tex-requirements.ts": 482,
93
- "src/tex-venue-rules.test.ts": 2152,
94
- "src/tex-venue-rules.ts": 695,
92
+ "src/tex-requirements.ts": 454,
93
+ "src/tex-venue-rules.test.ts": 2067,
94
+ "src/tex-venue-rules.ts": 615,
95
95
  "src/toolchain-mirror.test.mjs": 631,
96
96
  "src/toolchain.ts": 605,
97
97
  "src/venue-rules.test.ts": 1684,
@@ -13,7 +13,14 @@
13
13
  */
14
14
  import { describe, expect, test } from "vitest";
15
15
  import { readFileSync } from "node:fs";
16
+ import { execFileSync } from "node:child_process";
17
+ import { mkdtempSync, realpathSync } from "node:fs";
18
+ import { tmpdir } from "node:os";
19
+ import { join, resolve } from "node:path";
20
+ import { PassThrough } from "node:stream";
16
21
  import { analyzeCommits } from "@semantic-release/commit-analyzer";
22
+ import { analyzeCommits as runAnalyzeCmd } from "@semantic-release/exec";
23
+ import steps from "semantic-release/lib/definitions/plugins.js";
17
24
  import { generateNotes } from "@semantic-release/release-notes-generator";
18
25
  import { z } from "zod";
19
26
 
@@ -96,3 +103,110 @@ describe("release config (.releaserc.json) with the installed toolchain", () =>
96
103
  expect(notes).toContain("resolve the paper from the config root");
97
104
  });
98
105
  });
106
+
107
+ /**
108
+ * A commit whose tree holds only `default-rules.json` with `snapshot` in it, written to a throwaway
109
+ * object directory that reads this repository's objects but never writes to them. The returned `env`
110
+ * makes git see the commit.
111
+ */
112
+ function releaseWithSnapshot(snapshot: string): {
113
+ readonly sha: string;
114
+ readonly env: NodeJS.ProcessEnv;
115
+ } {
116
+ const repo = resolve(import.meta.dirname, "..");
117
+ const shared = resolve(
118
+ repo,
119
+ execFileSync("git", ["rev-parse", "--git-common-dir"], {
120
+ cwd: repo,
121
+ encoding: "utf8",
122
+ }).trim(),
123
+ "objects",
124
+ );
125
+ const env = {
126
+ ...process.env,
127
+ GIT_OBJECT_DIRECTORY: realpathSync(
128
+ mkdtempSync(join(tmpdir(), "release-objects-")),
129
+ ),
130
+ GIT_ALTERNATE_OBJECT_DIRECTORIES: shared,
131
+ };
132
+ const git = (args: readonly string[], input?: string): string =>
133
+ execFileSync("git", args, {
134
+ cwd: repo,
135
+ env,
136
+ input,
137
+ encoding: "utf8",
138
+ }).trim();
139
+ const blob = git(["hash-object", "-w", "--stdin"], snapshot);
140
+ const tree = git(["mktree"], `100644 blob ${blob}\tdefault-rules.json\n`);
141
+ const sha = git([
142
+ "-c",
143
+ "user.name=t",
144
+ "-c",
145
+ "user.email=t@example.com",
146
+ "commit-tree",
147
+ tree,
148
+ "-m",
149
+ "v1",
150
+ ]);
151
+ return { sha, env };
152
+ }
153
+
154
+ describe("the default rule set's analyzer (@semantic-release/exec)", () => {
155
+ const run = (gitTag: string, env: NodeJS.ProcessEnv) =>
156
+ runAnalyzeCmd(optionsFor("@semantic-release/exec"), {
157
+ ...context,
158
+ cwd: resolve(import.meta.dirname, ".."),
159
+ env,
160
+ stdout: new PassThrough(),
161
+ stderr: new PassThrough(),
162
+ lastRelease: { gitTag, version: "1.0.0" },
163
+ commits: [feature],
164
+ });
165
+
166
+ test("runs beside the commit analyzer, so semantic-release keeps the higher of the two", () => {
167
+ // Guards: an analyzer placed in no step, or removed, would let a breaking default set out as a minor.
168
+ const names = releaserc.plugins.map((p) => (Array.isArray(p) ? p[0] : p));
169
+ expect(names.slice(0, 2)).toEqual([
170
+ "@semantic-release/commit-analyzer",
171
+ "@semantic-release/exec",
172
+ ]);
173
+ });
174
+
175
+ test("semantic-release keeps the highest type the analyzers return", () => {
176
+ // Guards: the whole mechanism rests on this merge; a semantic-release that took the first answer
177
+ // instead would release a breaking default set as whatever the PR title says.
178
+ const merge = steps.analyzeCommits.postprocess;
179
+ expect(merge(["minor", "major"])).toBe("major");
180
+ expect(merge([null, "major"])).toBe("major");
181
+ expect(merge(["minor", undefined])).toBe("minor");
182
+ });
183
+
184
+ test("says major when a rule the last release had at warn is at error now", async () => {
185
+ // Guards: the command semantic-release renders from .releaserc.json reaches the script and its
186
+ // answer comes back, end to end through the installed plugin.
187
+ const now = z
188
+ .record(z.string(), z.string())
189
+ .parse(
190
+ JSON.parse(
191
+ readFileSync(
192
+ new URL("../default-rules.json", import.meta.url),
193
+ "utf8",
194
+ ),
195
+ ),
196
+ );
197
+ const anError = Object.keys(now).find((id) => now[id] === "error");
198
+ expect(anError).toBeDefined();
199
+ const release = releaseWithSnapshot(
200
+ JSON.stringify({ ...now, [String(anError)]: "warn" }),
201
+ );
202
+ expect(await run(release.sha, release.env)).toBe("major");
203
+ });
204
+
205
+ test("says nothing when the last release had the same set, and on a first release", async () => {
206
+ const same = releaseWithSnapshot(
207
+ readFileSync(new URL("../default-rules.json", import.meta.url), "utf8"),
208
+ );
209
+ expect(await run(same.sha, same.env)).toBeUndefined();
210
+ expect(await run("", process.env)).toBeUndefined();
211
+ });
212
+ });