dislop 0.0.0-stage → 0.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 (53) hide show
  1. package/.agents/plugins/marketplace.json +20 -0
  2. package/.claude-plugin/marketplace.json +33 -0
  3. package/.claude-plugin/plugin.json +23 -0
  4. package/.codex-plugin/plugin.json +49 -0
  5. package/.cursor-plugin/plugin.json +27 -0
  6. package/.mcp.json +8 -0
  7. package/.pre-commit-hooks.yaml +13 -0
  8. package/LICENSE +202 -0
  9. package/PRODUCT.md +49 -0
  10. package/README.md +245 -2
  11. package/README.zh-CN.md +242 -0
  12. package/action.yml +90 -0
  13. package/assets/logo.svg +8 -0
  14. package/bin/dislop-mcp.mjs +5 -0
  15. package/bin/dislop.mjs +1967 -0
  16. package/gemini-extension.json +10 -0
  17. package/mcp.json +9 -0
  18. package/models/manifest.json +90 -0
  19. package/models/pocket-slop-v1.json +1 -0
  20. package/package.json +92 -4
  21. package/packs/business-brief/pack.json +598 -0
  22. package/packs/core/pack.json +198 -0
  23. package/packs/deck-and-ui/pack.json +290 -0
  24. package/packs/engineering-spec/pack.json +144 -0
  25. package/packs/executive-deck/pack.json +98 -0
  26. package/packs/literary-essay/pack.json +324 -0
  27. package/packs/regulated-comms/pack.json +99 -0
  28. package/patterns/README.md +39 -0
  29. package/patterns/banks/composite-fusion.json +36 -0
  30. package/patterns/banks/discourse-rhythm.json +95 -0
  31. package/patterns/banks/lexical-signals.json +74 -0
  32. package/patterns/banks/syntactic-frames.json +45 -0
  33. package/patterns/banks/visual-deck.json +37 -0
  34. package/patterns/dimensions/artifacts.json +121 -0
  35. package/patterns/dimensions/discourse.json +412 -0
  36. package/patterns/dimensions/lexical.json +172 -0
  37. package/patterns/dimensions/rhythm.json +206 -0
  38. package/patterns/dimensions/syntactic.json +285 -0
  39. package/patterns/dimensions/visual-and-deck.json +322 -0
  40. package/patterns/taxonomy.json +112 -0
  41. package/plugin.json +41 -0
  42. package/server.json +18 -0
  43. package/skills/dislop/SKILL.md +58 -0
  44. package/skills/dislop/agents/openai.yaml +6 -0
  45. package/skills/dislop/references/business-and-rfc.md +26 -0
  46. package/skills/dislop/references/editorial-and-essay.md +20 -0
  47. package/skills/dislop/references/regulated-and-precision.md +27 -0
  48. package/skills/dislop/references/web-ui-and-deck.md +26 -0
  49. package/src/binary-node.mjs +85 -0
  50. package/src/core.mjs +2500 -0
  51. package/src/local-model.mjs +977 -0
  52. package/src/pattern-engine.mjs +853 -0
  53. package/src/pocket-model.mjs +707 -0
@@ -0,0 +1,412 @@
1
+ {
2
+ "schema": "dislop.pattern-library/1",
3
+ "dimension": "discourse",
4
+ "version": "1.0.0",
5
+ "patterns": [
6
+ {
7
+ "id": "pat-en-throat-clearing-opener",
8
+ "ruleId": "en-throat-clearing-opener",
9
+ "packId": "business-brief",
10
+ "category": "language-template",
11
+ "detectionAngle": "discourse-structure",
12
+ "status": "active",
13
+ "severityDefault": "warning",
14
+ "languages": ["en"],
15
+ "modalities": ["markdown", "text", "html", "docx", "pptx"],
16
+ "evidenceLevel": "editorial-consensus",
17
+ "name": { "en": "English Throat-Clearing Opener", "zh": "英文铺垫开场白" },
18
+ "mechanism": {
19
+ "en": "Filler sentence openers (`It is worth noting that`, `In today's fast-paced`, `Let's dive right into`) stall before stating the actual fact.",
20
+ "zh": "英文段首或句首习惯加一层无信息铺垫壳(如 `It is worth noting that`、`In today's fast-paced`)。"
21
+ },
22
+ "tags": ["opener", "throat-clearing", "filler", "en", "铺垫开场"],
23
+ "falsePositiveGuards": [
24
+ "Matches only at sentence/paragraph boundaries."
25
+ ],
26
+ "modelTendencies": ["gpt-family", "general-llm"],
27
+ "exemplar": {
28
+ "bad": "It is worth noting that CSV exports take up to 12 minutes for workspaces above 500,000 rows.",
29
+ "trap": "CSV exports aren't instant — they're built for precision, taking up to 12 minutes.",
30
+ "good": "CSV exports take up to 12 minutes for workspaces above 500,000 rows.",
31
+ "source": "original"
32
+ }
33
+ },
34
+ {
35
+ "id": "pat-unsourced-attribution",
36
+ "ruleId": "unsourced-attribution",
37
+ "packId": "business-brief",
38
+ "category": "evidence-rigor",
39
+ "detectionAngle": "discourse-structure",
40
+ "status": "active",
41
+ "severityDefault": "warning",
42
+ "languages": ["en", "zh"],
43
+ "modalities": ["markdown", "text", "html", "docx", "pptx"],
44
+ "evidenceLevel": "editorial-consensus",
45
+ "name": { "en": "Unsourced Authority Attribution", "zh": "无出处权威背书" },
46
+ "mechanism": {
47
+ "en": "Models fabricate authority by writing `Studies show` / `研究表明` / `业内人士指出` without naming a dataset, year, footnote, or link.",
48
+ "zh": "用“研究表明/数据显示/业内人士指出”制造权威感,但附近没有具体机构、年份、链接或脚注。"
49
+ },
50
+ "tags": ["attribution", "citation", "evidence", "weasel", "研究表明", "数据显示", "无出处"],
51
+ "falsePositiveGuards": [
52
+ "Inspects surrounding 210-character window for footnotes (`[1]`), links (`](...)`), URLs, `(Author, 2024)`, or `《报告》`."
53
+ ],
54
+ "modelTendencies": ["general-llm"],
55
+ "exemplar": {
56
+ "bad": "Industry research shows that 70% of enterprise decks fail basic accessibility checks.",
57
+ "trap": "Everyone knows most enterprise decks fail basic accessibility checks.",
58
+ "good": "In our audit of 48 internal Q3 review decks, 31 contained at least one low-contrast caption (< 4.5:1).",
59
+ "source": "original"
60
+ }
61
+ },
62
+ {
63
+ "id": "pat-bold-lead-list-wall",
64
+ "ruleId": "bold-lead-list-wall",
65
+ "packId": "business-brief",
66
+ "category": "language-template",
67
+ "detectionAngle": "discourse-structure",
68
+ "status": "active",
69
+ "severityDefault": "info",
70
+ "languages": ["en", "zh"],
71
+ "modalities": ["markdown", "text"],
72
+ "evidenceLevel": "editorial-consensus",
73
+ "name": { "en": "Bold-Lead Bullet List Wall", "zh": "加粗小标题列表墙" },
74
+ "mechanism": {
75
+ "en": "Instruction tuning strongly biases assistants to answer with 4+ consecutive `- **Keyword**: explanation` bullets even for simple narrative points.",
76
+ "zh": "指令微调使模型动辄输出 4 条以上 `- **小标题**:说明` 列表墙,把本来两句话能讲清的事拆碎平铺。"
77
+ },
78
+ "tags": ["list-wall", "bullets", "bold-lead", "列表墙", "加粗清单"],
79
+ "falsePositiveGuards": [
80
+ "Exempts code-flagged reference lists ('- `--pack`: ...') and short 1–3 item lists."
81
+ ],
82
+ "modelTendencies": ["gpt-family", "gemini-family"],
83
+ "exemplar": {
84
+ "bad": "- **Speed**: Runs fast locally.\n- **Privacy**: Keeps files offline.\n- **Modularity**: Uses JSON packs.\n- **Clarity**: Prints line numbers.",
85
+ "trap": "Speed. Privacy. Modularity. Clarity.",
86
+ "good": "`dislop` runs locally with no network calls, loads rules from plain JSON packs, and prints exact file and line coordinates.",
87
+ "source": "original"
88
+ }
89
+ },
90
+ {
91
+ "id": "pat-zh-essay-moralizing-ending",
92
+ "ruleId": "zh-essay-moralizing-ending",
93
+ "packId": "literary-essay",
94
+ "category": "language-template",
95
+ "detectionAngle": "discourse-structure",
96
+ "status": "active",
97
+ "severityDefault": "warning",
98
+ "languages": ["zh"],
99
+ "modalities": ["markdown", "text", "html", "docx"],
100
+ "evidenceLevel": "editorial-consensus",
101
+ "name": { "en": "Chinese Moralizing Ending Formula", "zh": "中文段尾说教升华套句" },
102
+ "mechanism": {
103
+ "en": "Chinese AI essays routinely bolt on a moralizing summary (`这或许就是……的意义所在`, `唯有……方能……`, `总而言之`) that flattens concrete endings.",
104
+ "zh": "中文散文与评论结尾常被强行加上“这正是……的意义所在”“唯有……才能……”“愿我们……”等说教总结。"
105
+ },
106
+ "tags": ["ending", "moralizing", "essay", "zh", "升华", "说教结尾", "意义所在"],
107
+ "falsePositiveGuards": [
108
+ "Concrete physical scene endings without summary formulas never match."
109
+ ],
110
+ "modelTendencies": ["claude-family", "deepseek-family", "qwen-family"],
111
+ "exemplar": {
112
+ "bad": "傍晚六点半,修表匠把拆下的三枚铜齿轮泡进煤油皿里,关掉台灯。这或许就是慢工出细活在喧嚣时代真正的意义所在。",
113
+ "trap": "傍晚六点半,三枚铜齿轮泡进煤油皿。这不是修表,而是与时间的对话。",
114
+ "good": "傍晚六点半,修表匠把拆下的三枚铜齿轮泡进煤油皿里,关掉台灯。",
115
+ "source": "original"
116
+ }
117
+ },
118
+ {
119
+ "id": "pat-en-essay-moralizing-ending",
120
+ "ruleId": "en-essay-moralizing-ending",
121
+ "packId": "literary-essay",
122
+ "category": "language-template",
123
+ "detectionAngle": "discourse-structure",
124
+ "status": "active",
125
+ "severityDefault": "warning",
126
+ "languages": ["en"],
127
+ "modalities": ["markdown", "text", "html", "docx"],
128
+ "evidenceLevel": "editorial-consensus",
129
+ "name": { "en": "English Wistful Moralizing Conclusion", "zh": "英文感伤说教结语" },
130
+ "mechanism": {
131
+ "en": "English narrative generations close with stock wistful takeaways (`Ultimately, this reminds us that...`, `And maybe, just maybe,`) instead of stopping on the concrete scene.",
132
+ "zh": "英文非虚构或散文结尾高频出现 `Ultimately, this reminds us that...`、`And maybe, just maybe,` 等替读者总结情绪的套话。"
133
+ },
134
+ "tags": ["ending", "moralizing", "essay", "en", "wistful", "英文升华结尾"],
135
+ "falsePositiveGuards": [
136
+ "Anchored to sentence boundaries and multi-word moralizing frames."
137
+ ],
138
+ "modelTendencies": ["claude-family", "gpt-family"],
139
+ "exemplar": {
140
+ "bad": "At 6:15 a.m., the ferry deck smelled of wet rope and diesel. Ultimately, this reminds us that departures are always quieter than arrivals.",
141
+ "trap": "Wet rope. Cold diesel. Quiet departures at 6:15 a.m.",
142
+ "good": "At 6:15 a.m., the ferry deck smelled of wet rope and diesel.",
143
+ "source": "original"
144
+ }
145
+ },
146
+ {
147
+ "id": "pat-narrative-sandwich-frame",
148
+ "ruleId": "narrative-sandwich-frame",
149
+ "packId": "business-brief",
150
+ "category": "language-template",
151
+ "detectionAngle": "discourse-structure",
152
+ "status": "active",
153
+ "severityDefault": "warning",
154
+ "languages": ["en", "zh"],
155
+ "modalities": ["markdown", "text", "html", "docx", "pptx"],
156
+ "evidenceLevel": "editorial-consensus",
157
+ "name": { "en": "Era-Opener + Future-Outlook Sandwich Frame", "zh": "时代宏大开篇 + 未来展望夹心壳" },
158
+ "mechanism": {
159
+ "en": "LLM briefs wrap ordinary facts in a sweeping era opener (`In an era defined by...`, `在当今信息爆炸的时代`) paired with a future-outlook closer (`Moving forward...`, `展望未来……`).",
160
+ "zh": "用宏大时代背景开篇再配一段“展望未来/必将迎来广阔空间”收尾,把具体内容包进模板夹心。"
161
+ },
162
+ "tags": ["sandwich-frame", "era-opener", "future-closer", "时代背景", "展望未来"],
163
+ "falsePositiveGuards": ["Concrete date/project openings stay exempt."],
164
+ "modelTendencies": ["gpt-family", "qwen-family"],
165
+ "exemplar": {
166
+ "bad": "在当今信息爆炸的时代,自动化审校已成为不可逆转的趋势。展望未来,它必将迎来更广阔的应用空间。",
167
+ "trap": "审校变快。质量变稳。未来已来。",
168
+ "good": "我们在 CI 里接入了离线文档检查,上周拦下了 6 处未填占位符和 2 个失效链接。",
169
+ "source": "original"
170
+ }
171
+ },
172
+ {
173
+ "id": "pat-literary-narrative-frame",
174
+ "ruleId": "literary-narrative-frame",
175
+ "packId": "literary-essay",
176
+ "category": "language-template",
177
+ "detectionAngle": "discourse-structure",
178
+ "status": "active",
179
+ "severityDefault": "warning",
180
+ "languages": ["en", "zh"],
181
+ "modalities": ["markdown", "text", "html", "docx"],
182
+ "evidenceLevel": "editorial-consensus",
183
+ "name": { "en": "Literary Era-Backdrop & Takeaway Frame", "zh": "散文时代背景与鸡汤收尾壳" },
184
+ "mechanism": {
185
+ "en": "Personal essays framed with grand era generalizations and uplifting takeaways lose their concrete time and place.",
186
+ "zh": "随笔戴上“在快节奏都市生活中……”的宏大帽子和鸡汤收尾,稀释了真实场景。"
187
+ },
188
+ "tags": ["essay", "era-opener", "takeaway", "随笔模板"],
189
+ "falsePositiveGuards": ["Concrete time/place openings stay clean."],
190
+ "modelTendencies": ["claude-family", "deepseek-family"],
191
+ "exemplar": {
192
+ "bad": "In an era defined by relentless notifications, a quiet morning routine offers calm. Moving forward, protecting stillness remains essential.",
193
+ "trap": "Notifications beep. Coffee cools. Stillness stays.",
194
+ "good": "Before seven the street stays quiet except for the milk truck reversing down the alley.",
195
+ "source": "original"
196
+ }
197
+ },
198
+ {
199
+ "id": "pat-template-skeleton-echo",
200
+ "ruleId": "template-skeleton-echo",
201
+ "packId": "business-brief",
202
+ "category": "language-template",
203
+ "detectionAngle": "discourse-structure",
204
+ "status": "active",
205
+ "severityDefault": "warning",
206
+ "languages": ["en", "zh"],
207
+ "modalities": ["markdown", "text", "html", "docx"],
208
+ "evidenceLevel": "empirical-corpus",
209
+ "name": { "en": "Repeated Structural Skeleton Echo", "zh": "跨段结构骨架机械复用" },
210
+ "mechanism": {
211
+ "en": "Multi-section drafts stamp out identical rhetorical skeletons (`First... Second... Finally...` or repeated `一方面……另一方面……` / `不仅……而且……` shells) across consecutive blocks.",
212
+ "zh": "连续段落或小节反复套用同一种逻辑骨架与过渡句壳,呈现流水线填空感。"
213
+ },
214
+ "tags": ["skeleton", "template", "discourse", "结构复用", "骨架模板"],
215
+ "falsePositiveGuards": ["Short natural docs and varied section structures stay exempt."],
216
+ "modelTendencies": ["gpt-family", "gemini-family", "qwen-family"],
217
+ "exemplar": {
218
+ "bad": "一方面,系统提升了吞吐;另一方面,系统降低了延迟。与此同时,系统优化了配置;此外,系统增强了监控。",
219
+ "trap": "吞吐升。延迟降。监控全。",
220
+ "good": "升级后网关峰值吞吐提高到 8,000 QPS,p99 延迟降到 42 ms,告警配置统一收进单个 YAML 文件。",
221
+ "source": "original"
222
+ }
223
+ },
224
+ {
225
+ "id": "pat-discourse-marker-cluster",
226
+ "ruleId": "discourse-marker-cluster",
227
+ "packId": "pattern-bank",
228
+ "category": "language-rhythm",
229
+ "detectionAngle": "discourse-structure",
230
+ "status": "active-bank",
231
+ "severityDefault": "warning",
232
+ "languages": ["en", "zh"],
233
+ "modalities": ["markdown", "text", "html", "docx"],
234
+ "evidenceLevel": "empirical-corpus",
235
+ "name": { "en": "Mechanical Discourse Transition Cluster", "zh": "机械过渡路标簇" },
236
+ "mechanism": {
237
+ "en": "Stacking 3+ consecutive paragraphs or 3+ sentences in one paragraph with stock transition signposts (`首先/其次/此外/最后`, `Furthermore/Moreover/Additionally/Consequently`) reveals template outlining.",
238
+ "zh": "连续 3 个自然段或单段内连续 3 句堆砌机械路标词(“首先/其次/此外/最后/综上所述”或 “Furthermore/Moreover/Additionally”),呈现明显大纲填空感。"
239
+ },
240
+ "tags": ["discourse", "transition", "signpost", "cluster", "首先其次", "此外", "furthermore", "moreover", "过渡词"],
241
+ "falsePositiveGuards": [
242
+ "Single or paired transitions (1–2 occurrences) stay exempt; skips headings, lists, and tables."
243
+ ],
244
+ "modelTendencies": ["gpt-family", "qwen-family", "general-llm"],
245
+ "exemplar": {
246
+ "bad": "首先,我们需要统一数据采集口径。\n\n其次,研发团队要补齐自动化测试脚本。\n\n最后,运营侧同步更新交付检查清单。",
247
+ "trap": "口径统一。脚本补齐。清单更新。",
248
+ "good": "上线前要完成三件事:先统一采集口径,再补齐自动化测试脚本,最后由运营更新检查清单。",
249
+ "source": "original"
250
+ }
251
+ },
252
+ {
253
+ "id": "pat-composite-multi-signal",
254
+ "ruleId": "composite-multi-signal",
255
+ "packId": "pattern-bank",
256
+ "category": "composite-signal",
257
+ "detectionAngle": "composite-cooccurrence",
258
+ "status": "active-bank",
259
+ "severityDefault": "info",
260
+ "languages": ["en", "zh"],
261
+ "modalities": ["markdown", "text", "html", "docx"],
262
+ "evidenceLevel": "empirical-corpus",
263
+ "name": { "en": "Multi-Dimension Sub-Threshold Composite AI Cadence", "zh": "跨维度弱信号复合 AI 腔" },
264
+ "mechanism": {
265
+ "en": "Stealth AI drafts stay just below each individual single-rule threshold (e.g., 1 excess phrase + 1 mild concession frame + 2 discourse transitions + low concrete specificity), yet the cross-dimension co-occurrence is unmistakable.",
266
+ "zh": "经过简单规避的 AI 稿件往往把每个单维度指标压到刚好不触发单条规则(如 1 处弱词 + 1 处温和让步 + 2 处过渡词 + 低具体度),但跨维度共现得分依然显著高于人写稿。"
267
+ },
268
+ "tags": ["composite", "stealth-slop", "multi-angle", "cooccurrence", "复合信号", "隐蔽AI味"],
269
+ "falsePositiveGuards": [
270
+ "Requires >= 2 distinct orthogonal weak dimensions firing inside the same low-specificity passage AND concrete fact density below threshold.",
271
+ "High concrete-evidence density (numbers, timestamps, file paths, code blocks) strongly suppresses composite score."
272
+ ],
273
+ "modelTendencies": ["claude-family", "gpt-family", "gemini-family"],
274
+ "exemplar": {
275
+ "bad": "Notably, the redesign plays a crucial role in modern workflows. Furthermore, while migration involves certain hurdles, it ultimately delivers meaningful value across teams.",
276
+ "trap": "Migration isn't a hurdle — it's modern workflow value.",
277
+ "good": "Migrating from v1 to v2 took two days of schema backfills and cut nightly export time from 48 minutes to 11 minutes.",
278
+ "source": "original"
279
+ }
280
+ },
281
+ {
282
+ "id": "pat-eng-pr-diff-parrot",
283
+ "ruleId": "eng-pr-diff-parrot",
284
+ "packId": "engineering-spec",
285
+ "category": "language-template",
286
+ "detectionAngle": "discourse-structure",
287
+ "status": "active",
288
+ "severityDefault": "warning",
289
+ "languages": ["en", "zh"],
290
+ "modalities": ["markdown", "text"],
291
+ "evidenceLevel": "editorial-consensus",
292
+ "name": { "en": "AI PR Diff-Parrot Summary", "zh": "空泛 AI 提交摘要壳" },
293
+ "mechanism": {
294
+ "en": "Generated PR summaries restate 'This PR updates X to ensure a seamless/maintainable experience' without naming the bug, ticket, or failure mode.",
295
+ "zh": "代码提交说明只套用“本次 PR 旨在通过优化……提升可维护性”,不交代问题单、触发分支与验证结果。"
296
+ },
297
+ "tags": ["engineering", "pr", "commit", "summary", "研发文档", "PR摘要"],
298
+ "falsePositiveGuards": ["Matches only explicit 'This PR/commit ... to ensure seamless/robust...' and Chinese equivalents lacking concrete bug context."],
299
+ "modelTendencies": ["copilot-pr", "general-llm"],
300
+ "exemplar": {
301
+ "bad": "本次 PR 旨在通过重构连接池管理逻辑进一步提升系统的稳定性与可维护性。",
302
+ "trap": "这不是一次普通的代码重构,而是连接池稳定性的底层重塑。",
303
+ "good": "修复 Redis 重连分支未释放旧句柄导致的连接泄漏(#412),压测 2 小时常驻连接数稳定在 64 以内。",
304
+ "source": "original"
305
+ }
306
+ },
307
+ {
308
+ "id": "pat-eng-shallow-root-cause",
309
+ "ruleId": "eng-shallow-root-cause",
310
+ "packId": "engineering-spec",
311
+ "category": "evidence-rigor",
312
+ "detectionAngle": "discourse-structure",
313
+ "status": "active",
314
+ "severityDefault": "warning",
315
+ "languages": ["en", "zh"],
316
+ "modalities": ["markdown", "text", "docx"],
317
+ "evidenceLevel": "editorial-consensus",
318
+ "name": { "en": "Stop-Thinking 'Human Error' Root Cause", "zh": "止步于“人为失误”的浅层归因" },
319
+ "mechanism": {
320
+ "en": "Incident postmortems stop at 'Root cause: human error / operator oversight' instead of naming the missing automated guardrail.",
321
+ "zh": "故障复盘把根因简单写成“人为失误/操作不当”,掩盖了脚本缺失校验或发布缺少自动熔断的真问题。"
322
+ },
323
+ "tags": ["postmortem", "incident", "root-cause", "engineering", "故障复盘", "人为失误"],
324
+ "falsePositiveGuards": ["Triggers only when 'Root cause / 根本原因:' ends immediately on a bare human-error label."],
325
+ "modelTendencies": ["general-llm"],
326
+ "exemplar": {
327
+ "bad": "根本原因:人为失误。",
328
+ "trap": "根本原因:值班人员风险意识有待进一步强化。",
329
+ "good": "根本原因:生产迁移脚本缺少库名白名单与行数上限预检,未拦截误指向主库的删除语句。",
330
+ "source": "original"
331
+ }
332
+ },
333
+ {
334
+ "id": "pat-eng-vague-action-item",
335
+ "ruleId": "eng-vague-action-item",
336
+ "packId": "engineering-spec",
337
+ "category": "evidence-rigor",
338
+ "detectionAngle": "discourse-structure",
339
+ "status": "active",
340
+ "severityDefault": "info",
341
+ "languages": ["en", "zh"],
342
+ "modalities": ["markdown", "text", "docx"],
343
+ "evidenceLevel": "editorial-consensus",
344
+ "name": { "en": "Unowned Wishful Action Item", "zh": "无指标无负责人的许愿式改进项" },
345
+ "mechanism": {
346
+ "en": "Action lists end with unverifiable wishes ('Add more monitoring', '加强监控与告警') with no service, threshold, owner, or date.",
347
+ "zh": "复盘或方案待办只写“加强监控”“后续持续关注”,没有服务名、告警阈值、负责人与截止日期。"
348
+ },
349
+ "tags": ["postmortem", "todo", "action-item", "engineering", "改进项", "加强监控"],
350
+ "falsePositiveGuards": ["Matches only standalone list items that end right after the vague verb phrase without metrics, @owners, or dates."],
351
+ "modelTendencies": ["general-llm"],
352
+ "exemplar": {
353
+ "bad": "- [ ] 加强监控与告警。",
354
+ "trap": "- [ ] 全面排查并持续跟进线上隐患。",
355
+ "good": "- [ ] 给 `checkout-api` 增加 P99 > 400ms 持续 3 分钟告警并接入值班群(负责人:李工,11 月 30 日前完成)。",
356
+ "source": "original"
357
+ }
358
+ },
359
+ {
360
+ "id": "pat-reg-unsubstantiated-superlative",
361
+ "ruleId": "reg-unsubstantiated-superlative",
362
+ "packId": "regulated-comms",
363
+ "category": "evidence-rigor",
364
+ "detectionAngle": "regex-invariant",
365
+ "status": "active",
366
+ "severityDefault": "warning",
367
+ "languages": ["en", "zh"],
368
+ "modalities": ["markdown", "text", "html", "docx", "pptx"],
369
+ "evidenceLevel": "objective-invariant",
370
+ "name": { "en": "Unsubstantiated Absolute or Superlative Claim", "zh": "绝对化承诺与极限合规禁词" },
371
+ "mechanism": {
372
+ "en": "External copy promises '100% secure', 'zero-risk guarantee', or '绝对安全 / 全网第一', creating regulatory and contractual liability.",
373
+ "zh": "对外材料出现“绝对安全”“零风险承诺”“全网第一”等无边界极限表述,易触发广告合规与合同履约风险。"
374
+ },
375
+ "tags": ["compliance", "legal", "superlative", "ad-law", "绝对安全", "零风险", "极限词"],
376
+ "falsePositiveGuards": ["Targets explicit absolute guarantees ('100% secure', '永久零故障') while allowing scoped SLA percentages like '99.95% uptime'."],
377
+ "modelTendencies": ["marketing-llm", "general-llm"],
378
+ "exemplar": {
379
+ "bad": "新备份方案提供绝对安全与永久零故障保障,客户迁移零风险承诺。",
380
+ "trap": "新备份方案打造坚不可摧的行业标杆级防线。",
381
+ "good": "新备份方案默认启用同城双活与每日离线快照,企业版合同承诺月度可用性 99.95%(RPO <= 15 分钟)。",
382
+ "source": "original"
383
+ }
384
+ },
385
+ {
386
+ "id": "pat-reg-unanchored-multiplier",
387
+ "ruleId": "reg-unanchored-multiplier",
388
+ "packId": "regulated-comms",
389
+ "category": "evidence-rigor",
390
+ "detectionAngle": "discourse-structure",
391
+ "status": "active",
392
+ "severityDefault": "warning",
393
+ "languages": ["en", "zh"],
394
+ "modalities": ["markdown", "text", "html", "docx", "pptx"],
395
+ "evidenceLevel": "editorial-consensus",
396
+ "name": { "en": "Floating Multiplier Claim Without Baseline", "zh": "无基线悬空倍数夸大" },
397
+ "mechanism": {
398
+ "en": "Claims like '10x faster' or '效率提升数倍' sound quantitative while hiding both the prior baseline and the workload size.",
399
+ "zh": "写出“10x faster”“效率提升数倍”制造量化错觉,却不交代原耗时、现耗时与测试样本规模。"
400
+ },
401
+ "tags": ["metrics", "baseline", "multiplier", "10x", "效率提升数倍", "合规"],
402
+ "falsePositiveGuards": ["Automatically exempts sentences that include a 'from X to Y' / '从 X 到 Y' baseline or >= 2 measured unit values."],
403
+ "modelTendencies": ["marketing-llm", "general-llm"],
404
+ "exemplar": {
405
+ "bad": "接入新版批处理引擎后,报表导出效率提升数倍。",
406
+ "trap": "接入新版批处理引擎后,报表导出迎来质的飞跃。",
407
+ "good": "接入新版批处理引擎后,50 万行月度对账单导出耗时从 14 分钟缩短至 95 秒。",
408
+ "source": "original"
409
+ }
410
+ }
411
+ ]
412
+ }
@@ -0,0 +1,172 @@
1
+ {
2
+ "schema": "dislop.pattern-library/1",
3
+ "dimension": "lexical",
4
+ "version": "1.0.0",
5
+ "patterns": [
6
+ {
7
+ "id": "pat-en-cliche-lexicon",
8
+ "ruleId": "en-cliche-lexicon",
9
+ "packId": "business-brief",
10
+ "category": "language-lexicon",
11
+ "detectionAngle": "regex-invariant",
12
+ "status": "active",
13
+ "severityDefault": "info",
14
+ "languages": ["en"],
15
+ "modalities": ["markdown", "text", "html", "docx", "pptx"],
16
+ "evidenceLevel": "empirical-corpus",
17
+ "name": { "en": "English Stock Promotional & Excess AI Clichés", "zh": "英文高频公关套词" },
18
+ "mechanism": {
19
+ "en": "RLHF preference tuning strongly amplifies a narrow set of dramatic promotional phrases (`delve into`, `rich tapestry of`, `game-changer`, `paradigm shift`, `unlock the full potential`).",
20
+ "zh": "RLHF 偏好对齐显著放大了一批高频夸饰短语(如 `delve into`、`rich tapestry of`、`game-changer`、`paradigm shift`)。"
21
+ },
22
+ "tags": ["lexicon", "buzzword", "cliche", "delve", "tapestry", "game-changer", "英文套词"],
23
+ "signals": [
24
+ "delve into",
25
+ "rich tapestry of",
26
+ "stands as a testament to",
27
+ "a testament to our",
28
+ "game-changer",
29
+ "paradigm shift",
30
+ "unlock the full potential"
31
+ ],
32
+ "falsePositiveGuards": [
33
+ "Multi-word collocations prevent false hits on literal nouns/tools like `wool tapestry` or the `Delve` Go debugger."
34
+ ],
35
+ "modelTendencies": ["gpt-family", "general-llm"],
36
+ "exemplar": {
37
+ "bad": "Batch indexing is a game-changer that unlocks the full potential of our 40-million-row log archive.",
38
+ "trap": "This isn't indexing. It's instant recall across 40 million rows.",
39
+ "good": "Batch indexing cuts 40-million-row log queries from 19 seconds to 1.4 seconds.",
40
+ "source": "original"
41
+ }
42
+ },
43
+ {
44
+ "id": "pat-zh-bureaucratic-padding",
45
+ "ruleId": "zh-bureaucratic-padding",
46
+ "packId": "business-brief",
47
+ "category": "language-lexicon",
48
+ "detectionAngle": "regex-invariant",
49
+ "status": "active",
50
+ "severityDefault": "warning",
51
+ "languages": ["zh"],
52
+ "modalities": ["markdown", "text", "html", "docx", "pptx"],
53
+ "evidenceLevel": "editorial-consensus",
54
+ "name": { "en": "Chinese Bureaucratic Buzzword Padding", "zh": "中文公文黑话与空泛套词" },
55
+ "mechanism": {
56
+ "en": "Chinese business-trained models default to abstract management jargon (`赋能`, `抓手`, `组合拳`, `闭环`, `底层逻辑`, `颗粒度`) that hides actors, actions, and measurable deltas.",
57
+ "zh": "中文职场语料微调使模型习惯用“赋能、抓手、组合拳、闭环、底层逻辑、颗粒度”等抽象名词替代具体动作与结果。"
58
+ },
59
+ "tags": ["bureaucratic", "jargon", "zh", "赋能", "抓手", "闭环", "底层逻辑", "颗粒度", "黑话"],
60
+ "signals": [
61
+ "赋能",
62
+ "抓手(?!机)",
63
+ "组合拳",
64
+ "打通最后一公里",
65
+ "形成/打造/构建...闭环",
66
+ "底层逻辑",
67
+ "顶层设计",
68
+ "颗粒度",
69
+ "齐头并进",
70
+ "多措并举",
71
+ "显著成效",
72
+ "值得注意的是"
73
+ ],
74
+ "falsePositiveGuards": [
75
+ "Negative lookahead excludes `抓手机`; hardware terms can be allow-listed via `.dislop.json`."
76
+ ],
77
+ "modelTendencies": ["zh-report", "qwen-family", "deepseek-family"],
78
+ "exemplar": {
79
+ "bad": "值得注意的是,本次改造以工单分级为重要抓手,全面赋能一线客服团队形成服务闭环,将首响时间压缩至 45 秒内。",
80
+ "trap": "这不是一次工单改造,而是客服体验的底气:首响压缩至 45 秒内。",
81
+ "good": "本次改造按问题紧急度拆分工单队列,一线客服首次响应时间压缩至 45 秒内。",
82
+ "source": "original"
83
+ }
84
+ },
85
+ {
86
+ "id": "pat-cooccurrence-slop-cluster",
87
+ "ruleId": "cooccurrence-slop-cluster",
88
+ "packId": "business-brief",
89
+ "category": "language-lexicon",
90
+ "detectionAngle": "lexicon-cluster",
91
+ "status": "active",
92
+ "severityDefault": "warning",
93
+ "languages": ["en", "zh"],
94
+ "modalities": ["markdown", "text", "html", "docx", "pptx"],
95
+ "evidenceLevel": "empirical-corpus",
96
+ "name": { "en": "Low-Evidence Corporate Fluff Co-occurrence Cluster", "zh": "低事实段落弱套词共现簇" },
97
+ "mechanism": {
98
+ "en": "Multiple mild corporate verbs and modifiers (`leverage`, `streamline`, `robust`, `有效推动`, `持续优化`, `显著提升`) stack in one low-evidence paragraph without concrete numbers or mechanisms.",
99
+ "zh": "单个温和修饰词无害,但在缺乏实测事实的同一段落里密集堆叠多个弱套词(如“有效推动/持续优化/显著提升”),形成典型 AI 报告空话。"
100
+ },
101
+ "tags": ["cooccurrence", "cluster", "fluff", "leverage", "streamline", "有效推动", "持续优化", "显著提升"],
102
+ "falsePositiveGuards": [
103
+ "High concrete-evidence density (numbers, timestamps, code spans) dampens false triggers; single isolated words never fire."
104
+ ],
105
+ "modelTendencies": ["gpt-family", "qwen-family", "general-llm"],
106
+ "exemplar": {
107
+ "bad": "本次客服系统升级旨在有效推动跨部门协同效率,持续优化客户交互体验,并进一步助力业务团队实现精细化运营,最终显著提升整体服务质量。",
108
+ "trap": "客服系统升级不是功能叠加,而是服务体验的全面跃升。",
109
+ "good": "本次客服系统按工单紧急度拆成 3 级队列,上线首周平均首响时间从 110 秒降到 42 秒。",
110
+ "source": "original"
111
+ }
112
+ },
113
+ {
114
+ "id": "pat-zh-ai-calque-cluster",
115
+ "ruleId": "zh-ai-calque-cluster",
116
+ "packId": "pattern-bank",
117
+ "category": "language-lexicon",
118
+ "detectionAngle": "lexicon-cluster",
119
+ "status": "active-bank",
120
+ "severityDefault": "info",
121
+ "languages": ["zh"],
122
+ "modalities": ["markdown", "text", "html", "docx"],
123
+ "evidenceLevel": "empirical-corpus",
124
+ "name": { "en": "Chinese AI Translation-Calque & Filler Cluster", "zh": "中文 AI 翻译腔与空洞连接词簇" },
125
+ "mechanism": {
126
+ "en": "Individual mild connectors (`换句话说`, `至关重要`, `在……的背景下`, `扮演着重要角色`) can appear in human prose, but LLMs stack 2+ of them inside a single short paragraph, creating unmistakable translated AI prose.",
127
+ "zh": "单个温和连接词或书面套语(如“至关重要”“在……的背景下”“扮演着重要角色”“不可否认的是”)偶发无害,但大模型常在同段内连用 2 处及以上,形成典型 AI 翻译腔。"
128
+ },
129
+ "tags": ["calque", "cluster", "translationese", "zh", "翻译腔", "词簇", "至关重要", "不可否认"],
130
+ "falsePositiveGuards": [
131
+ "Requires >= 2 distinct calque/filler signals inside the same paragraph (never triggers on a single isolated phrase).",
132
+ "Skips headings, lists, code blocks, and quoted material."
133
+ ],
134
+ "modelTendencies": ["general-llm", "zh-essay", "zh-report"],
135
+ "exemplar": {
136
+ "bad": "在数字化转型的背景下,不可否认的是,缓存优化在系统稳定性中扮演着至关重要的角色,不仅如此,它还为业务增长提供了有力支撑。",
137
+ "trap": "数字化转型来了。缓存很重要。稳定是底气。",
138
+ "good": "缓存命中率从 71% 提到 94% 后,高峰期数据库读负载降了一半。",
139
+ "source": "original"
140
+ }
141
+ },
142
+ {
143
+ "id": "pat-en-ai-phrase-cluster",
144
+ "ruleId": "en-ai-phrase-cluster",
145
+ "packId": "pattern-bank",
146
+ "category": "language-lexicon",
147
+ "detectionAngle": "lexicon-cluster",
148
+ "status": "active-bank",
149
+ "severityDefault": "info",
150
+ "languages": ["en"],
151
+ "modalities": ["markdown", "text", "html", "docx"],
152
+ "evidenceLevel": "empirical-corpus",
153
+ "name": { "en": "English Excess AI Vocabulary Cluster", "zh": "英文超额 AI 词汇簇" },
154
+ "mechanism": {
155
+ "en": "Based on empirical excess-word studies (Kobak et al. arXiv:2406.07016; Liang et al. arXiv:2404.01268), single words like `robust` or `comprehensive` occur normally in technical writing, whereas clustering 3+ distinct excess words/collocations inside one paragraph signals unedited LLM prose.",
156
+ "zh": "基于文献超额词统计(Kobak et al., 2024; Liang et al., 2024),单个 `robust` 或 `comprehensive` 在技术文档里常见,但单段内聚集 3 个及以上不同超额词/搭配即为高置信 AI 腔信号。"
157
+ },
158
+ "tags": ["excess-words", "cluster", "kobak", "en", "meticulous", "pivotal", "foster", "underscore", "英文词簇"],
159
+ "falsePositiveGuards": [
160
+ "Requires >= 3 distinct excess signals inside a single prose paragraph.",
161
+ "Single occurrences of `robust`, `comprehensive`, or `leverage` in engineering specs stay completely silent."
162
+ ],
163
+ "modelTendencies": ["gpt-family", "claude-family", "gemini-family"],
164
+ "exemplar": {
165
+ "bad": "This comprehensive platform seamlessly leverages a robust, holistic architecture to foster pivotal collaboration and underscore our meticulous design.",
166
+ "trap": "This platform isn't just robust — it's built for modern teams.",
167
+ "good": "The platform syncs edits across 12 regional clusters in under 150 ms using a single Postgres primary.",
168
+ "source": "original"
169
+ }
170
+ }
171
+ ]
172
+ }