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.
- package/.agents/plugins/marketplace.json +20 -0
- package/.claude-plugin/marketplace.json +33 -0
- package/.claude-plugin/plugin.json +23 -0
- package/.codex-plugin/plugin.json +49 -0
- package/.cursor-plugin/plugin.json +27 -0
- package/.mcp.json +8 -0
- package/.pre-commit-hooks.yaml +13 -0
- package/LICENSE +202 -0
- package/PRODUCT.md +49 -0
- package/README.md +245 -2
- package/README.zh-CN.md +242 -0
- package/action.yml +90 -0
- package/assets/logo.svg +8 -0
- package/bin/dislop-mcp.mjs +5 -0
- package/bin/dislop.mjs +1967 -0
- package/gemini-extension.json +10 -0
- package/mcp.json +9 -0
- package/models/manifest.json +90 -0
- package/models/pocket-slop-v1.json +1 -0
- package/package.json +92 -4
- package/packs/business-brief/pack.json +598 -0
- package/packs/core/pack.json +198 -0
- package/packs/deck-and-ui/pack.json +290 -0
- package/packs/engineering-spec/pack.json +144 -0
- package/packs/executive-deck/pack.json +98 -0
- package/packs/literary-essay/pack.json +324 -0
- package/packs/regulated-comms/pack.json +99 -0
- package/patterns/README.md +39 -0
- package/patterns/banks/composite-fusion.json +36 -0
- package/patterns/banks/discourse-rhythm.json +95 -0
- package/patterns/banks/lexical-signals.json +74 -0
- package/patterns/banks/syntactic-frames.json +45 -0
- package/patterns/banks/visual-deck.json +37 -0
- package/patterns/dimensions/artifacts.json +121 -0
- package/patterns/dimensions/discourse.json +412 -0
- package/patterns/dimensions/lexical.json +172 -0
- package/patterns/dimensions/rhythm.json +206 -0
- package/patterns/dimensions/syntactic.json +285 -0
- package/patterns/dimensions/visual-and-deck.json +322 -0
- package/patterns/taxonomy.json +112 -0
- package/plugin.json +41 -0
- package/server.json +18 -0
- package/skills/dislop/SKILL.md +58 -0
- package/skills/dislop/agents/openai.yaml +6 -0
- package/skills/dislop/references/business-and-rfc.md +26 -0
- package/skills/dislop/references/editorial-and-essay.md +20 -0
- package/skills/dislop/references/regulated-and-precision.md +27 -0
- package/skills/dislop/references/web-ui-and-deck.md +26 -0
- package/src/binary-node.mjs +85 -0
- package/src/core.mjs +2500 -0
- package/src/local-model.mjs +977 -0
- package/src/pattern-engine.mjs +853 -0
- package/src/pocket-model.mjs +707 -0
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "dislop.pack/2",
|
|
3
|
+
"id": "executive-deck",
|
|
4
|
+
"version": "0.6.0",
|
|
5
|
+
"tier": "taste",
|
|
6
|
+
"extends": ["deck-and-ui"],
|
|
7
|
+
"name": {
|
|
8
|
+
"en": "Executive Slide Deck & Board Readout",
|
|
9
|
+
"zh": "汇报 PPT 与管理层简报"
|
|
10
|
+
},
|
|
11
|
+
"summary": {
|
|
12
|
+
"en": "Enforces conclusion-first slide headlines and flags monotonous multi-slide bullet skeletons on top of core deck and UI hygiene.",
|
|
13
|
+
"zh": "在演示文稿与界面规范之上,检查非结论式“过程名词”幻灯片标题与连续同骨架纯文字页。"
|
|
14
|
+
},
|
|
15
|
+
"modalities": ["markdown", "pptx", "html"],
|
|
16
|
+
"thresholds": {
|
|
17
|
+
"maxSlideWords": 110,
|
|
18
|
+
"maxSlideCharsZh": 260,
|
|
19
|
+
"maxSlideBullets": 5,
|
|
20
|
+
"minAutofitScale": 80000,
|
|
21
|
+
"maxIdenticalSlideRun": 4
|
|
22
|
+
},
|
|
23
|
+
"rules": [
|
|
24
|
+
{
|
|
25
|
+
"id": "slide-process-not-finding-title",
|
|
26
|
+
"tier": "taste",
|
|
27
|
+
"severity": "warning",
|
|
28
|
+
"family": "deck/headline",
|
|
29
|
+
"probe": "regex",
|
|
30
|
+
"zones": ["prose"],
|
|
31
|
+
"modalities": ["markdown", "pptx"],
|
|
32
|
+
"patterns": [
|
|
33
|
+
"^#{1,3}\\s+(?:Analysis\\s+of|Overview\\s+of|Update\\s+on|Discussion\\s+of|Deep\\s+Dive\\s+into|Thoughts\\s+on)\\s+\\S[^\\n#]{1,64}\\s*#*\\s*$",
|
|
34
|
+
"^#{1,3}\\s*(?:关于[^#\\n]{2,36}的(?:分析(?:汇报|报告)?|汇报|思考|探讨|情况(?:说明|汇报)?)|[^#\\n]{2,24}(?:阶段性进展汇报|情况分析汇报))\\s*#*\\s*$"
|
|
35
|
+
],
|
|
36
|
+
"message": {
|
|
37
|
+
"en": "Topic-label headline names the work done ('Analysis of X') instead of stating the finding.",
|
|
38
|
+
"zh": "标题只写了“关于……的分析/汇报”这类过程标签,没有直接亮出本页结论。"
|
|
39
|
+
},
|
|
40
|
+
"deletionTest": {
|
|
41
|
+
"en": "Replace 'Analysis of X' with the one-sentence answer your audience should remember if they read only the headline.",
|
|
42
|
+
"zh": "如果听众只扫一眼标题,最该记住哪一个结论或变化数字?直接拿那句话当标题。"
|
|
43
|
+
},
|
|
44
|
+
"exemplar": {
|
|
45
|
+
"bad": "## 关于三季度新客首周流失率(34% 降至 19%)的分析汇报",
|
|
46
|
+
"trap": "## 重塑新客留存增长飞轮",
|
|
47
|
+
"good": "## 三季度新客首周流失率从 34% 降至 19%",
|
|
48
|
+
"note": {
|
|
49
|
+
"en": "Put the 34% -> 19% finding directly in the heading instead of wrapping it in 'Analysis of...'.",
|
|
50
|
+
"zh": "去掉“关于……的分析汇报”外壳,直接把“34% 降至 19%”当标题。"
|
|
51
|
+
},
|
|
52
|
+
"source": "original"
|
|
53
|
+
},
|
|
54
|
+
"fixtures": {
|
|
55
|
+
"hit": [
|
|
56
|
+
"## Analysis of Q3",
|
|
57
|
+
"## Analysis of İstanbul Returns",
|
|
58
|
+
"## 关于三季度华东区履约时效的分析汇报 ##"
|
|
59
|
+
],
|
|
60
|
+
"clean": [
|
|
61
|
+
"## Annual Plan Repricing Reduced Q3 Churn from 6.2% to 4.1%",
|
|
62
|
+
"## 华东仓拆单策略上线后次日达占比从 71% 升至 89%"
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"id": "pptx-layout-monotony",
|
|
68
|
+
"tier": "taste",
|
|
69
|
+
"severity": "info",
|
|
70
|
+
"family": "deck/cadence",
|
|
71
|
+
"probe": "pptx-layout-monotony",
|
|
72
|
+
"zones": ["raw"],
|
|
73
|
+
"modalities": ["pptx"],
|
|
74
|
+
"message": {
|
|
75
|
+
"en": "Four or more consecutive slides repeat the exact same plain text-box skeleton without tables, charts, or visual variation.",
|
|
76
|
+
"zh": "连续 4 页及以上幻灯片重复完全相同的纯文字要点骨架(无表格、图表或版式变化),容易引发审阅疲劳。"
|
|
77
|
+
},
|
|
78
|
+
"deletionTest": {
|
|
79
|
+
"en": "Convert comparative bullet slides into a structured table, timeline, or metric chart to break monotonous pacing.",
|
|
80
|
+
"zh": "把其中对比或趋势类的要点页改成双栏对照表、流程图或数据图表,打破连页同版式。"
|
|
81
|
+
},
|
|
82
|
+
"exemplar": {
|
|
83
|
+
"bad": "Slides 2–5 all use identical 'Title + 4 plain bullets' boxes with zero tables, charts, or diagrams.",
|
|
84
|
+
"trap": "Slides 2–5 keep the exact same 4 bullets per slide and add decorative stock icons.",
|
|
85
|
+
"good": "Slide 3 presents regional latency in a 4-row table and Slide 4 plots weekly error budget burn.",
|
|
86
|
+
"note": {
|
|
87
|
+
"en": "Match slide structure to the data type instead of pouring every page into the same bullet template.",
|
|
88
|
+
"zh": "按信息结构选用表格或趋势图,避免整份 PPT 套同一个纯文字框。"
|
|
89
|
+
},
|
|
90
|
+
"source": "original"
|
|
91
|
+
},
|
|
92
|
+
"fixtures": {
|
|
93
|
+
"hit": ["PPTX_MONOTONY:4"],
|
|
94
|
+
"clean": ["PPTX_MONOTONY:2"]
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
]
|
|
98
|
+
}
|
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "dislop.pack/2",
|
|
3
|
+
"id": "literary-essay",
|
|
4
|
+
"version": "0.2.0",
|
|
5
|
+
"tier": "taste",
|
|
6
|
+
"extends": ["core"],
|
|
7
|
+
"name": {
|
|
8
|
+
"en": "Literary Essay & Longform Narrative",
|
|
9
|
+
"zh": "散文随笔与深度非虚构"
|
|
10
|
+
},
|
|
11
|
+
"summary": {
|
|
12
|
+
"en": "Protects concrete observation and voice against moralizing paragraph endings, second-order negation pivots, em-dash saturation, and half-width Chinese punctuation.",
|
|
13
|
+
"zh": "克制段尾升华说教、二阶对比金句、破折号过密与中文半角标点混排,保留具体细节与自然语感。"
|
|
14
|
+
},
|
|
15
|
+
"modalities": ["markdown", "text", "html", "docx"],
|
|
16
|
+
"thresholds": {
|
|
17
|
+
"maxEmDashesPer300Words": 4
|
|
18
|
+
},
|
|
19
|
+
"rules": [
|
|
20
|
+
{
|
|
21
|
+
"id": "zh-essay-moralizing-ending",
|
|
22
|
+
"tier": "taste",
|
|
23
|
+
"severity": "warning",
|
|
24
|
+
"family": "frame/ending",
|
|
25
|
+
"probe": "regex",
|
|
26
|
+
"zones": ["prose"],
|
|
27
|
+
"modalities": ["markdown", "text", "html", "docx"],
|
|
28
|
+
"patterns": [
|
|
29
|
+
"(?:总而言之|综上所述|归根结底|说到底)[,,][^。!?\\n]{2,40}",
|
|
30
|
+
"这(?:正|就|或许(?:就)?)是[^,。!?\\n]{1,18}的(?:意义|真谛|答案)所在",
|
|
31
|
+
"唯有[^,。!?\\n]{1,16}[,,]\\s*(?:我们)?(?:方能|才能)[^。!?\\n]{1,24}",
|
|
32
|
+
"愿我们(?:都能|在)[^。!?\\n]{2,36}"
|
|
33
|
+
],
|
|
34
|
+
"message": {
|
|
35
|
+
"en": "Moralizing summary formula flattens concrete scene observation at the end of a passage.",
|
|
36
|
+
"zh": "段尾出现说教升华套句,冲淡了前文的具体细节。"
|
|
37
|
+
},
|
|
38
|
+
"deletionTest": {
|
|
39
|
+
"en": "Cut the final moralizing sentence completely and stop on the concrete physical detail right before it.",
|
|
40
|
+
"zh": "直接删去最后一句升华总结,在它前面的具体动作或画面处收尾。"
|
|
41
|
+
},
|
|
42
|
+
"exemplar": {
|
|
43
|
+
"bad": "傍晚六点半,修表匠把拆下的三枚铜齿轮泡进煤油皿里,关掉台灯。这或许就是慢工出细活在喧嚣时代真正的意义所在。",
|
|
44
|
+
"trap": "傍晚六点半,三枚铜齿轮泡进煤油皿。这不是修表,而是与时间的对话。",
|
|
45
|
+
"good": "傍晚六点半,修表匠把拆下的三枚铜齿轮泡进煤油皿里,关掉台灯。",
|
|
46
|
+
"note": {
|
|
47
|
+
"en": "Delete the closing moral; keep '傍晚六点半', '三枚铜齿轮', and '煤油皿' without adding invented details.",
|
|
48
|
+
"zh": "删去尾句升华,原样保留“六点半”“三枚铜齿轮”“煤油皿”,不添油加醋。"
|
|
49
|
+
},
|
|
50
|
+
"source": "original"
|
|
51
|
+
},
|
|
52
|
+
"fixtures": {
|
|
53
|
+
"hit": [
|
|
54
|
+
"雨停之后巷口只剩积水,这正是平凡生活的意义所在。",
|
|
55
|
+
"这或许就是慢工出细活在喧嚣时代真正的意义所在。",
|
|
56
|
+
"唯有守住内心的平静,我们才能在快节奏里找到方向。"
|
|
57
|
+
],
|
|
58
|
+
"clean": [
|
|
59
|
+
"雨停之后,巷口杂货铺老板拿竹帚把台阶上的积水扫进明沟。",
|
|
60
|
+
"他在旧账本最后一页记下三笔欠款,合上封皮。"
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"id": "en-essay-moralizing-ending",
|
|
66
|
+
"tier": "taste",
|
|
67
|
+
"severity": "warning",
|
|
68
|
+
"family": "frame/ending",
|
|
69
|
+
"probe": "regex",
|
|
70
|
+
"zones": ["prose"],
|
|
71
|
+
"modalities": ["markdown", "text", "html", "docx"],
|
|
72
|
+
"patterns": [
|
|
73
|
+
"(?:^|[.!?]\\s+)(?:Ultimately,\\s+this\\s+reminds\\s+us\\s+that\\b|In\\s+the\\s+end,\\s+perhaps\\s+true\\b|And\\s+maybe,\\s+just\\s+maybe,|Perhaps\\s+that\\s+is\\s+what\\s+it\\s+truly\\s+means\\s+to\\b)"
|
|
74
|
+
],
|
|
75
|
+
"message": {
|
|
76
|
+
"en": "Formulaic wistful conclusion tells the reader what to feel instead of ending on the scene.",
|
|
77
|
+
"zh": "英文感伤升华结语直接替读者总结情绪,削弱了叙事余味。"
|
|
78
|
+
},
|
|
79
|
+
"deletionTest": {
|
|
80
|
+
"en": "Delete the concluding reflection; let the preceding image or quote carry the ending.",
|
|
81
|
+
"zh": "删掉结尾抒情总结句,让前一句的具体意象或对话自然收束。"
|
|
82
|
+
},
|
|
83
|
+
"exemplar": {
|
|
84
|
+
"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.",
|
|
85
|
+
"trap": "Wet rope. Cold diesel. Quiet departures at 6:15 a.m.",
|
|
86
|
+
"good": "At 6:15 a.m., the ferry deck smelled of wet rope and diesel.",
|
|
87
|
+
"note": {
|
|
88
|
+
"en": "Cut the aphorism and keep '6:15 a.m.', 'wet rope', and 'diesel'.",
|
|
89
|
+
"zh": "删掉格言式尾巴,保留清晨 6:15 与绳索柴油气味。"
|
|
90
|
+
},
|
|
91
|
+
"source": "original"
|
|
92
|
+
},
|
|
93
|
+
"fixtures": {
|
|
94
|
+
"hit": [
|
|
95
|
+
"Ultimately, this reminds us that memory is fragile.",
|
|
96
|
+
"And maybe, just maybe, that was enough for both of them."
|
|
97
|
+
],
|
|
98
|
+
"clean": [
|
|
99
|
+
"She folded the receipt into her coat pocket and stepped onto the tram.",
|
|
100
|
+
"By November, the courtyard persimmon tree had dropped all but four fruits."
|
|
101
|
+
]
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"id": "literary-negation-pivot",
|
|
106
|
+
"tier": "taste",
|
|
107
|
+
"severity": "warning",
|
|
108
|
+
"family": "frame/negation-pivot",
|
|
109
|
+
"probe": "negation-pivot",
|
|
110
|
+
"zones": ["prose"],
|
|
111
|
+
"modalities": ["markdown", "text", "html", "docx"],
|
|
112
|
+
"message": {
|
|
113
|
+
"en": "Formulaic 'Not X, but Y' / '不是 A,而是 B' aphorism interrupts narrative texture.",
|
|
114
|
+
"zh": "套路化“不是 A,而是 B”金句打断叙事质感。"
|
|
115
|
+
},
|
|
116
|
+
"deletionTest": {
|
|
117
|
+
"en": "Replace the abstract contrast with what the person actually did, said, or noticed.",
|
|
118
|
+
"zh": "删掉抽象对比金句,改写人物实际做出的动作或看到的细节。"
|
|
119
|
+
},
|
|
120
|
+
"exemplar": {
|
|
121
|
+
"bad": "老周留下的那把旧刨子不是工具,而是手艺人的尊严。",
|
|
122
|
+
"trap": "一把旧刨子。半生木工活。满手老茧。",
|
|
123
|
+
"good": "老周退休那天把用了二十年的旧刨子擦净木屑,收进樟木箱底。",
|
|
124
|
+
"note": {
|
|
125
|
+
"en": "Show how the plane was cared for instead of declaring it a symbol.",
|
|
126
|
+
"zh": "写出擦拭收纳旧刨子的动作,不贴“尊严”标签。"
|
|
127
|
+
},
|
|
128
|
+
"source": "original"
|
|
129
|
+
},
|
|
130
|
+
"fixtures": {
|
|
131
|
+
"hit": [
|
|
132
|
+
"那盏台灯不是照明器具,而是深夜里的陪伴。",
|
|
133
|
+
"It wasn't just rain — it was a reckoning.",
|
|
134
|
+
"His grandfather's hand plane wasn't just a tool — it was a quiet testament to patience."
|
|
135
|
+
],
|
|
136
|
+
"clean": [
|
|
137
|
+
"那班绿皮车停靠的不是三号站台,而是最北边的五号货运站台。",
|
|
138
|
+
"He ordered tea, not coffee, and waited by the window."
|
|
139
|
+
]
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"id": "excessive-em-dash-density",
|
|
144
|
+
"tier": "taste",
|
|
145
|
+
"severity": "info",
|
|
146
|
+
"family": "punctuation/em-dash",
|
|
147
|
+
"probe": "em-dash-density",
|
|
148
|
+
"zones": ["prose"],
|
|
149
|
+
"modalities": ["markdown", "text", "html", "docx"],
|
|
150
|
+
"message": {
|
|
151
|
+
"en": "High em-dash (`—` / `——`) frequency creates breathless LLM parenthetical rhythm.",
|
|
152
|
+
"zh": "破折号(`—` / `——`)密度过高,形成典型生成式插话腔。"
|
|
153
|
+
},
|
|
154
|
+
"deletionTest": {
|
|
155
|
+
"en": "Convert most parenthetical dashes into commas or periods; save a single dash for a genuine turn.",
|
|
156
|
+
"zh": "将多数插话破折号改为逗号或句号,只在真正语意陡转处保留一处破折号。"
|
|
157
|
+
},
|
|
158
|
+
"exemplar": {
|
|
159
|
+
"bad": "The station clock — brass-rimmed — stopped at 4:10 — right before the snow — while three passengers — coats buttoned — waited outside.",
|
|
160
|
+
"trap": "Brass clock. 4:10 sharp. Snow falling. Three passengers waiting.",
|
|
161
|
+
"good": "The brass-rimmed station clock stopped at 4:10, right before the snow, while three passengers waited outside in buttoned coats.",
|
|
162
|
+
"note": {
|
|
163
|
+
"en": "Chinese double half-em `——` counts as one dash; only sustained saturation (> 4 per 300 words) triggers.",
|
|
164
|
+
"zh": "中文规范破折号 `——` 按单次计数,仅在单段高密度堆叠时提示。"
|
|
165
|
+
},
|
|
166
|
+
"source": "original"
|
|
167
|
+
},
|
|
168
|
+
"fixtures": {
|
|
169
|
+
"hit": [
|
|
170
|
+
"One — two — three — four — five — six dashes in twelve words."
|
|
171
|
+
],
|
|
172
|
+
"clean": [
|
|
173
|
+
"他推开木门——屋里炉火还没灭,壶水正冒着白气。",
|
|
174
|
+
"The train arrived eight minutes late — unusual for Tuesday mornings."
|
|
175
|
+
]
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"id": "zh-halfwidth-punctuation",
|
|
180
|
+
"tier": "taste",
|
|
181
|
+
"severity": "warning",
|
|
182
|
+
"family": "punctuation/zh-halfwidth",
|
|
183
|
+
"probe": "zh-halfwidth-punctuation",
|
|
184
|
+
"zones": ["prose"],
|
|
185
|
+
"modalities": ["markdown", "text", "html", "docx"],
|
|
186
|
+
"message": {
|
|
187
|
+
"en": "Half-width ASCII punctuation (`,;:!?`) wedged directly between Chinese characters.",
|
|
188
|
+
"zh": "汉字之间混入半角西文标点(`,;:!?`),违反中文排版规范(W3C CLREQ)。"
|
|
189
|
+
},
|
|
190
|
+
"deletionTest": {
|
|
191
|
+
"en": "Replace half-width ASCII punctuation between Han characters with full-width Chinese punctuation (`,;:!?`).",
|
|
192
|
+
"zh": "将汉字之间的半角标点替换为全角中文标点(`,;:!?`)。"
|
|
193
|
+
},
|
|
194
|
+
"exemplar": {
|
|
195
|
+
"bad": "冬至那天下了初雪,院子里的腊梅开了三朵;香气一直飘到走廊。",
|
|
196
|
+
"trap": "冬至初雪。腊梅三朵。暗香盈袖。",
|
|
197
|
+
"good": "冬至那天下了初雪,院子里的腊梅开了三朵;香气一直飘到走廊。",
|
|
198
|
+
"note": {
|
|
199
|
+
"en": "Normalize punctuation width without altering wording or numbers.",
|
|
200
|
+
"zh": "仅修正标点全半角,不改动原文措辞与数量。"
|
|
201
|
+
},
|
|
202
|
+
"source": "original"
|
|
203
|
+
},
|
|
204
|
+
"fixtures": {
|
|
205
|
+
"hit": [
|
|
206
|
+
"今天天气晴朗,适合出门散步!",
|
|
207
|
+
"第一阶段已完成;第二阶段周四启动。"
|
|
208
|
+
],
|
|
209
|
+
"clean": [
|
|
210
|
+
"今天天气晴朗,适合出门散步!",
|
|
211
|
+
"请求头包含 `Accept: application/json, text/plain` 字段。"
|
|
212
|
+
]
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"id": "literary-semicolon-tricolon",
|
|
217
|
+
"tier": "taste",
|
|
218
|
+
"severity": "warning",
|
|
219
|
+
"family": "punctuation/tricolon",
|
|
220
|
+
"probe": "semicolon-tricolon",
|
|
221
|
+
"zones": ["prose"],
|
|
222
|
+
"modalities": ["markdown", "text", "html", "docx"],
|
|
223
|
+
"message": {
|
|
224
|
+
"en": "Balanced three-part semicolon sentence turns scene description into synthetic lyrical cadence.",
|
|
225
|
+
"zh": "单句连续用两个及以上分号排比景物或情绪,带有明显的生成式散文腔。"
|
|
226
|
+
},
|
|
227
|
+
"deletionTest": {
|
|
228
|
+
"en": "Break the three-part balance into natural prose sentences and keep the one sensory detail that carries the scene.",
|
|
229
|
+
"zh": "打破工整的三段分号排比,改成长短自然的叙述句,留住最具体的一两处感官细节。"
|
|
230
|
+
},
|
|
231
|
+
"exemplar": {
|
|
232
|
+
"bad": "街道两旁的树叶逐渐染上金黄;午后的阳光变得柔和而绵长;行人的衣领也悄然立了起来。",
|
|
233
|
+
"trap": "树叶金黄。阳光柔和。衣领立起。",
|
|
234
|
+
"good": "午后阳光柔和,街道两旁的树叶已经发黄,路过的行人把衣领立了起来。",
|
|
235
|
+
"note": {
|
|
236
|
+
"en": "Two-clause sentences with a single semicolon stay clean.",
|
|
237
|
+
"zh": "只含一个分号的自然长句不会触发。"
|
|
238
|
+
},
|
|
239
|
+
"source": "original"
|
|
240
|
+
},
|
|
241
|
+
"fixtures": {
|
|
242
|
+
"hit": [
|
|
243
|
+
"Water meets freshly ground beans; steam curls toward the ceiling; the first sip steadies a scattered mind.",
|
|
244
|
+
"清晨汽笛准时响起;铁跳板压在坡道上作响;早点摊冒出细密白烟。"
|
|
245
|
+
],
|
|
246
|
+
"clean": [
|
|
247
|
+
"冬至那天下了初雪,院子里的腊梅开了三朵;傍晚六点半,修表匠把铜齿轮泡进煤油皿里。"
|
|
248
|
+
]
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"id": "literary-rhetorical-qa",
|
|
253
|
+
"tier": "taste",
|
|
254
|
+
"severity": "warning",
|
|
255
|
+
"family": "punctuation/rhetorical-qa",
|
|
256
|
+
"probe": "rhetorical-qa-cadence",
|
|
257
|
+
"zones": ["prose"],
|
|
258
|
+
"modalities": ["markdown", "text", "html", "docx"],
|
|
259
|
+
"message": {
|
|
260
|
+
"en": "Staged self-answered rhetorical question ('Why does ...? Because ...') lectures the reader instead of showing the scene.",
|
|
261
|
+
"zh": "散文里出现自问自答式设问(“为什么……?因为……”),像主持词而非真实叙述。"
|
|
262
|
+
},
|
|
263
|
+
"deletionTest": {
|
|
264
|
+
"en": "Cut the rhetorical question and describe what actually happened in the scene.",
|
|
265
|
+
"zh": "删掉自问自答的铺陈,直接写现场发生了什么。"
|
|
266
|
+
},
|
|
267
|
+
"exemplar": {
|
|
268
|
+
"bad": "At 6:30 a.m. he brewed a cup of pour-over coffee. Why does brewing pour-over coffee feel so grounding? Because the deliberate pace invites us to pause.",
|
|
269
|
+
"trap": "Warm water. Slow pour. Quiet pause.",
|
|
270
|
+
"good": "At 6:30 a.m. he brewed a cup of pour-over coffee.",
|
|
271
|
+
"note": {
|
|
272
|
+
"en": "Keep the concrete scene from the source and cut the staged rhetorical question.",
|
|
273
|
+
"zh": "保留原句的具体动作,删掉自问自答的抒情解释。"
|
|
274
|
+
},
|
|
275
|
+
"source": "original"
|
|
276
|
+
},
|
|
277
|
+
"fixtures": {
|
|
278
|
+
"hit": [
|
|
279
|
+
"为什么秋天总能唤起内心深处的共鸣?因为微凉的风让人放慢脚步。",
|
|
280
|
+
"Why does a loaf baked at dawn taste different? Because slow fermentation rewards patience."
|
|
281
|
+
],
|
|
282
|
+
"clean": [
|
|
283
|
+
"老板娘擦着桌子问我,上次摔坏的自行车修好了没。"
|
|
284
|
+
]
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"id": "literary-narrative-frame",
|
|
289
|
+
"tier": "taste",
|
|
290
|
+
"severity": "warning",
|
|
291
|
+
"family": "structure/narrative-frame",
|
|
292
|
+
"probe": "narrative-sandwich-frame",
|
|
293
|
+
"zones": ["prose"],
|
|
294
|
+
"modalities": ["markdown", "text", "html", "docx"],
|
|
295
|
+
"message": {
|
|
296
|
+
"en": "Sweeping era opener ('In an era defined by...') or uplifting takeaway closer wraps a personal essay in an LLM template.",
|
|
297
|
+
"zh": "以宏大时代背景起笔(“在快节奏的都市生活中……”)或未来式鸡汤收尾,给随笔套上了模板外壳。"
|
|
298
|
+
},
|
|
299
|
+
"deletionTest": {
|
|
300
|
+
"en": "Delete the opening era backdrop and the closing takeaway; start directly inside the concrete time, place, or object.",
|
|
301
|
+
"zh": "删掉开头“在当今/快节奏的时代”与结尾升华句,直接从具体时间、地点或器物写起。"
|
|
302
|
+
},
|
|
303
|
+
"exemplar": {
|
|
304
|
+
"bad": "In an era defined by relentless notifications, the street stays quiet before seven except for the milk truck. Moving forward, protecting small pockets of stillness remains essential for living with intention.",
|
|
305
|
+
"trap": "Notifications beep. Milk truck passes. Stillness stays.",
|
|
306
|
+
"good": "Before seven the street stays quiet except for the milk truck.",
|
|
307
|
+
"note": {
|
|
308
|
+
"en": "Cut the sweeping era opener and closing moral while keeping the source scene verbatim.",
|
|
309
|
+
"zh": "删掉时代大帽子与结尾说教,原样保留清晨七点前的实景。"
|
|
310
|
+
},
|
|
311
|
+
"source": "original"
|
|
312
|
+
},
|
|
313
|
+
"fixtures": {
|
|
314
|
+
"hit": [
|
|
315
|
+
"在当今信息爆炸的时代,远程办公已经成为不可逆转的趋势。未来,更加人性化的形态必将迎来广阔空间。",
|
|
316
|
+
"In an era defined by constant digital distraction, quiet bookstores matter. Moving forward, they will continue to play a vital role."
|
|
317
|
+
],
|
|
318
|
+
"clean": [
|
|
319
|
+
"十月底搬家前,我把阳台上攒了四年的旧杂志捆成六摞,叫楼下收废品的赵师傅上来搬。"
|
|
320
|
+
]
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
]
|
|
324
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "dislop.pack/2",
|
|
3
|
+
"id": "regulated-comms",
|
|
4
|
+
"version": "0.6.0",
|
|
5
|
+
"tier": "taste",
|
|
6
|
+
"extends": ["business-brief"],
|
|
7
|
+
"name": {
|
|
8
|
+
"en": "External & Regulated Communications",
|
|
9
|
+
"zh": "对外发布与严谨合规"
|
|
10
|
+
},
|
|
11
|
+
"summary": {
|
|
12
|
+
"en": "Flags unsubstantiated absolute claims ('100% secure', 'zero risk') and floating hype multipliers ('10x faster' with no baseline) in external docs.",
|
|
13
|
+
"zh": "面向对外公告、客户方案与合规审校,拦截绝对化极限承诺(“零风险”“绝对安全”“行业第一”)及无基线倍增夸大(“效率提升数倍”)。"
|
|
14
|
+
},
|
|
15
|
+
"modalities": ["markdown", "text", "html", "docx", "pptx"],
|
|
16
|
+
"thresholds": {
|
|
17
|
+
"boldLeadListRun": 4
|
|
18
|
+
},
|
|
19
|
+
"rules": [
|
|
20
|
+
{
|
|
21
|
+
"id": "reg-unsubstantiated-superlative",
|
|
22
|
+
"tier": "taste",
|
|
23
|
+
"severity": "warning",
|
|
24
|
+
"family": "evidence/compliance",
|
|
25
|
+
"probe": "regex",
|
|
26
|
+
"zones": ["prose"],
|
|
27
|
+
"modalities": ["markdown", "text", "html", "docx", "pptx"],
|
|
28
|
+
"patterns": [
|
|
29
|
+
"\\b(?:100%\\s+(?:secure|safe|guaranteed|accurate|bug-free|risk-free)|zero[- ]risk\\s+(?:guarantee|deployment|migration|return)|guaranteed\\s+ROI|world's\\s+(?:#1|most\\s+advanced))\\b",
|
|
30
|
+
"(?:绝对(?:安全|可靠|零风险)|百分之百(?:安全|无误|零故障)|零风险(?:承诺|保障|收益)|国家级最高|全网第一|行业最顶尖|永久零故障)"
|
|
31
|
+
],
|
|
32
|
+
"message": {
|
|
33
|
+
"en": "Absolute or superlative claim creates legal/compliance exposure where scoped SLA terms belong.",
|
|
34
|
+
"zh": "出现绝对化承诺或极限排他用语(如“绝对安全”“零风险保障”“全网第一”),存在合规与履约风险。"
|
|
35
|
+
},
|
|
36
|
+
"deletionTest": {
|
|
37
|
+
"en": "Replace absolute promises with verifiable scope, encryption/audit standards, or contracted SLA numbers.",
|
|
38
|
+
"zh": "删掉绝对化极限词,改写为具体的加密协议、审计认证编号或合同约定的 SLA 指标。"
|
|
39
|
+
},
|
|
40
|
+
"exemplar": {
|
|
41
|
+
"bad": "新同城双活备份方案提供绝对安全与永久零故障保障(SLA 99.95%),客户迁移零风险承诺。",
|
|
42
|
+
"trap": "新同城双活备份方案打造坚不可摧的行业标杆级防线(SLA 99.95%)。",
|
|
43
|
+
"good": "新同城双活备份方案合同承诺月度可用性 99.95%,迁移前支持演练回滚。",
|
|
44
|
+
"note": {
|
|
45
|
+
"en": "State the actual architecture and contracted 99.95% SLA instead of '100% safe' promises.",
|
|
46
|
+
"zh": "保留同城双活与合同约定的 99.95% 可用性,删掉绝对化极限词。"
|
|
47
|
+
},
|
|
48
|
+
"source": "original"
|
|
49
|
+
},
|
|
50
|
+
"fixtures": {
|
|
51
|
+
"hit": [
|
|
52
|
+
"Our vault architecture is 100% secure with a zero-risk migration.",
|
|
53
|
+
"该托管集群提供绝对安全与永久零故障体验。"
|
|
54
|
+
],
|
|
55
|
+
"clean": [
|
|
56
|
+
"Backups use AES-256 encryption at rest and carry a 99.95% monthly uptime SLA.",
|
|
57
|
+
"集群采用跨可用区双活部署,近 12 个月实际可用率为 99.98%。"
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"id": "reg-unanchored-multiplier",
|
|
63
|
+
"tier": "taste",
|
|
64
|
+
"severity": "warning",
|
|
65
|
+
"family": "evidence/baseline",
|
|
66
|
+
"probe": "unanchored-multiplier",
|
|
67
|
+
"zones": ["prose"],
|
|
68
|
+
"modalities": ["markdown", "text", "html", "docx", "pptx"],
|
|
69
|
+
"message": {
|
|
70
|
+
"en": "Floating speedup or efficiency multiplier ('10x faster') omits the before/after baseline.",
|
|
71
|
+
"zh": "出现悬空的倍数宣称(如“10x faster”“效率提升数倍”),句内未给出改动前后的具体基线数值。"
|
|
72
|
+
},
|
|
73
|
+
"deletionTest": {
|
|
74
|
+
"en": "Either add the exact baseline ('from 18s to 1.8s on 10M rows') or remove the multiplier.",
|
|
75
|
+
"zh": "补齐改动前后的实测对比基线(如“从 18 秒降到 1.8 秒”),无实测基线时直接删去倍数词。"
|
|
76
|
+
},
|
|
77
|
+
"exemplar": {
|
|
78
|
+
"bad": "接入新版流式批处理引擎后,对账单导出效率提升数倍。",
|
|
79
|
+
"trap": "接入新版流式批处理引擎后,对账单导出迎来质的飞跃。",
|
|
80
|
+
"good": "接入新版流式批处理引擎后,对账单改为按块流式导出,无需等待全表缓存在内存。",
|
|
81
|
+
"note": {
|
|
82
|
+
"en": "When no before/after timing baseline is in the source, state the concrete mechanism and drop the unanchored multiplier.",
|
|
83
|
+
"zh": "原稿无实测前后耗时基线时,直接删去悬空的“提升数倍”,只保留具体机制改动。"
|
|
84
|
+
},
|
|
85
|
+
"source": "original"
|
|
86
|
+
},
|
|
87
|
+
"fixtures": {
|
|
88
|
+
"hit": [
|
|
89
|
+
"Our automated triage workflow makes incident response 10x faster.",
|
|
90
|
+
"上线智能分单策略后,工单流转效率提升数倍。"
|
|
91
|
+
],
|
|
92
|
+
"clean": [
|
|
93
|
+
"Batch indexing runs 10x faster, cutting 40M-row queries from 19s to 1.9s.",
|
|
94
|
+
"并行压缩把全量备份耗时从 48 分钟压到 12 分钟,速度提升 4 倍。"
|
|
95
|
+
]
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
]
|
|
99
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# AI-Slop Pattern Library (`patterns/`)
|
|
2
|
+
|
|
3
|
+
`patterns/` stores `dislop`'s versioned catalog of observable AI-writing, cadence, discourse, Web UI, and slide deck patterns as plain JSON assets.
|
|
4
|
+
|
|
5
|
+
## Directory Layout
|
|
6
|
+
|
|
7
|
+
- `patterns/taxonomy.json`: canonical 6 dimensions (`artifacts`, `lexical`, `syntactic`, `rhythm`, `discourse`, `visual-and-deck`), 7 detection angles, and 3 evidence levels.
|
|
8
|
+
- `patterns/dimensions/*.json`: 53 cataloged patterns linking all 42 active rules in `packs/*/pack.json` plus 11 extended pattern-bank rules in `patterns/banks/*.json`. Every entry records its mechanism, tags, false-positive guards, model tendencies, and a `bad -> trap -> good` example.
|
|
9
|
+
- `patterns/banks/*.json`: declarative signal lists and calibrated thresholds executed directly by `src/pattern-engine.mjs` (Node/Browser) and `src/dislop/pattern_engine.py` (Python) with 100% parity:
|
|
10
|
+
- `discourse-rhythm.json`: repetitive sentence openers, inline bold saturation, paragraph-length uniformity, and mechanical discourse signposts.
|
|
11
|
+
- `lexical-signals.json`: weighted translation-calque clusters and empirically over-represented phrase clusters.
|
|
12
|
+
- `syntactic-frames.json`: balanced concession frames and pull-quote closers (with quotation guard).
|
|
13
|
+
- `visual-deck.json`: Web UI glassmorphism overuse and thick left accent-stripe card stacks (`>= 4px`).
|
|
14
|
+
- `composite-fusion.json`: cross-dimension stealth-slop co-occurrence rules damped by concrete fact density (numbers with units, timestamps, code spans, filenames).
|
|
15
|
+
|
|
16
|
+
## Common Commands
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
# Search the catalog across packs/ and patterns/
|
|
20
|
+
node bin/dislop.mjs catalog --dimension rhythm --lang en
|
|
21
|
+
PYTHONPATH=src python3 -m dislop.cli catalog --query "slogan" --json
|
|
22
|
+
|
|
23
|
+
# Run the multi-angle Pattern Library scanner on a file or stdin
|
|
24
|
+
node bin/dislop.mjs patterns README.md --lang en
|
|
25
|
+
node bin/dislop.mjs check README.md --patterns --lang en
|
|
26
|
+
printf "Furthermore, this initiative plays a pivotal role in delivering transformative value across teams." | node bin/dislop.mjs patterns - --stdin-filename draft.md --json
|
|
27
|
+
|
|
28
|
+
# Validate asset schemas, run multi-angle ablation, and enforce benchmark gates
|
|
29
|
+
node scripts/pattern_lab.mjs verify
|
|
30
|
+
node scripts/pattern_lab.mjs ablation
|
|
31
|
+
node scripts/pattern_lab.mjs assert
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Adding a New Pattern
|
|
35
|
+
|
|
36
|
+
1. Add the pattern entry to the matching file under `patterns/dimensions/` with bilingual `name`, `mechanism`, `tags`, `falsePositiveGuards`, and an original `exemplar`.
|
|
37
|
+
2. Add any new lexical signals, regex frames, or thresholds to `patterns/banks/*.json` so both JS and Python engines pick them up automatically.
|
|
38
|
+
3. Add at least one positive sample and one adversarial clean near-miss sample to `benchmarks/datasets/pattern-challenge-v2.json` or `benchmarks/datasets/holdout-v2.json`.
|
|
39
|
+
4. Run `node scripts/pattern_lab.mjs verify`, `node scripts/pattern_lab.mjs assert`, and `PYTHONPATH=src python3 -m unittest tests/test_pattern_library.py`.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "dislop.pattern-bank/1",
|
|
3
|
+
"id": "composite-fusion",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"description": {
|
|
6
|
+
"en": "Multi-dimension weak-signal co-occurrence fusion rules to detect stealth AI prose that evades single-dimension thresholds while staying low in concrete facts.",
|
|
7
|
+
"zh": "跨维度弱信号复合共现规则:用于在无单条硬规则触发时,检出低具体度、多维度叠加的隐蔽 AI 味段落。"
|
|
8
|
+
},
|
|
9
|
+
"ruleId": "composite-multi-signal",
|
|
10
|
+
"dimension": "discourse",
|
|
11
|
+
"detectionAngle": "composite-cooccurrence",
|
|
12
|
+
"severity": "info",
|
|
13
|
+
"minDistinctDimensions": 3,
|
|
14
|
+
"maxFactSignals": 1,
|
|
15
|
+
"weakFramingPatterns": [
|
|
16
|
+
"\\bplays? a (?:key|vital|critical|central|important|crucial) role\\b",
|
|
17
|
+
"\\bdelivers? (?:real|meaningful|lasting|tangible|significant) value\\b",
|
|
18
|
+
"\\bmodern workflows?\\b",
|
|
19
|
+
"\\bmoving forward\\b",
|
|
20
|
+
"\\bremains? (?:essential|critical|vital|key)\\b",
|
|
21
|
+
"\\bunlock(?:s|ing)? new\\b",
|
|
22
|
+
"具有重要意义",
|
|
23
|
+
"带来[^,。!?\\n]{0,6}(?:价值|体验|变革|提升)",
|
|
24
|
+
"助力[^,。!?\\n]{0,8}(?:发展|增长|升级|转型)",
|
|
25
|
+
"实现[^,。!?\\n]{0,6}(?:跨越|跃升|升级|突破)",
|
|
26
|
+
"值得(?:关注|深思|期待)",
|
|
27
|
+
"成为[^,。!?\\n]{0,8}(?:关键|核心|趋势)"
|
|
28
|
+
],
|
|
29
|
+
"concreteFactPatterns": [
|
|
30
|
+
"\\b\\d+(?:\\.\\d+)?\\s*(?:ms|s|sec|seconds?|min|minutes?|hours?|days?|weeks?|KB|MB|GB|TB|QPS|TPS|%|px|pt|Hz|UTC)\\b",
|
|
31
|
+
"\\d+(?:\\.\\d+)?\\s*(?:毫秒|秒|分钟|小时|天|周|个月|年|次|条|台|个|家|倍|万|亿|%)",
|
|
32
|
+
"`[^`\\n]{2,40}`",
|
|
33
|
+
"\\b[A-Za-z0-9_-]+\\.(?:mjs|js|ts|py|json|yaml|yml|md|html|css|sql|sh)\\b",
|
|
34
|
+
"\\b(?:19|20)\\d{2}-\\d{2}-\\d{2}\\b|\\b\\d{1,2}:\\d{2}\\b"
|
|
35
|
+
]
|
|
36
|
+
}
|