dislop 0.7.0 → 0.8.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-plugin/marketplace.json +3 -3
- package/.claude-plugin/plugin.json +2 -2
- package/.codex-plugin/plugin.json +4 -3
- package/.cursor-plugin/plugin.json +3 -2
- package/PRODUCT.md +18 -4
- package/README.md +72 -38
- package/README.zh-CN.md +70 -40
- package/bin/dislop.mjs +2883 -309
- package/gemini-extension.json +2 -2
- package/package.json +19 -3
- package/packs/business-brief/pack.json +336 -6
- package/packs/core/pack.json +14 -7
- package/packs/deck-and-ui/pack.json +255 -6
- package/packs/literary-essay/pack.json +20 -0
- package/patterns/ai-tic-rubric.json +252 -0
- package/patterns/banks/composite-fusion.json +13 -1
- package/patterns/banks/lexical-signals.json +20 -2
- package/patterns/banks/syntactic-frames.json +10 -3
- package/patterns/banks/visual-deck.json +7 -0
- package/patterns/dimensions/discourse.json +26 -0
- package/patterns/dimensions/lexical.json +26 -0
- package/patterns/dimensions/rhythm.json +52 -0
- package/patterns/dimensions/visual-and-deck.json +209 -1
- package/plugin.json +4 -3
- package/server.json +2 -2
- package/skills/dislop/SKILL.md +35 -41
- package/skills/dislop/agents/openai.yaml +1 -1
- package/skills/dislop/references/essay.md +24 -0
- package/skills/dislop/references/essay.zh-CN.md +24 -0
- package/skills/dislop/references/office.md +23 -0
- package/skills/dislop/references/office.zh-CN.md +23 -0
- package/skills/dislop/references/web-ui.md +24 -0
- package/skills/dislop/references/web-ui.zh-CN.md +24 -0
- package/skills/dislop/references/work-docs.md +25 -0
- package/skills/dislop/references/work-docs.zh-CN.md +24 -0
- package/src/binary-node.mjs +1716 -1
- package/src/core.mjs +3215 -247
- package/src/local-model.mjs +31 -11
- package/src/pattern-engine.mjs +174 -24
- package/src/pocket-model.mjs +27 -5
- package/src/review-client.mjs +1064 -0
- package/patterns/README.md +0 -39
- package/skills/dislop/references/business-and-rfc.md +0 -26
- package/skills/dislop/references/editorial-and-essay.md +0 -20
- package/skills/dislop/references/regulated-and-precision.md +0 -27
- package/skills/dislop/references/web-ui-and-deck.md +0 -26
package/gemini-extension.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dislop",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Linter for AI Slop
|
|
3
|
+
"version": "0.8.0",
|
|
4
|
+
"description": "Cutting AI slop is real productivity. Linter for AI Slop with vetted rules (7 packs, 53 rules, 65 patterns) across pure-doc Skill, offline CLI, and Official Cloud MCP.",
|
|
5
5
|
"mcpServers": {
|
|
6
6
|
"dislop": {
|
|
7
7
|
"httpUrl": "https://dislop.com/mcp"
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dislop",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.8.0",
|
|
4
|
+
"description": "Cutting AI slop is real productivity. Linter for AI Slop in docs, web UI, and slides — Skill, Plugin, CLI & MCP.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://dislop.com",
|
|
7
7
|
"repository": {
|
|
@@ -33,14 +33,21 @@
|
|
|
33
33
|
"test:models": "PYTHONPATH=src python3 scripts/train_pocket_models.py --eval-only",
|
|
34
34
|
"bench": "node scripts/run_benchmark.mjs",
|
|
35
35
|
"bench:assert": "node scripts/run_benchmark.mjs --assert",
|
|
36
|
+
"bench:skill": "node scripts/run_skill_benchmark.mjs --assert",
|
|
36
37
|
"bench:patterns": "node scripts/pattern_lab.mjs ablation",
|
|
38
|
+
"bench:visual": "node scripts/run_visual_benchmark.mjs",
|
|
39
|
+
"bench:visual:vlm": "node scripts/run_visual_vlm_bench.mjs",
|
|
37
40
|
"build:site": "node scripts/build_site.mjs",
|
|
38
41
|
"sync:manifests": "node scripts/sync_manifests.mjs",
|
|
39
42
|
"check:manifests": "node scripts/sync_manifests.mjs --check",
|
|
40
43
|
"release:check": "node scripts/release.mjs --check",
|
|
41
44
|
"release:status": "node scripts/release.mjs --status",
|
|
42
45
|
"release": "node scripts/release.mjs",
|
|
43
|
-
"dogfood": "node bin/dislop.mjs check . --fail-on warning && node bin/dislop.mjs check site/ --fail-on info"
|
|
46
|
+
"dogfood": "node bin/dislop.mjs check . --fail-on warning && node bin/dislop.mjs check site/ --fail-on info && node scripts/media/audit_visual_assets.mjs --assert",
|
|
47
|
+
"media:render": "python3 scripts/media/render_gifs.py",
|
|
48
|
+
"media:verify": "python3 scripts/media/verify_demos.py",
|
|
49
|
+
"media:bench": "python3 scripts/media/bench_encoders.py",
|
|
50
|
+
"media:audit": "node scripts/media/audit_visual_assets.mjs --assert"
|
|
44
51
|
},
|
|
45
52
|
"files": [
|
|
46
53
|
".agents/plugins/marketplace.json",
|
|
@@ -56,6 +63,7 @@
|
|
|
56
63
|
"server.json",
|
|
57
64
|
"bin/",
|
|
58
65
|
"src/core.mjs",
|
|
66
|
+
"src/review-client.mjs",
|
|
59
67
|
"src/pattern-engine.mjs",
|
|
60
68
|
"src/pocket-model.mjs",
|
|
61
69
|
"src/local-model.mjs",
|
|
@@ -63,6 +71,7 @@
|
|
|
63
71
|
"models/",
|
|
64
72
|
"packs/",
|
|
65
73
|
"patterns/taxonomy.json",
|
|
74
|
+
"patterns/ai-tic-rubric.json",
|
|
66
75
|
"patterns/dimensions/",
|
|
67
76
|
"patterns/banks/",
|
|
68
77
|
"skills/",
|
|
@@ -76,12 +85,19 @@
|
|
|
76
85
|
"anti-slop",
|
|
77
86
|
"de-slop",
|
|
78
87
|
"ai-slop",
|
|
88
|
+
"humanizer",
|
|
79
89
|
"linter",
|
|
80
90
|
"proofreading",
|
|
81
91
|
"agent-skill",
|
|
92
|
+
"claude-code",
|
|
93
|
+
"codex",
|
|
94
|
+
"cursor",
|
|
82
95
|
"llms-txt",
|
|
83
96
|
"mcp",
|
|
84
97
|
"model-context-protocol",
|
|
98
|
+
"markdown",
|
|
99
|
+
"docx",
|
|
100
|
+
"pptx",
|
|
85
101
|
"editorial",
|
|
86
102
|
"typography",
|
|
87
103
|
"quality-gate"
|
|
@@ -36,6 +36,8 @@
|
|
|
36
36
|
"en": "Cut everything up to 'that' or the comma. Does the remaining clause already state the full observation or constraint?",
|
|
37
37
|
"zh": "删掉前半句铺垫壳,看剩下的主干是否已经完整表达了事实或限制条件。"
|
|
38
38
|
},
|
|
39
|
+
"revisionKind": "delete",
|
|
40
|
+
"revisionScope": "span",
|
|
39
41
|
"exemplar": {
|
|
40
42
|
"bad": "It is worth noting that CSV exports take up to 12 minutes for workspaces above 500,000 rows.",
|
|
41
43
|
"trap": "CSV exports aren't instant — they're built for precision, taking up to 12 minutes.",
|
|
@@ -110,7 +112,8 @@
|
|
|
110
112
|
"抓手(?!机)",
|
|
111
113
|
"组合拳",
|
|
112
114
|
"打通最后一公里",
|
|
113
|
-
"(
|
|
115
|
+
"(?:打造|构建|形成|实现)[^,。!?;\\n]{0,12}闭环",
|
|
116
|
+
"(?:全|强|硬|大|小)闭环",
|
|
114
117
|
"底层逻辑",
|
|
115
118
|
"顶层设计",
|
|
116
119
|
"颗粒度",
|
|
@@ -127,6 +130,25 @@
|
|
|
127
130
|
"en": "Ask 'who changed what, by how much, under what constraint?' and delete the abstract wrapper.",
|
|
128
131
|
"zh": "追问“谁对什么做了哪项改动、指标变了多少”,删掉抽象包装词。"
|
|
129
132
|
},
|
|
133
|
+
"revisionKind": "rewrite",
|
|
134
|
+
"revisionScope": "span",
|
|
135
|
+
"registerOverrides": {
|
|
136
|
+
"official": {
|
|
137
|
+
"severity": "info",
|
|
138
|
+
"message": {
|
|
139
|
+
"en": "Official register permits institutional phrasing, but replacing vague buzzwords with concrete actions and owners makes the notice clearer.",
|
|
140
|
+
"zh": "公文语体允许规范用语,但把抽象汇报套词换成具体动作、责任主体与指标会更扎实。"
|
|
141
|
+
},
|
|
142
|
+
"deletionTest": {
|
|
143
|
+
"en": "Keep the clause only if the actor, action, and scope or target metric are stated explicitly.",
|
|
144
|
+
"zh": "仅当句内或下文写清执行主体、具体动作与范围/指标时保留,否则改为直接动作描述。"
|
|
145
|
+
},
|
|
146
|
+
"revisionAvoid": {
|
|
147
|
+
"en": "Do not leave empty institutional buzzwords unsupported; name the concrete actor, action, or metric.",
|
|
148
|
+
"zh": "不要只留空洞公文套词,应在句内或下文补出具体执行主体、动作与指标。"
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
},
|
|
130
152
|
"exemplar": {
|
|
131
153
|
"bad": "值得注意的是,本次改造以工单分级为重要抓手,全面赋能一线客服团队形成服务闭环,将首响时间压缩至 45 秒内。",
|
|
132
154
|
"trap": "这不是一次工单改造,而是客服体验的底气:首响压缩至 45 秒内。",
|
|
@@ -140,12 +162,21 @@
|
|
|
140
162
|
"fixtures": {
|
|
141
163
|
"hit": [
|
|
142
164
|
"我们要以数据治理为抓手,持续赋能门店运营。",
|
|
143
|
-
"值得注意的是,导出最多需要 12 分钟。"
|
|
165
|
+
"值得注意的是,导出最多需要 12 分钟。",
|
|
166
|
+
"新版本实现从需求评审到发布上线的全闭环。"
|
|
144
167
|
],
|
|
145
168
|
"clean": [
|
|
146
169
|
"测试员单手抓手机拍摄夜间条码样本。",
|
|
147
170
|
"机械臂末端夹爪更换为硅胶吸盘后,破损率从 1.8% 降到 0.4%。",
|
|
148
|
-
"导出最多需要 12 分钟。"
|
|
171
|
+
"导出最多需要 12 分钟。",
|
|
172
|
+
"团队讨论时,“抓手”“赋能”这类词最好别用。"
|
|
173
|
+
],
|
|
174
|
+
"register": [
|
|
175
|
+
{
|
|
176
|
+
"register": "official",
|
|
177
|
+
"text": "我们要以数据治理为抓手,持续赋能门店运营。",
|
|
178
|
+
"expect": "info"
|
|
179
|
+
}
|
|
149
180
|
]
|
|
150
181
|
}
|
|
151
182
|
},
|
|
@@ -165,6 +196,19 @@
|
|
|
165
196
|
"en": "Delete the negated first half ('Not X,'). If the remaining clause ('Y') holds no measurement, mechanism, or real correction, rewrite or cut the whole sentence.",
|
|
166
197
|
"zh": "删掉前半句否定铺垫,只看“而是 B”。如果 B 没有数值、机制或真实纠偏信息,整句删改。"
|
|
167
198
|
},
|
|
199
|
+
"registerOverrides": {
|
|
200
|
+
"argumentative": {
|
|
201
|
+
"severity": "info",
|
|
202
|
+
"message": {
|
|
203
|
+
"en": "Dialectic 'Not X, but Y' contrast is a valid rhetorical move in argumentative writing; keep it if Y carries a real premise or bound, not an empty slogan.",
|
|
204
|
+
"zh": "议论文中“不是 A,而是 B”常用于立论辨析;只要 B 给出真实前提、界定或论据即可保留,仅删空洞口号式对仗。"
|
|
205
|
+
},
|
|
206
|
+
"deletionTest": {
|
|
207
|
+
"en": "Check whether clause B states an explicit premise, boundary, or piece of evidence rather than a vague slogan.",
|
|
208
|
+
"zh": "确认“而是 B”是否给出了明确前提、概念边界或事实论据,而非拔高口号。"
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
},
|
|
168
212
|
"exemplar": {
|
|
169
213
|
"bad": "这不是一款简单的文档检查工具,而是交付质量的底气。",
|
|
170
214
|
"trap": "工具已至。底气自生。交付无忧。",
|
|
@@ -178,6 +222,8 @@
|
|
|
178
222
|
"fixtures": {
|
|
179
223
|
"hit": [
|
|
180
224
|
"这不是工具,而是底气。",
|
|
225
|
+
"这既不是效率工具,也不是排版插件,而是新标准。",
|
|
226
|
+
"这不仅让代码更干净,更让协作效率翻倍。",
|
|
181
227
|
"It's not just a linter — it's a new standard for modern teams.",
|
|
182
228
|
"This isn't a dashboard. It's peace of mind."
|
|
183
229
|
],
|
|
@@ -185,6 +231,13 @@
|
|
|
185
231
|
"默认超时不是 30 秒,而是 300 秒。",
|
|
186
232
|
"The bug is not in `parser.py`, but in `loader.py` line 42.",
|
|
187
233
|
"这不是第一次出现死锁,周二日志里还有 2 条记录。"
|
|
234
|
+
],
|
|
235
|
+
"register": [
|
|
236
|
+
{
|
|
237
|
+
"register": "argumentative",
|
|
238
|
+
"text": "真正的自由不是想做什么就做什么,而是清楚边界之后的主动选择。",
|
|
239
|
+
"expect": "info"
|
|
240
|
+
}
|
|
188
241
|
]
|
|
189
242
|
}
|
|
190
243
|
},
|
|
@@ -204,6 +257,22 @@
|
|
|
204
257
|
"en": "Combine the fragments into one factual sentence naming the cause and effect, or cut purely decorative rhythm beats.",
|
|
205
258
|
"zh": "把零碎口号合并为一句交代因果与边界的完整陈述,删去纯节奏铺陈。"
|
|
206
259
|
},
|
|
260
|
+
"registerOverrides": {
|
|
261
|
+
"marketing": {
|
|
262
|
+
"severity": "info",
|
|
263
|
+
"message": {
|
|
264
|
+
"en": "Short cadence bursts can work in punchy launch copy, but pair them with concrete product details rather than stacking vague slogans.",
|
|
265
|
+
"zh": "营销短文案可用短句制造节奏,但建议在下一句紧接具体功能或数字,避免整段只剩抽象口号。"
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
"narrative": {
|
|
269
|
+
"severity": "info",
|
|
270
|
+
"message": {
|
|
271
|
+
"en": "Short dramatic fragments can be intentional pacing in narrative prose; keep only when they carry concrete sensory beats.",
|
|
272
|
+
"zh": "叙事长文中短句断奏有时用于收紧节奏;确认每句都有具体动作或画面感,否则合并为自然长短句。"
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
},
|
|
207
276
|
"exemplar": {
|
|
208
277
|
"bad": "Signals drop. Photos vanish. Audits stall. Offline sync keeps all 120 inspection photos queued locally.",
|
|
209
278
|
"trap": "Offline sync isn't a fallback — it's field resilience for 120 photos.",
|
|
@@ -222,6 +291,18 @@
|
|
|
222
291
|
"clean": [
|
|
223
292
|
"When cellular signals drop inside concrete basements, queued uploads retry every 30 seconds.",
|
|
224
293
|
"断网时本地队列最多缓存 120 张巡检照片,恢复联网后按顺序补传。"
|
|
294
|
+
],
|
|
295
|
+
"register": [
|
|
296
|
+
{
|
|
297
|
+
"register": "marketing",
|
|
298
|
+
"text": "Signals drop. Photos vanish. Trust dies.",
|
|
299
|
+
"expect": "info"
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"register": "narrative",
|
|
303
|
+
"text": "信号消失。照片蒸发。体验归零。",
|
|
304
|
+
"expect": "info"
|
|
305
|
+
}
|
|
225
306
|
]
|
|
226
307
|
}
|
|
227
308
|
},
|
|
@@ -241,6 +322,21 @@
|
|
|
241
322
|
"en": "Delete all three adjectives; keep only claims backed by a number, failure mode, or configuration option.",
|
|
242
323
|
"zh": "删掉整组四字形容词,只保留有数字、故障边界或配置项支撑的具体事实。"
|
|
243
324
|
},
|
|
325
|
+
"revisionKind": "rewrite",
|
|
326
|
+
"revisionScope": "span",
|
|
327
|
+
"registerOverrides": {
|
|
328
|
+
"official": {
|
|
329
|
+
"severity": "info",
|
|
330
|
+
"message": {
|
|
331
|
+
"en": "Official register tolerates summarizing four-character phrases, though backing them with concrete targets strengthens the brief.",
|
|
332
|
+
"zh": "公文语体常见四字总结词组,但在方案中补出具体分工或指标更有说服力。"
|
|
333
|
+
},
|
|
334
|
+
"deletionTest": {
|
|
335
|
+
"en": "Verify that each summarizing four-character phrase maps to an explicit owner, metric, or deliverable in the same section.",
|
|
336
|
+
"zh": "确认每组四字总结都有同节的具体责任人、指标或交付物对应,避免空洞堆砌。"
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
},
|
|
244
340
|
"exemplar": {
|
|
245
341
|
"bad": "新版网关具备精准高效、安全可靠、灵活易用的特性,单节点支持 8,000 QPS。",
|
|
246
342
|
"trap": "新版网关不是简单升级,而是 8,000 QPS 的性能飞跃。",
|
|
@@ -254,11 +350,21 @@
|
|
|
254
350
|
"fixtures": {
|
|
255
351
|
"hit": [
|
|
256
352
|
"系统实现了精准高效、安全可靠、灵活易用的目标。",
|
|
353
|
+
"系统实现了精准高效·安全可靠·灵活易用的目标。",
|
|
257
354
|
"方案坚持统筹兼顾、协同推进、提质增效。"
|
|
258
355
|
],
|
|
259
356
|
"clean": [
|
|
260
357
|
"首批试点覆盖北京大学、清华大学、复旦大学三所高校图书馆。",
|
|
261
|
-
"接口支持按项目、按日期、按状态过滤。"
|
|
358
|
+
"接口支持按项目、按日期、按状态过滤。",
|
|
359
|
+
"页面包含订单编号、创建日期、结算状态、支付时间四个字段。",
|
|
360
|
+
"表格列出收入明细、成本汇总、税费状态、利润总额等四类指标。"
|
|
361
|
+
],
|
|
362
|
+
"register": [
|
|
363
|
+
{
|
|
364
|
+
"register": "official",
|
|
365
|
+
"text": "方案坚持统筹兼顾、协同推进、提质增效。",
|
|
366
|
+
"expect": "info"
|
|
367
|
+
}
|
|
262
368
|
]
|
|
263
369
|
}
|
|
264
370
|
},
|
|
@@ -295,7 +401,8 @@
|
|
|
295
401
|
],
|
|
296
402
|
"clean": [
|
|
297
403
|
"Studies show higher recall on paper proofs (Mangen et al., 2019).",
|
|
298
|
-
"数据显示该节点 11 月错误率为 0.12%(见 [监控日报](./metrics.md))。"
|
|
404
|
+
"数据显示该节点 11 月错误率为 0.12%(见 [监控日报](./metrics.md))。",
|
|
405
|
+
"客服后台明细数据显示近7天平均响应时长为 98分12秒。"
|
|
299
406
|
]
|
|
300
407
|
}
|
|
301
408
|
},
|
|
@@ -405,8 +512,10 @@
|
|
|
405
512
|
],
|
|
406
513
|
"clean": [
|
|
407
514
|
"上海机房默认走专线同步;北京机房因合同下月到期,暂时走公网加密隧道。",
|
|
515
|
+
"先检查环境变量;再重跑单元测试;最后提交合并请求。",
|
|
408
516
|
"Prior benchmarks report similar variance (Smith, 2020; Lee, 2021; Wu, 2022).",
|
|
409
|
-
"The licensee shall maintain audit logs; must notify regulators within 72 hours; and shall retain receipts for five years."
|
|
517
|
+
"The licensee shall maintain audit logs; must notify regulators within 72 hours; and shall retain receipts for five years.",
|
|
518
|
+
"恢复扫描依赖发送前持久化的记录;启动与周期扫描共用幂等键;数据库失联期间不新写任务。"
|
|
410
519
|
]
|
|
411
520
|
}
|
|
412
521
|
},
|
|
@@ -426,6 +535,15 @@
|
|
|
426
535
|
"en": "Delete the staged question and state the cause-and-effect directly in one sentence.",
|
|
427
536
|
"zh": "删掉摆拍式设问,直接在一句话里写出原因与结果。"
|
|
428
537
|
},
|
|
538
|
+
"registerOverrides": {
|
|
539
|
+
"casual": {
|
|
540
|
+
"severity": "info",
|
|
541
|
+
"message": {
|
|
542
|
+
"en": "Conversational Q&A cadences fit informal notes when the answer gives concrete facts instead of sales hooks.",
|
|
543
|
+
"zh": "随笔或口语化笔记中可以用一问一答衔接,但回答部分仍应给出真实理由或细节,不做营销摆拍。"
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
},
|
|
429
547
|
"exemplar": {
|
|
430
548
|
"bad": "Why do internal dashboards collect dust after launch? Because they show vanity totals instead of next actions. The result? Teams export CSVs every Monday.",
|
|
431
549
|
"trap": "Dashboards fail. Numbers pile up. Teams export CSVs.",
|
|
@@ -445,6 +563,13 @@
|
|
|
445
563
|
"周三复盘会上有人问:为什么备用库 12 秒后才接管?日志确认是心跳超时配成了 4 秒乘以 3 次。",
|
|
446
564
|
"## Why does the cache miss on cold start?\nBecause the local index is rebuilt on first boot.",
|
|
447
565
|
"During the postmortem we asked why the worker pool stalled at 14:05 UTC."
|
|
566
|
+
],
|
|
567
|
+
"register": [
|
|
568
|
+
{
|
|
569
|
+
"register": "casual",
|
|
570
|
+
"text": "为什么大多数团队的文档没人愿意读?因为大家都在堆砌信息。",
|
|
571
|
+
"expect": "info"
|
|
572
|
+
}
|
|
448
573
|
]
|
|
449
574
|
}
|
|
450
575
|
},
|
|
@@ -539,6 +664,22 @@
|
|
|
539
664
|
"en": "Merge related points into natural prose with varied openings, or use a compact table if you are listing parallel specs.",
|
|
540
665
|
"zh": "把同构段落按因果或主次合并成自然段并变化句首;若是并列参数对照,直接改成简洁表格。"
|
|
541
666
|
},
|
|
667
|
+
"registerOverrides": {
|
|
668
|
+
"technical": {
|
|
669
|
+
"action": "skip"
|
|
670
|
+
},
|
|
671
|
+
"casual": {
|
|
672
|
+
"severity": "info",
|
|
673
|
+
"message": {
|
|
674
|
+
"en": "Several personal/shop items open with the same phrase. Fixed recurring policy or origin lines are normal; only vary them if they feel machine-padded.",
|
|
675
|
+
"zh": "多条个人/闲置文案句首重复;若是固定交易规则或个人口头禅,保留原话即可,不必为了去重强行换词。"
|
|
676
|
+
},
|
|
677
|
+
"deletionTest": {
|
|
678
|
+
"en": "Keep recurring personal policy lines intact unless filler fluff was padded around them; never inflate spoken wording into stiff bookish synonyms.",
|
|
679
|
+
"zh": "固定交易或个人口头禅保持原样即可,绝不为了换写法把口语改成“仅出/旨在”等生硬书面词。"
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
},
|
|
542
683
|
"exemplar": {
|
|
543
684
|
"bad": "在数据采集方面,系统接入了业务日志。\n\n在模型训练方面,团队定期更新权重。\n\n在结果应用方面,业务方通过看板查看波动。",
|
|
544
685
|
"trap": "采数据。训模型。看看板。",
|
|
@@ -556,6 +697,18 @@
|
|
|
556
697
|
],
|
|
557
698
|
"clean": [
|
|
558
699
|
"11 月 18 日的 v2.4 修了三处问题。第一,CSV 导出固定成 UTF-8 with BOM。\n\n第二处改动在重试队列:429 限流改为指数退避。\n\n权限页也顺手隐藏了只读账号的删除按钮。"
|
|
700
|
+
],
|
|
701
|
+
"register": [
|
|
702
|
+
{
|
|
703
|
+
"register": "technical",
|
|
704
|
+
"text": "By automating triage, teams reply faster.\n\nBy centralizing timelines, managers spot bottlenecks.\n\nBy standardizing checklists, owners cut rollbacks.",
|
|
705
|
+
"expect": "skip"
|
|
706
|
+
},
|
|
707
|
+
{
|
|
708
|
+
"register": "casual",
|
|
709
|
+
"text": "自己收的甲款,平时放柜子基本没动,今晚五点前能发。\n\n自己收的乙款,只出本体不含包装盒,今晚五点前能发。\n\n自己收的丙款,底部带原厂刻字可小刀,今晚五点前能发。",
|
|
710
|
+
"expect": "info"
|
|
711
|
+
}
|
|
559
712
|
]
|
|
560
713
|
}
|
|
561
714
|
},
|
|
@@ -575,6 +728,22 @@
|
|
|
575
728
|
"en": "Cut abstract summary sentences in half, vary sentence length naturally, and anchor every kept claim with a number, file, date, or concrete failure mode.",
|
|
576
729
|
"zh": "砍掉一半抽象概括句,拉开长短句节奏,并为保留的每条判断补上数字、文件、时间或真实边界。"
|
|
577
730
|
},
|
|
731
|
+
"registerOverrides": {
|
|
732
|
+
"technical": {
|
|
733
|
+
"action": "skip"
|
|
734
|
+
},
|
|
735
|
+
"official": {
|
|
736
|
+
"severity": "info",
|
|
737
|
+
"message": {
|
|
738
|
+
"en": "Formal notice sentences are uniform in length without concrete identifiers; keep institutional structure intact, but add real document IDs, dates, or deadlines where a statement is purely abstract.",
|
|
739
|
+
"zh": "正式公文或通告句幅整齐偏抽象;应保留规范行文结构,仅对全无文号、日期或负责主体的空泛句子补实信息。"
|
|
740
|
+
},
|
|
741
|
+
"deletionTest": {
|
|
742
|
+
"en": "Add the missing clause reference, date, or accountable party while preserving formal notice tone.",
|
|
743
|
+
"zh": "仅补充缺失的文号、日期或责任主体,不破坏正式行文口气。"
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
},
|
|
578
747
|
"exemplar": {
|
|
579
748
|
"bad": "该方案注重用户体验的全面改善。系统架构保持了良好的扩展能力。团队协作形成了清晰的责任分工。日常运维建立了规范的处理流程。产品迭代围绕核心需求稳步推进。业务指标呈现出健康的增长态势。",
|
|
580
749
|
"trap": "体验改善。架构扩展。分工清晰。运维规范。",
|
|
@@ -591,6 +760,167 @@
|
|
|
591
760
|
],
|
|
592
761
|
"clean": [
|
|
593
762
|
"Anonymous visitors get 5 free calls per day up to 4,000 characters. Free accounts include 30 monthly credits up to 12,000 characters. If the upstream LLM times out or returns 5xx, the server refunds the credit automatically."
|
|
763
|
+
],
|
|
764
|
+
"register": [
|
|
765
|
+
{
|
|
766
|
+
"register": "technical",
|
|
767
|
+
"text": "The platform delivers consistent performance across diverse enterprise workflows. Teams maintain clear visibility into ongoing operational priorities. Stakeholders receive timely updates regarding strategic project milestones. Automated processes reduce repetitive overhead for busy specialists. Flexible configurations support evolving organizational requirements smoothly. Reliable infrastructure sustains long-term confidence among partner teams.",
|
|
768
|
+
"expect": "skip"
|
|
769
|
+
},
|
|
770
|
+
{
|
|
771
|
+
"register": "official",
|
|
772
|
+
"text": "The department maintains consistent standards across partner workflows. Teams uphold clear accountability for operational reviews. Offices issue timely notices for quarterly inspections. Standard forms reduce repetitive handoffs across regional desks. Established rules govern ongoing compliance tasks smoothly. Formal records sustain institutional continuity across partner units.",
|
|
773
|
+
"expect": "info"
|
|
774
|
+
}
|
|
775
|
+
]
|
|
776
|
+
}
|
|
777
|
+
},
|
|
778
|
+
{
|
|
779
|
+
"id": "zh-dev-jargon",
|
|
780
|
+
"tier": "taste",
|
|
781
|
+
"severity": "warning",
|
|
782
|
+
"family": "lexicon/dev-jargon",
|
|
783
|
+
"probe": "zh-dev-jargon",
|
|
784
|
+
"zones": ["prose"],
|
|
785
|
+
"modalities": ["markdown", "text", "html", "docx", "pptx"],
|
|
786
|
+
"message": {
|
|
787
|
+
"en": "Paragraph concentrates hollow AI-generated corporate/engineering buzzwords ('全闭环', '深度赋能', '范式跃迁', '零误差', '…化') rather than grounded technical mechanisms.",
|
|
788
|
+
"zh": "单段集中出现 AI 爱写的空洞自嗨黑话(如“全闭环/深度赋能/范式跃迁/零失误/体系化”),而非具体工程或业务机制;偶发行业实词会自动豁免。"
|
|
789
|
+
},
|
|
790
|
+
"deletionTest": {
|
|
791
|
+
"en": "Replace each abstract buzzword with the concrete retry count, queue limit, or exit code.",
|
|
792
|
+
"zh": "把空洞黑话拆成真实机制:写出具体报错码、重试上限、超时秒数或人工处理步骤。"
|
|
793
|
+
},
|
|
794
|
+
"exemplar": {
|
|
795
|
+
"bad": "本次发布建立全闭环校验机制,通过铁律约束完成总收口并形成强兜底,实现零失误交付。",
|
|
796
|
+
"trap": "这不只是发布脚本,而是零缺陷交付的工程铁律。",
|
|
797
|
+
"good": "发布脚本在合入前运行单测与类型检查;任一失败直接退出非零状态码,并保留前一次构建产物用于回滚。",
|
|
798
|
+
"note": {
|
|
799
|
+
"en": "Distinguishes AI-concentrated filler buzzwords from grounded industry terms (such as WAL flush or fallback cache).",
|
|
800
|
+
"zh": "区分 AI 集中黑话与有事实锚点的正常行业术语(如 WAL 落盘、Redis 兜底),不误伤实干表达。"
|
|
801
|
+
},
|
|
802
|
+
"source": "original"
|
|
803
|
+
},
|
|
804
|
+
"fixtures": {
|
|
805
|
+
"hit": [
|
|
806
|
+
"这次网关改造打通全闭环校验,通过强兜底完成总收口并实现零失误上线。",
|
|
807
|
+
"方案打造体系化中台底座,拉齐各业务线口径并建立常态化硬门禁。"
|
|
808
|
+
],
|
|
809
|
+
"clean": [
|
|
810
|
+
"网关在收到连续 5 次 502 响应后熔断 30 秒,并切换到备用节点处理请求。",
|
|
811
|
+
"主库异常时由 Redis 兜底,写入 wal.log 落盘,周五前合入 3 个 PR 收口并打通告警回调。",
|
|
812
|
+
"发布前脚本检查配置文件是否存在未提交密钥。"
|
|
813
|
+
]
|
|
814
|
+
}
|
|
815
|
+
},
|
|
816
|
+
{
|
|
817
|
+
"id": "zh-exclamation",
|
|
818
|
+
"tier": "taste",
|
|
819
|
+
"severity": "warning",
|
|
820
|
+
"family": "punctuation/exclamation",
|
|
821
|
+
"probe": "zh-exclamation",
|
|
822
|
+
"zones": ["prose"],
|
|
823
|
+
"modalities": ["markdown", "text", "html", "docx", "pptx"],
|
|
824
|
+
"message": {
|
|
825
|
+
"en": "Chinese prose paragraph overuses exclamation marks or combines exclamation punctuation with hype modifiers.",
|
|
826
|
+
"zh": "中文正文段出现鸡血营销感叹号(2 处及以上或搭配“太棒了/重磅/彻底告别/震撼”等煽动词),破坏冷静客观的叙述语气。"
|
|
827
|
+
},
|
|
828
|
+
"deletionTest": {
|
|
829
|
+
"en": "Change trailing exclamation marks to periods and remove emotional hype adverbs.",
|
|
830
|
+
"zh": "把句末感叹号改回句号,删去“重磅/太棒了/彻底告别”等鼓动字眼。"
|
|
831
|
+
},
|
|
832
|
+
"exemplar": {
|
|
833
|
+
"bad": "太棒了!新版工具帮你彻底告别繁琐的人工排查!",
|
|
834
|
+
"trap": "别再手查了!立刻开启自动化新体验!",
|
|
835
|
+
"good": "新版工具会在提交前自动扫描未填占位符和超长列表,减少人工复核遗漏。",
|
|
836
|
+
"note": {
|
|
837
|
+
"en": "Short standalone taglines (<20 CJK chars), quoted dialogue, and parenthetical asides remain exempt.",
|
|
838
|
+
"zh": "不超过 20 字的独立短标语、引号对话和括号附注不触发误报。"
|
|
839
|
+
},
|
|
840
|
+
"source": "original"
|
|
841
|
+
},
|
|
842
|
+
"fixtures": {
|
|
843
|
+
"hit": [
|
|
844
|
+
"太棒了!这次版本升级直接解决掉我们拖了半年的历史技术债!",
|
|
845
|
+
"今天我们正式发布离线校验内核!全量规则零依赖运行!团队交付速度直接翻番!"
|
|
846
|
+
],
|
|
847
|
+
"clean": [
|
|
848
|
+
"去 AI 味才是真正的生产力!",
|
|
849
|
+
"示例:当用户看到“请核对参数!”弹窗时,可点击取消按钮返回修改。",
|
|
850
|
+
"系统上线首日处理了 1.4 万次扫描请求,其中拦截 312 处裸露内部路径。"
|
|
851
|
+
]
|
|
852
|
+
}
|
|
853
|
+
},
|
|
854
|
+
{
|
|
855
|
+
"id": "zh-mega-sentence",
|
|
856
|
+
"tier": "taste",
|
|
857
|
+
"severity": "warning",
|
|
858
|
+
"family": "rhythm/mega-sentence",
|
|
859
|
+
"probe": "zh-mega-sentence",
|
|
860
|
+
"zones": ["prose"],
|
|
861
|
+
"modalities": ["markdown", "text", "html", "docx"],
|
|
862
|
+
"message": {
|
|
863
|
+
"en": "Single Chinese prose sentence exceeds 180 CJK characters (or 120+ CJK with 180+ total chars) without breaking.",
|
|
864
|
+
"zh": "中文单句一逗到底超过 180 个汉字(或 >= 120 汉字且总长超 180 字),阅读负担重,呈大模型长从句生成特征。"
|
|
865
|
+
},
|
|
866
|
+
"deletionTest": {
|
|
867
|
+
"en": "Split at the natural clause shift using periods so each sentence carries one main subject and action.",
|
|
868
|
+
"zh": "按事件或条件转换处切成句号短句,每句只交代一个主动作或边界条件。"
|
|
869
|
+
},
|
|
870
|
+
"exemplar": {
|
|
871
|
+
"bad": "我们在周一完成双集群流量切分后观察到 orders-worker-service-cluster-01 核心交易接口延迟上升三毫秒但考虑到异步日志落盘能够避免主线程在高峰期被磁盘刷写操作阻塞并且可在节点异常重启后完整保留上下文追踪链路以便值班同学快速排查请求参数与调用栈因此决定保留当前配置并在周四晚低峰期继续观察四十八小时以确认内存缓冲池没有缓慢泄漏或堆积风险。",
|
|
872
|
+
"trap": "切双集群。延迟微升。观察两天。",
|
|
873
|
+
"good": "周一完成双集群切分后延迟升了 3ms,但异步落盘可防阻塞并保链路。团队周四再复查 48 小时内存占用。",
|
|
874
|
+
"note": {
|
|
875
|
+
"en": "Protects decimals and versions during break scan.",
|
|
876
|
+
"zh": "切句时跳过小数与版本号。"
|
|
877
|
+
},
|
|
878
|
+
"source": "original"
|
|
879
|
+
},
|
|
880
|
+
"fixtures": {
|
|
881
|
+
"hit": [
|
|
882
|
+
"我们在周一完成新旧双集群流量切分之后虽然观察到核心交易接口的平均延迟略微上升了三毫秒但是考虑到全量开启异步日志落盘能够避免高并发时主线程被磁盘刷写操作阻塞并且可以在节点异常重启时保留完整的上下文追踪链路以便值班工程师在十分钟内定位到具体的异常请求来源和参数状态因此决定保留当前异步配置并在周四晚间低峰期继续观察四十八小时以验证内存缓冲池是否存在缓慢泄漏或者堆积风险从而为下个月的大促扩容做好技术准备。"
|
|
883
|
+
],
|
|
884
|
+
"clean": [
|
|
885
|
+
"周一完成双集群流量切分后,核心交易接口平均延迟上升 3ms。我们决定保留异步日志落盘配置,并在周四低峰期观察 48 小时内存占用,确认无堆积后定扩容上限。"
|
|
886
|
+
]
|
|
887
|
+
}
|
|
888
|
+
},
|
|
889
|
+
{
|
|
890
|
+
"id": "unsourced-statistic",
|
|
891
|
+
"tier": "taste",
|
|
892
|
+
"severity": "warning",
|
|
893
|
+
"family": "evidence/unsourced-stat",
|
|
894
|
+
"probe": "unsourced-statistic",
|
|
895
|
+
"zones": ["prose"],
|
|
896
|
+
"modalities": ["markdown", "text", "html", "docx", "pptx"],
|
|
897
|
+
"message": {
|
|
898
|
+
"en": "Marketing-style percentage claim ('up to X%', 'reduces by X%', '提升 X%', '高达 X%') lacks a baseline, sample size, metric name, or citation.",
|
|
899
|
+
"zh": "宣传式百分比数字宣称(如“提升 40%”“高达 80%”“up to 50%”)附近缺少测试基线、样本数、指标口径或引用来源。"
|
|
900
|
+
},
|
|
901
|
+
"deletionTest": {
|
|
902
|
+
"en": "Add the before -> after baseline, sample size (n=...), or link to the benchmark; otherwise cut the unverified percentage.",
|
|
903
|
+
"zh": "补出改动前后的基准对比、样本量或测评出处;拿不出出处就删掉具体百分比。"
|
|
904
|
+
},
|
|
905
|
+
"exemplar": {
|
|
906
|
+
"bad": "Switching to the updated triage workflow boosts team efficiency by up to 45%.",
|
|
907
|
+
"trap": "Teams work smarter. Triage moves faster. Quality soars.",
|
|
908
|
+
"good": "In our 12-repo benchmark (n=112 docs), queue review time dropped from 18 min to 10 min (by 44%, measured on CI logs).",
|
|
909
|
+
"note": {
|
|
910
|
+
"en": "Exempts claims backed by from/to baselines, sample counts, metric terms, or citation links nearby.",
|
|
911
|
+
"zh": "同句或紧邻范围出现基线对比、样本数或出处链接时自动豁免。"
|
|
912
|
+
},
|
|
913
|
+
"source": "original"
|
|
914
|
+
},
|
|
915
|
+
"fixtures": {
|
|
916
|
+
"hit": [
|
|
917
|
+
"Deploying this assistant increases enterprise productivity by up to 60%.",
|
|
918
|
+
"引入该工作流后团队交付效率提升 45%,整体成本节省了 30%。"
|
|
919
|
+
],
|
|
920
|
+
"clean": [
|
|
921
|
+
"Based on benchmark evaluation across n=112 samples, F1 improved from 72.1% to 100.0%.",
|
|
922
|
+
"基于 120 份实测日志样本,错误率从 4.2% 降至 1.1%,平均耗时压缩至 95ms。",
|
|
923
|
+
"据《2026 研发效能年报》,构建缓存命中率提高 38%。"
|
|
594
924
|
]
|
|
595
925
|
}
|
|
596
926
|
}
|
package/packs/core/pack.json
CHANGED
|
@@ -20,7 +20,9 @@
|
|
|
20
20
|
"jsx",
|
|
21
21
|
"svg",
|
|
22
22
|
"docx",
|
|
23
|
-
"pptx"
|
|
23
|
+
"pptx",
|
|
24
|
+
"pdf",
|
|
25
|
+
"image"
|
|
24
26
|
],
|
|
25
27
|
"thresholds": {},
|
|
26
28
|
"rules": [
|
|
@@ -31,7 +33,7 @@
|
|
|
31
33
|
"family": "hygiene/placeholder",
|
|
32
34
|
"probe": "regex",
|
|
33
35
|
"zones": ["prose", "ui-text"],
|
|
34
|
-
"modalities": ["markdown", "text", "html", "jsx", "svg", "docx", "pptx"],
|
|
36
|
+
"modalities": ["markdown", "text", "html", "jsx", "svg", "docx", "pptx", "pdf"],
|
|
35
37
|
"patterns": [
|
|
36
38
|
"(?<![A-Za-z])(?:lorem ipsum|dolor sit amet)(?![A-Za-z])",
|
|
37
39
|
"\\[(?:insert|add|your|placeholder|tbd|todo)(?:\\s+[^\\]\\n]{1,50})?\\](?!\\s*\\()",
|
|
@@ -80,11 +82,13 @@
|
|
|
80
82
|
"family": "hygiene/chat-residue",
|
|
81
83
|
"probe": "regex",
|
|
82
84
|
"zones": ["prose", "ui-text"],
|
|
83
|
-
"modalities": ["markdown", "text", "html", "jsx", "docx", "pptx"],
|
|
85
|
+
"modalities": ["markdown", "text", "html", "jsx", "docx", "pptx", "pdf"],
|
|
84
86
|
"patterns": [
|
|
85
87
|
"(?:^|\\n)\\s*(?:Certainly|Sure|Absolutely|Of course|Happy to help|Glad to help)[!,.]?\\s+(?:[Hh]ere(?:'s| is| are)|[Bb]elow is)\\b",
|
|
86
88
|
"(?:^|\\n)\\s*Here\\s+(?:is|are)\\s+the\\s+(?:revised|updated|polished)\\s+",
|
|
87
|
-
"\\
|
|
89
|
+
"(?:^|\\n|[.!?]\\s+)\\s*As an AI(?:\\s+(?:language model|assistant))?(?:\\s*,|\\s+(?:I|we|my|here)\\b|\\s*$)",
|
|
90
|
+
"\\bAs an AI (?:language model|assistant)\\b",
|
|
91
|
+
"\\bAs an AI\\s*,\\s*(?:I|we|my)\\b",
|
|
88
92
|
"\\bI hope this helps[!.]?",
|
|
89
93
|
"\\bFeel free to (?:reach out|let me know|ask) if you (?:need|have) (?:anything|any (?:other |further )?questions)[!.]?",
|
|
90
94
|
"(?:^|\\n)\\s*(?:好的|当然可以|没问题)[,,!!]?\\s*(?:以下|下面)是",
|
|
@@ -124,13 +128,16 @@
|
|
|
124
128
|
"周二 10:00 切流。希望这对你有帮助!",
|
|
125
129
|
"以下是为您整理的会议纪要:周四发布。",
|
|
126
130
|
"Here is the revised launch note: deploys at 14:00 UTC.",
|
|
127
|
-
"作为一个 AI 助手,我建议先做灰度验证。"
|
|
131
|
+
"作为一个 AI 助手,我建议先做灰度验证。",
|
|
132
|
+
"As an AI, I cannot verify live deployment pricing."
|
|
128
133
|
],
|
|
129
134
|
"clean": [
|
|
130
135
|
"Sure enough, the cache warmed within 40 seconds.",
|
|
131
136
|
"Q2 churn dropped from 4.1% to 3.4%.",
|
|
132
137
|
"会议纪要:周三上线。",
|
|
133
|
-
"以下是本周进展:接口延迟降到 120ms。"
|
|
138
|
+
"以下是本周进展:接口延迟降到 120ms。",
|
|
139
|
+
"The daemon monitors queue depth every 5 seconds.",
|
|
140
|
+
"The reviewer flagged the subtitle as an AI microcopy tic in the prototype."
|
|
134
141
|
]
|
|
135
142
|
}
|
|
136
143
|
},
|
|
@@ -140,7 +147,7 @@
|
|
|
140
147
|
"severity": "error",
|
|
141
148
|
"family": "hygiene/markdown-leak",
|
|
142
149
|
"probe": "office-markdown-leak",
|
|
143
|
-
"modalities": ["docx", "pptx"],
|
|
150
|
+
"modalities": ["docx", "pptx", "pdf"],
|
|
144
151
|
"message": {
|
|
145
152
|
"en": "Raw Markdown syntax (`**bold**` or `## heading`) pasted unrendered into Word or PowerPoint.",
|
|
146
153
|
"zh": "Word 或 PowerPoint 文本中残留未渲染的原始 Markdown 标记(如 `**加粗**` 或 `## 标题`)。"
|