dislop 0.9.1 → 1.1.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 (129) hide show
  1. package/.claude-plugin/marketplace.json +3 -3
  2. package/.claude-plugin/plugin.json +2 -2
  3. package/.codex-plugin/plugin.json +7 -8
  4. package/.cursor-plugin/plugin.json +2 -3
  5. package/.pre-commit-hooks.yaml +5 -12
  6. package/PRODUCT.md +19 -63
  7. package/README.md +358 -249
  8. package/README.zh-CN.md +391 -237
  9. package/action.yml +30 -39
  10. package/bin/dislop-mcp.mjs +3 -4
  11. package/bin/dislop.mjs +4 -4594
  12. package/gemini-extension.json +2 -2
  13. package/llms-install.md +68 -0
  14. package/package.json +17 -63
  15. package/packs/common/artifact-qa/pack.json +5 -0
  16. package/packs/common/artifact-qa/prompts/rules.md +11 -0
  17. package/packs/common/artifact-qa/scripts/index.mjs +235 -0
  18. package/packs/common/slide-deck/pack.json +6 -0
  19. package/packs/common/slide-deck/prompts/rules.md +11 -0
  20. package/packs/common/slide-deck/scripts/index.mjs +62 -0
  21. package/packs/common/web-ui/pack.json +6 -0
  22. package/packs/common/web-ui/prompts/rules.md +11 -0
  23. package/packs/common/web-ui/scripts/index.mjs +80 -0
  24. package/packs/en/artifact-qa/pack.json +6 -0
  25. package/packs/en/artifact-qa/prompts/rules.md +14 -0
  26. package/packs/en/artifact-qa/scripts/index.mjs +90 -0
  27. package/packs/en/prose/pack.json +7 -0
  28. package/packs/en/prose/prompts/rules.md +26 -0
  29. package/packs/en/prose/scripts/index.mjs +293 -0
  30. package/packs/en/slide-deck/pack.json +7 -0
  31. package/packs/en/slide-deck/prompts/rules.md +17 -0
  32. package/packs/en/slide-deck/scripts/index.mjs +81 -0
  33. package/packs/en/web-ui/pack.json +7 -0
  34. package/packs/en/web-ui/prompts/rules.md +20 -0
  35. package/packs/en/web-ui/scripts/index.mjs +103 -0
  36. package/packs/zh/artifact-qa/pack.json +6 -0
  37. package/packs/zh/artifact-qa/prompts/rules.md +14 -0
  38. package/packs/zh/artifact-qa/scripts/index.mjs +89 -0
  39. package/packs/zh/prose/pack.json +7 -0
  40. package/packs/zh/prose/prompts/rules.md +26 -0
  41. package/packs/zh/prose/scripts/index.mjs +305 -0
  42. package/packs/zh/slide-deck/pack.json +7 -0
  43. package/packs/zh/slide-deck/prompts/rules.md +17 -0
  44. package/packs/zh/slide-deck/scripts/index.mjs +75 -0
  45. package/packs/zh/web-ui/pack.json +7 -0
  46. package/packs/zh/web-ui/prompts/rules.md +20 -0
  47. package/packs/zh/web-ui/scripts/index.mjs +98 -0
  48. package/plugin.json +5 -6
  49. package/server.json +2 -2
  50. package/skills/deslop-docs/SKILL.md +10 -8
  51. package/skills/deslop-slides-docx/SKILL.md +7 -8
  52. package/skills/deslop-verify/SKILL.md +7 -8
  53. package/skills/deslop-web-ui/SKILL.md +7 -8
  54. package/skills/dislop/SKILL.md +16 -28
  55. package/skills/dislop/agents/openai.yaml +1 -1
  56. package/skills/dislop/references/essay.md +6 -6
  57. package/skills/dislop/references/essay.zh-CN.md +6 -6
  58. package/skills/dislop/references/office.md +5 -5
  59. package/skills/dislop/references/office.zh-CN.md +5 -5
  60. package/skills/dislop/references/web-ui.md +4 -4
  61. package/skills/dislop/references/web-ui.zh-CN.md +4 -4
  62. package/skills/dislop/references/work-docs.md +7 -7
  63. package/skills/dislop/references/work-docs.zh-CN.md +7 -7
  64. package/src/cli-main.mjs +292 -0
  65. package/src/commands/check-fix.mjs +324 -0
  66. package/src/commands/doctor.mjs +132 -0
  67. package/src/commands/init.mjs +55 -0
  68. package/src/commands/login.mjs +82 -0
  69. package/src/commands/model.mjs +130 -0
  70. package/src/commands/packs.mjs +81 -0
  71. package/src/commands/verify.mjs +165 -0
  72. package/src/commands/voice.mjs +84 -0
  73. package/src/commands/worklog.mjs +424 -0
  74. package/src/kernel/config.mjs +759 -0
  75. package/src/kernel/document-model.mjs +1432 -0
  76. package/src/kernel/fact-gate.mjs +775 -0
  77. package/src/kernel/file-discovery.mjs +296 -0
  78. package/src/{binary-node.mjs → kernel/ooxml-binary.mjs} +615 -890
  79. package/src/kernel/pack-loader.mjs +801 -0
  80. package/src/kernel/pack-validator.mjs +491 -0
  81. package/src/kernel/patcher.mjs +471 -0
  82. package/src/kernel/pipeline.mjs +530 -0
  83. package/src/kernel/prompt-assembler.mjs +336 -0
  84. package/src/kernel/version.mjs +7 -0
  85. package/src/kernel/voice-profile.mjs +180 -0
  86. package/src/mcp/stdio-server.mjs +442 -0
  87. package/src/runners/auto-fix.mjs +74 -0
  88. package/src/runners/interactive-tty.mjs +488 -0
  89. package/src/runners/reporters.mjs +272 -0
  90. package/src/runtime/chunker.mjs +87 -0
  91. package/src/runtime/json-extract.mjs +144 -0
  92. package/src/runtime/privacy-gate.mjs +97 -0
  93. package/src/runtime/providers/anthropic.mjs +65 -0
  94. package/src/runtime/providers/cloud.mjs +138 -0
  95. package/src/runtime/providers/gemini.mjs +91 -0
  96. package/src/runtime/providers/local-model.mjs +147 -0
  97. package/src/runtime/providers/openai-compat.mjs +130 -0
  98. package/src/runtime/router.mjs +324 -0
  99. package/src/runtime/worklog.mjs +904 -0
  100. package/src/sdk/index.mjs +137 -0
  101. package/models/manifest.json +0 -90
  102. package/models/pocket-slop-v1.json +0 -1
  103. package/packs/business-brief/pack.json +0 -937
  104. package/packs/core/pack.json +0 -209
  105. package/packs/deck-and-ui/pack.json +0 -539
  106. package/packs/engineering-spec/pack.json +0 -144
  107. package/packs/executive-deck/pack.json +0 -98
  108. package/packs/literary-essay/pack.json +0 -344
  109. package/packs/regulated-comms/pack.json +0 -99
  110. package/patterns/ai-tic-rubric.json +0 -252
  111. package/patterns/banks/composite-fusion.json +0 -48
  112. package/patterns/banks/discourse-rhythm.json +0 -95
  113. package/patterns/banks/lexical-signals.json +0 -92
  114. package/patterns/banks/syntactic-frames.json +0 -52
  115. package/patterns/banks/visual-deck.json +0 -44
  116. package/patterns/dimensions/artifacts.json +0 -121
  117. package/patterns/dimensions/discourse.json +0 -438
  118. package/patterns/dimensions/lexical.json +0 -198
  119. package/patterns/dimensions/rhythm.json +0 -258
  120. package/patterns/dimensions/syntactic.json +0 -285
  121. package/patterns/dimensions/visual-and-deck.json +0 -530
  122. package/patterns/taxonomy.json +0 -112
  123. package/src/core.mjs +0 -5497
  124. package/src/dislop/review-picker.vim +0 -114
  125. package/src/local-model.mjs +0 -997
  126. package/src/pattern-engine.mjs +0 -1003
  127. package/src/pocket-model.mjs +0 -729
  128. package/src/review-apply.mjs +0 -151
  129. package/src/review-client.mjs +0 -1073
@@ -1,99 +0,0 @@
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
- }
@@ -1,252 +0,0 @@
1
- {
2
- "schema": "dislop.ai-tic-rubric/1",
3
- "version": "1.0.0",
4
- "license": "Apache-2.0",
5
- "title": {
6
- "en": "Multi-Layer AI-Tic Feature Library & Cross-Check Rubric",
7
- "zh": "五层 AI 口癖特征库与多信号交叉核对准则"
8
- },
9
- "synthesizedFrom": [
10
- { "id": "wp-signs-of-ai-writing", "focus": "Inflated significance, -ing commentary tails, copula inflation, negative parallelisms, rule of three" },
11
- { "id": "blader/humanizer", "focus": "24 concrete AI writing tells, author voice loading, soul/personality preservation" },
12
- { "id": "op7418/Humanizer-zh", "focus": "Chinese translationese, abstract noun stacking, stiff structural signposting" },
13
- { "id": "hardikpandya/stop-slop", "focus": "Banned structural transitions, formulaic openers/closers, anti-drama restraint" },
14
- { "id": "petergyang/no-ai-slop", "focus": "20+ punchy writing filters against robotic symmetry and corporate fluff" },
15
- { "id": "Adkid-Zephyr/anti-defensive-writing-Skill", "focus": "Removing pre-emptive hedging and defensive boundary disclaimers" },
16
- { "id": "larashero3-dotcom/lieflat-less-ai-tone", "focus": "Empirical cross-model frequency baselines for Chinese AI cliché phrases" },
17
- { "id": "MrGeDiao/shuorenhua", "focus": "Register separation and blocking cheesy forced-casual fake-human fillers" },
18
- { "id": "jiji262/humanizer-chinese", "focus": "36 Chinese AI habits paired with anti-overcorrection guards" },
19
- { "id": "eqbench-slop-score", "focus": "Multi-axis weighting (excess lexicon + contrast frames + frequent trigrams)" },
20
- { "id": "seyedehsanhadi/sloptrim", "focus": "Zero-dependency deterministic probes + burstiness/entropy scoring" },
21
- { "id": "FeedHive/ai-slop-detector", "focus": "Categorized pattern matching paired with structural density checks" }
22
- ],
23
- "layers": [
24
- {
25
- "id": "lexical",
26
- "order": 1,
27
- "name": {
28
- "en": "Lexical Buzzwords, Calques & Forced Synonym Cycling",
29
- "zh": "词汇层:AI 集中黑话、翻译腔与强行同义词轮换"
30
- },
31
- "detectionPrimary": "hybrid",
32
- "borrowedFrom": [
33
- "wp-signs-of-ai-writing",
34
- "blader/humanizer",
35
- "op7418/Humanizer-zh",
36
- "larashero3-dotcom/lieflat-less-ai-tone",
37
- "eqbench-slop-score"
38
- ],
39
- "signals": {
40
- "en": [
41
- "Over-represented AI vocabulary clusters: delve, tapestry, pivotal, holistic, seamless, underscore, testament to, realm of, ever-evolving, navigate complexities",
42
- "Empty abstract buzzwords replacing concrete nouns/verbs (empower, leverage, robust ecosystem, transformative paradigm)",
43
- "Forced synonym cycling ('the engine -> the platform -> the architecture -> the backbone' for one concrete component)"
44
- ],
45
- "zh": [
46
- "空洞 AI 集中黑话集群:赋能、抓手、闭环/全闭环、生态矩阵、深度协同、降本增效、维度、心智、颗粒度、组合拳",
47
- "高密度中文翻译腔与公文抽象名词堆叠:在……的背景下、不可否认的是、毫不夸张地说、扮演着……角色、提供有力支撑、进行优化/开展推进",
48
- "强行同义词轮换(同一具体系统在同一段内先后被改写为“该系统/该平台/该架构/该底座”)"
49
- ]
50
- },
51
- "falsePositiveGuards": {
52
- "en": [
53
- "Never flag grounded technical or domain identifiers when tied to concrete files, configs, protocols, or numeric bounds",
54
- "Allow single isolated words; flag only paragraph-level clusters or unsupported marketing adjectives"
55
- ],
56
- "zh": [
57
- "严格区分 AI 空洞黑话与真实工程/业务行业黑话(如 Redis 兜底、WAL 落盘、PR 收口、告警打通均属扎实表达,不得误报)",
58
- "单词孤立出现且上下文有事实锚点时不误报,仅在段落共现成簇或无事实支撑时标记"
59
- ]
60
- },
61
- "llmCheckPrompt": {
62
- "en": "Check for AI buzzword clusters, nominalization bloat, and forced synonym cycling while leaving grounded domain terminology untouched.",
63
- "zh": "识别空洞 AI 黑话簇、虚化动宾搭配与同义词强行轮换;严禁误伤带真实技术/业务锚点的行业术语。"
64
- }
65
- },
66
- {
67
- "id": "syntactic",
68
- "order": 2,
69
- "name": {
70
- "en": "Syntactic Frames, Inflated Copulas & Participle Tails",
71
- "zh": "句法层:模板句壳、虚假施事与分词附庸尾句"
72
- },
73
- "detectionPrimary": "hybrid",
74
- "borrowedFrom": [
75
- "wp-signs-of-ai-writing",
76
- "hardikpandya/stop-slop",
77
- "VincentOld/stop-slop-zh",
78
- "petergyang/no-ai-slop"
79
- ],
80
- "signals": {
81
- "en": [
82
- "Formulaic contrast pivots ('Not just X, but Y', 'It isn't about A; it's about B')",
83
- "Dangling -ing commentary tails tacked onto factual clauses (', highlighting its pivotal role', ', underscoring the importance', ', ensuring seamless integration')",
84
- "Inflated copulas & false-agency verbs ('serves as a testament to', 'stands as a beacon', 'boasts an array of', 'the data tells us')",
85
- "Three-part balanced semicolon pitches, staccato slogan runs, and staged self-Q&A ('Why does this matter? Because...')"
86
- ],
87
- "zh": [
88
- "反转金句套壳(“不是 A,而是 B”“与其说……不如说……”高密度套用)",
89
- "角色隐喻与伪载体句式(“扮演着重要角色”“作为……的重要载体/基石/桥梁”)",
90
- "抽象跨度伪排比(“从……到……再到……”连接无实体落点的概念)、四字成语排比串与自问自答过渡(“这意味着什么?意味着……”)"
91
- ]
92
- },
93
- "falsePositiveGuards": {
94
- "en": [
95
- "Distinguish literal architectural roles ('proxy serves as TLS terminator') from puffed-up claims ('serves as a pivotal paradigm')",
96
- "Allow genuine parallel debugging steps or crisp specifications"
97
- ],
98
- "zh": [
99
- "区分真实机制对比与空洞反转金句(如真实规格说明“A 不走 TCP,而是走 Unix socket”不应误报)",
100
- "代码或表格中的并列技术参数列表不按排比口癖处罚"
101
- ]
102
- },
103
- "llmCheckPrompt": {
104
- "en": "Spot formulaic syntactic shells (negation pivots, dangling -ing significance tails, inflated copulas, 3-part symmetry) that persist even after synonyms are swapped.",
105
- "zh": "检查换词后仍在的句法骨架(“不是A而是B”反转、角色隐喻载体句、伪跨度排比与自问自答套壳),区分真实机制对比与空洞修辞。"
106
- }
107
- },
108
- {
109
- "id": "rhythm",
110
- "order": 3,
111
- "name": {
112
- "en": "Rhythm, Burstiness & Formatting Confetti",
113
- "zh": "节奏层:句长节拍器、长逗号链与助手排版噪点"
114
- },
115
- "detectionPrimary": "deterministic",
116
- "borrowedFrom": [
117
- "seyedehsanhadi/sloptrim",
118
- "FeedHive/ai-slop-detector",
119
- "hardikpandya/stop-slop",
120
- "blader/humanizer"
121
- ],
122
- "signals": {
123
- "en": [
124
- "Metronome sentence-length uniformity (low CV across 5+ sentences) and equal paragraph word budgets",
125
- "Flat 5+ comma run-on chains and mechanical repetitive sentence openers",
126
- "Inline **bold** lead-in bullet walls, confetti bolding inside prose, and excessive em-dashes"
127
- ],
128
- "zh": [
129
- "连续 5 句以上长度高度均一的节拍器节奏,或连续段落字数几乎均等切割",
130
- "单句连续 5 个以上逗号平铺、机械同构句首开头",
131
- "无节制加粗标签列表墙(`**关键词**:说明` 连续刷屏)、段内加粗噪点与过密破折号"
132
- ]
133
- },
134
- "falsePositiveGuards": {
135
- "en": [
136
- "Concise checklists, changelogs, API reference tables, and code blocks naturally share uniform line lengths and must not be penalized",
137
- "Allow short, punchy cadence when deliberate in dialogue, release notes, or rules"
138
- ],
139
- "zh": [
140
- "规则清单、接口参数表、变更日志天然具有短句和规则排布,不得硬性要求改写打乱结构",
141
- "中文技术列表与规范条目允许稳定格式,不与散文节奏混为一谈"
142
- ]
143
- },
144
- "llmCheckPrompt": {
145
- "en": "Verify whether statistical flatness reflects true assistant smoothing rather than an intentional reference list or changelog.",
146
- "zh": "结合文体判断平直节奏是否真是 AI 平滑铺陈;若原文是严谨操作规程或参数清单,勿为制造起伏而破坏清晰度。"
147
- }
148
- },
149
- {
150
- "id": "cognitive-framing",
151
- "order": 4,
152
- "name": {
153
- "en": "Cognitive Framing: False Neutrality, Elevation & Fake Specificity",
154
- "zh": "思维与表达层:虚假端水、强行宏大升华与无依据精确"
155
- },
156
- "detectionPrimary": "llm-primary",
157
- "borrowedFrom": [
158
- "wp-signs-of-ai-writing",
159
- "Adkid-Zephyr/anti-defensive-writing-Skill",
160
- "op7418/Humanizer-zh",
161
- "MrGeDiao/shuorenhua",
162
- "AIScientists-Dev/academic-humanizer"
163
- ],
164
- "signals": {
165
- "en": [
166
- "False-neutral 'both-sides' hedging ('on the one hand ... on the other hand ... ultimately depends on your needs') refusing to make a concrete engineering/editorial call",
167
- "Forced macro elevation & significance inflation ('marks a pivotal turning point', 'lays a solid foundation for future innovation')",
168
- "Pre-emptive defensive disclaimers ('it is worth noting that no single approach solves everything')",
169
- "Fake specificity / ghost attribution ('industry experts widely agree', 'studies show dramatic improvements')"
170
- ],
171
- "zh": [
172
- "虚假客观“端水”思维(“有利有弊,仁者见仁智者见智”“既要效率又要稳定,具体取决于业务场景”——回避直接下判断)",
173
- "强行拔高意义与宏大叙事(“标志着……迈入新阶段”“为后续演进奠定了坚实基础”“彰显了深远价值”)",
174
- "防御性免责铺垫(“需要客观说明的是,任何方案都非完美,但只要……”)",
175
- "无来源伪具体背书(“业内专家普遍认为”“多项实测指标显示显著提升”)"
176
- ]
177
- },
178
- "falsePositiveGuards": {
179
- "en": [
180
- "Preserve legitimate trade-off analysis backed by concrete conditions, numbers, or threshold boundaries ('Use SQLite under 50k writes/day; move to Postgres beyond that')",
181
- "Never strip real uncertainty qualifiers ('estimated', 'unless', 'pending verification')"
182
- ],
183
- "zh": [
184
- "区分“虚假端水”与“有边界条件的真权衡”(如明确写出“日写入低于 5 万用 SQLite,超过再切 Postgres”是精准判断,必须保留)",
185
- "严禁把合理的风险限定词(“预计/仅在/除非/待实测确认”)当成防御性废话删掉"
186
- ]
187
- },
188
- "llmCheckPrompt": {
189
- "en": "Inspect the reasoning frame: flag false-neutral hedging that dodges a clear judgment, ungrounded macro significance inflation, defensive padding, and fake-specificity attributions. Keep bounded trade-offs and real caveats intact.",
190
- "zh": "重点审查思维与立意角度:抓出回避明确判断的“端水套话”、无支撑的宏大升华、冗余免责铺垫与伪权威归因;保留带真实边界条件与实测范围的严谨权衡。"
191
- }
192
- },
193
- {
194
- "id": "rhetorical-stance",
195
- "order": 5,
196
- "name": {
197
- "en": "Rhetorical Stance: Lecturing, Over-Explaining & Fake-Human Overcorrection",
198
- "zh": "表达角度层:居高临下说教、冗余复述与廉价“装人味”"
199
- },
200
- "detectionPrimary": "llm-primary",
201
- "borrowedFrom": [
202
- "MrGeDiao/shuorenhua",
203
- "jiji262/humanizer-chinese",
204
- "blader/humanizer",
205
- "hardikpandya/stop-slop"
206
- ],
207
- "signals": {
208
- "en": [
209
- "Didactic lecturing & faux profundity ('Let that sink in.', 'The real truth nobody talks about:', 'At its core, quality isn't a tool—it's a mindset')",
210
- "Over-explaining & spoon-feeding (announcing what a clear datum obviously means right after stating it, plus redundant 'Key Takeaways' on short notes)",
211
- "Sycophancy & chatbot residue leaks ('Great question!', 'I'd be happy to help')",
212
- "Fake-human overcorrection: inserting forced slang, exclamation confetti, or fake typos just to sound casual"
213
- ],
214
- "zh": [
215
- "说教口吻与伪金句收尾(“本质上来说……”“说白了就是……”“真正的……从来不是……而是……”)",
216
- "保姆式重复解释与强行总结(刚给出清楚的表格或数字,紧接着再用三句话“换言之,这充分说明了……”;短文硬塞“核心总结 / 下一步展望”)",
217
- "助手客套残留与媚俗“装人味”过度纠偏(生硬插入“哈哈/家人们/绝绝子/其实吧/讲真”,破坏专业语体与原声风格)"
218
- ]
219
- },
220
- "falsePositiveGuards": {
221
- "en": [
222
- "Respect the author's real voice, sharp opinions, humor, and personal register when consistent with their voice card or literary/editorial genre",
223
- "Never rewrite vivid human metaphors or crisp stance into bland bureaucratic prose"
224
- ],
225
- "zh": [
226
- "尊重并保留作者本来就有的锋芒观点、个人幽默、口语节奏或文风卡习惯,不得一刀切磨平成白开水",
227
- "严禁通过塞入“说白了/其实吧”或磨平个性来伪造“人味”"
228
- ]
229
- },
230
- "llmCheckPrompt": {
231
- "en": "Check writer-reader stance: flag didactic lecturing, spoon-feeding summaries after concrete facts, chatbot leaks, and cheesy fake-human slang. Protect genuine author personality, crisp humor, and direct judgment.",
232
- "zh": "审查叙事姿态与视角:抓出居高临下的说教金句、事实后的保姆式复述、残留客套与廉价“装人味”口水词;同时保护作者原本鲜明的态度、个人视角与真实语气。"
233
- }
234
- }
235
- ],
236
- "antiDegradationPrinciples": {
237
- "en": [
238
- "Preserve original author perspective, voice tension, and rhetorical personality; never flatten lively prose into sterile report boilerplate.",
239
- "Preserve burstiness and natural short-long sentence rhythm contrast.",
240
- "Preserve grounded industry/technical terms and concrete information density; delete padding, never delete substance.",
241
- "Preserve modality bounds and uncertainty qualifiers (e.g., 'estimated', 'about', 'only if', 'pending benchmark').",
242
- "Reject secondary AI slop and fake-human overcorrection slogans during edits."
243
- ],
244
- "zh": [
245
- "保留原作者的人称视角、鲜明态度与表达魅力,绝不把有个性的文章改笨、改呆或磨平为千篇一律的干瘪公文。",
246
- "保留长短句自然起伏,防止为了消解排比或长句而把全文切成均一短句。",
247
- "保留带事实锚点的行业/技术专名与真实信息密度;只删水词废话,不删实质机制与判断依据。",
248
- "严格保留数值、专名与范围/不确定限定词(预计、约、仅在、除非、待确认),绝不夸大成绝对承诺或幻觉编造数字。",
249
- "禁止在改写或审校建议中引入新的 AI 套词(全闭环、赋能、抓手、“不是A而是B”)或廉价装人味填充词。"
250
- ]
251
- }
252
- }
@@ -1,48 +0,0 @@
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
- "标志着[^,。!?\\n]{2,14}(?:新阶段|里程碑)",
29
- "奠定[^,。!?\\n]{0,6}坚实基础",
30
- "彰显(?:了)?[^,。!?\\n]{1,10}",
31
- "有利有弊",
32
- "仁者见仁",
33
- "说白了",
34
- "归根结底",
35
- "\\btestament to\\b",
36
- "\\bmarks a pivotal\\b",
37
- "\\bworth noting\\b",
38
- "\\bultimately depends\\b",
39
- ",\\s+(?:highlighting|underscoring|showcasing|fostering)\\s+(?:its|the|how)\\b"
40
- ],
41
- "concreteFactPatterns": [
42
- "\\b\\d+(?:\\.\\d+)?\\s*(?:ms|s|sec|seconds?|min|minutes?|hours?|days?|weeks?|KB|MB|GB|TB|QPS|TPS|%|px|pt|Hz|UTC)\\b",
43
- "\\d+(?:\\.\\d+)?\\s*(?:毫秒|秒|分钟|小时|天|周|个月|年|次|条|台|个|家|倍|万|亿|%)",
44
- "`[^`\\n]{2,40}`",
45
- "\\b[A-Za-z0-9_-]+\\.(?:mjs|js|ts|py|json|yaml|yml|md|html|css|sql|sh)\\b",
46
- "\\b(?:19|20)\\d{2}-\\d{2}-\\d{2}\\b|\\b\\d{1,2}:\\d{2}\\b"
47
- ]
48
- }
@@ -1,95 +0,0 @@
1
- {
2
- "schema": "dislop.pattern-bank/1",
3
- "id": "discourse-rhythm",
4
- "version": "1.0.0",
5
- "description": {
6
- "en": "Declarative signal lists and calibrated thresholds for rhythm, cadence, formatting density, and mechanical discourse signposting.",
7
- "zh": "节奏、韵律、排版密度与机械过渡路标簇的声明式信号词库与校准阈值。"
8
- },
9
- "commaChain": {
10
- "ruleId": "comma-chain-runon",
11
- "dimension": "rhythm",
12
- "detectionAngle": "rhythm-statistics",
13
- "severity": "info",
14
- "minCommas": 5,
15
- "minLongClauses": 4,
16
- "zh": { "minClauseUnits": 4, "minAvgClauseUnits": 5.0 },
17
- "en": { "minClauseUnits": 3, "minAvgClauseUnits": 3.2 },
18
- "maxMarkdownLinks": 2
19
- },
20
- "sentenceLengthMonotony": {
21
- "ruleId": "low-burstiness-vapor",
22
- "dimension": "rhythm",
23
- "detectionAngle": "rhythm-statistics",
24
- "severity": "info",
25
- "minSentences": 5,
26
- "minSentenceUnits": 4,
27
- "maxCv": 0.16,
28
- "minMeanUnitsZh": 14,
29
- "minMeanUnitsEn": 10
30
- },
31
- "openerAnaphora": {
32
- "ruleId": "opener-anaphora-monotony",
33
- "dimension": "rhythm",
34
- "detectionAngle": "rhythm-statistics",
35
- "severity": "info",
36
- "minConsecutive": 4,
37
- "minOpenerCharsZh": 2,
38
- "minOpenerWordsEn": 2
39
- },
40
- "inlineBoldSaturation": {
41
- "ruleId": "inline-bold-saturation",
42
- "dimension": "rhythm",
43
- "detectionAngle": "rhythm-statistics",
44
- "severity": "info",
45
- "minBoldSpans": 4,
46
- "maxWordsPerBoldEn": 28,
47
- "maxCjkPerBoldZh": 55
48
- },
49
- "paragraphLengthUniformity": {
50
- "ruleId": "paragraph-length-uniformity",
51
- "dimension": "rhythm",
52
- "detectionAngle": "rhythm-statistics",
53
- "severity": "info",
54
- "minParagraphs": 5,
55
- "minMeanUnits": 35,
56
- "maxCv": 0.13
57
- },
58
- "discourseMarkers": {
59
- "ruleId": "discourse-marker-cluster",
60
- "dimension": "discourse",
61
- "detectionAngle": "discourse-structure",
62
- "severity": "warning",
63
- "minConsecutiveParagraphs": 3,
64
- "minMarkersInParagraph": 3,
65
- "zhLeadMarkers": [
66
- "首先",
67
- "其次",
68
- "再次",
69
- "此外",
70
- "另外",
71
- "与此同时",
72
- "不仅如此",
73
- "进一步来说",
74
- "进一步来看",
75
- "最后",
76
- "总而言之",
77
- "综上所述",
78
- "归根结底"
79
- ],
80
- "enLeadMarkers": [
81
- "Firstly",
82
- "Secondly",
83
- "Thirdly",
84
- "Furthermore",
85
- "Moreover",
86
- "Additionally",
87
- "In addition",
88
- "Consequently",
89
- "Ultimately",
90
- "In conclusion",
91
- "To summarize",
92
- "Notably"
93
- ]
94
- }
95
- }
@@ -1,92 +0,0 @@
1
- {
2
- "schema": "dislop.pattern-bank/1",
3
- "id": "lexical-signals",
4
- "version": "1.0.0",
5
- "description": {
6
- "en": "Weighted, evidence-graded bilingual lexical, collocation, and Chinese translation-calque signal banks. Triggers only on paragraph-level clusters to avoid single-word false positives.",
7
- "zh": "带权重与证据分级的双语高频 AI 词汇、词组搭配与中文翻译腔信号库;仅按段落簇密度触发,避免单词误报。"
8
- },
9
- "zhCalqueCluster": {
10
- "ruleId": "zh-ai-calque-cluster",
11
- "dimension": "lexical",
12
- "detectionAngle": "lexicon-cluster",
13
- "severity": "info",
14
- "minDistinctHits": 2,
15
- "minWeightedScore": 2.2,
16
- "signals": [
17
- { "id": "zh-bg-context", "pattern": "在[^,。!?\\n]{2,18}的背景下", "weight": 1.2 },
18
- { "id": "zh-undeniable", "pattern": "不可否认(?:的是)?", "weight": 1.3 },
19
- { "id": "zh-no-exaggeration", "pattern": "毫不夸张地说", "weight": 1.4 },
20
- { "id": "zh-in-a-sense", "pattern": "从某种意义上(?:来)?说", "weight": 1.3 },
21
- { "id": "zh-in-other-words", "pattern": "换句话说", "weight": 1.0 },
22
- { "id": "zh-huan-yan-zhi", "pattern": "换言之", "weight": 1.1 },
23
- { "id": "zh-not-only-that", "pattern": "不仅如此", "weight": 1.0 },
24
- { "id": "zh-plays-role", "pattern": "扮演着[^,。!?\\n]{0,10}角色", "weight": 1.4 },
25
- { "id": "zh-double-edged", "pattern": "是一把双刃剑", "weight": 1.4 },
26
- { "id": "zh-strong-support", "pattern": "提供(?:了)?有力支撑", "weight": 1.3 },
27
- { "id": "zh-crucial", "pattern": "至关重要", "weight": 1.0 },
28
- { "id": "zh-unprecedented", "pattern": "前所未有", "weight": 1.1 },
29
- { "id": "zh-quietly-change", "pattern": "(?:深刻|悄然)改变", "weight": 1.2 },
30
- { "id": "zh-especially-key", "pattern": "尤为关键", "weight": 1.1 },
31
- { "id": "zh-self-evident", "pattern": "不言而喻", "weight": 1.2 },
32
- { "id": "zh-obvious", "pattern": "显而易见", "weight": 1.1 },
33
- { "id": "zh-cannot-ignore", "pattern": "不容忽视", "weight": 1.1 },
34
- { "id": "zh-undoubtedly", "pattern": "毋庸置疑", "weight": 1.2 },
35
- { "id": "zh-wide-attention", "pattern": "引发了广泛关注", "weight": 1.3 },
36
- { "id": "zh-worth-pondering", "pattern": "值得深思的是", "weight": 1.3 },
37
- { "id": "zh-long-run", "pattern": "从长远来看", "weight": 1.0 },
38
- { "id": "zh-worth-noting", "pattern": "值得注意的是", "weight": 1.1 },
39
- { "id": "zh-bottom-line", "pattern": "归根结底", "weight": 1.2 },
40
- { "id": "zh-all-in-all", "pattern": "总而言之", "weight": 1.1 },
41
- { "id": "zh-not-hard-find", "pattern": "不难发现", "weight": 1.1 },
42
- { "id": "zh-furthermore", "pattern": "进一步来说", "weight": 1.0 },
43
- { "id": "zh-plainly-put", "pattern": "说白了就是", "weight": 1.3 },
44
- { "id": "zh-essentially", "pattern": "本质上(?:来说|而言)", "weight": 1.2 },
45
- { "id": "zh-new-stage", "pattern": "迈入新阶段", "weight": 1.4 },
46
- { "id": "zh-solid-foundation", "pattern": "奠定(?:了)?坚实基础", "weight": 1.4 },
47
- { "id": "zh-important-carrier", "pattern": "作为[^,。!?\\n]{1,12}的重要(?:载体|基石|桥梁)", "weight": 1.4 }
48
- ]
49
- },
50
- "enPhraseCluster": {
51
- "ruleId": "en-ai-phrase-cluster",
52
- "dimension": "lexical",
53
- "detectionAngle": "lexicon-cluster",
54
- "severity": "info",
55
- "minDistinctHits": 3,
56
- "minWeightedScore": 3.2,
57
- "signals": [
58
- { "id": "en-meticulous", "pattern": "\\bmeticulous(?:ly)?\\b", "weight": 1.2 },
59
- { "id": "en-intricate", "pattern": "\\bintricate\\b", "weight": 1.2 },
60
- { "id": "en-pivotal", "pattern": "\\bpivotal\\b", "weight": 1.3 },
61
- { "id": "en-foster", "pattern": "\\bfoster(?:s|ed|ing)?\\b", "weight": 1.1 },
62
- { "id": "en-underscore", "pattern": "\\bunderscore(?:s|d|ing)?\\b", "weight": 1.2 },
63
- { "id": "en-nuanced", "pattern": "\\bnuanced\\b", "weight": 1.2 },
64
- { "id": "en-seamless", "pattern": "\\bseamless(?:ly)?\\b", "weight": 1.2 },
65
- { "id": "en-holistic", "pattern": "\\bholistic\\b", "weight": 1.3 },
66
- { "id": "en-groundbreaking", "pattern": "\\bgroundbreaking\\b", "weight": 1.3 },
67
- { "id": "en-ever-evolving", "pattern": "\\bever-evolving\\b", "weight": 1.4 },
68
- { "id": "en-realm-of", "pattern": "\\brealm of\\b", "weight": 1.3 },
69
- { "id": "en-landscape-of", "pattern": "\\blandscape of\\b", "weight": 1.2 },
70
- { "id": "en-navigate-complexities", "pattern": "\\bnavigate the complexities\\b", "weight": 1.5 },
71
- { "id": "en-crucial-role", "pattern": "\\bcrucial role\\b", "weight": 1.2 },
72
- { "id": "en-serves-as-a", "pattern": "\\bserve(?:s)? as a\\b", "weight": 1.0 },
73
- { "id": "en-boasts-a", "pattern": "\\bboasts a\\b", "weight": 1.3 },
74
- { "id": "en-tapestry", "pattern": "\\btapestry\\b", "weight": 1.2 },
75
- { "id": "en-leverage", "pattern": "\\bleverage(?:s|d|ing)?\\b", "weight": 1.0 },
76
- { "id": "en-comprehensive", "pattern": "\\bcomprehensive\\b", "weight": 0.9 },
77
- { "id": "en-robust", "pattern": "\\brobust\\b", "weight": 0.9 },
78
- { "id": "en-transformative", "pattern": "\\btransformative\\b", "weight": 1.2 },
79
- { "id": "en-paramount", "pattern": "\\bparamount\\b", "weight": 1.2 },
80
- { "id": "en-multifaceted", "pattern": "\\bmultifaceted\\b", "weight": 1.3 },
81
- { "id": "en-streamline", "pattern": "\\bstreamline(?:s|d|ing)?\\b", "weight": 1.0 },
82
- { "id": "en-testament-to", "pattern": "\\btestament to\\b", "weight": 1.3 },
83
- { "id": "en-stands-as-a", "pattern": "\\bstands as a\\b", "weight": 1.2 },
84
- { "id": "en-delve", "pattern": "\\bdelve(?:s|d|ing)?\\b", "weight": 1.3 },
85
- { "id": "en-ever-changing", "pattern": "\\bever-changing\\b", "weight": 1.3 },
86
- { "id": "en-game-changing", "pattern": "\\bgame[- ]changing\\b", "weight": 1.3 },
87
- { "id": "en-worth-noting", "pattern": "\\bworth noting\\b", "weight": 1.0 },
88
- { "id": "en-in-todays", "pattern": "\\bin today's\\b", "weight": 1.1 },
89
- { "id": "en-notably", "pattern": "\\bnotably\\b", "weight": 0.9 }
90
- ]
91
- }
92
- }
@@ -1,52 +0,0 @@
1
- {
2
- "schema": "dislop.pattern-bank/1",
3
- "id": "syntactic-frames",
4
- "version": "1.0.0",
5
- "description": {
6
- "en": "Declarative syntactic and rhetorical frame patterns for balanced concession clichés, poster pull-quote closers, and staged self-Q&A transitions.",
7
- "zh": "模板化两面平衡让步句、金句卡片式海报收尾与自问自答过渡句的声明式句法模式库。"
8
- },
9
- "concessionSymmetry": {
10
- "ruleId": "concession-symmetry-frame",
11
- "dimension": "syntactic",
12
- "detectionAngle": "syntactic-frame",
13
- "severity": "info",
14
- "enPatterns": [
15
- "\\b(?:While|Although)\\s+[^.!?\\n]{4,75}\\b(?:challenges?|hurdles?|drawbacks?|limitations?|complexities)\\b[^.!?\\n]{0,40},\\s+(?:it|they|this|these)\\s+(?:also\\s+)?(?:offers?|brings?|presents?|delivers?|unlocks?|provides?)\\s+(?:tremendous|significant|meaningful|immense|unprecedented|substantial)\\s+(?:opportunities?|value|benefits?|potential|advantages?)\\b",
16
- "\\bon the one hand\\b[^.!?\\n]{5,90}\\bon the other hand\\b[^.!?\\n]{0,70}\\b(?:depends?|balance|trade-?offs?|ultimately)\\b",
17
- ",\\s+(?:highlighting|underscoring|showcasing|fostering)\\s+(?:the\\s+)?(?:importance|significance|crucial|vital|pivotal|growing|transformative|broader)\\b"
18
- ],
19
- "zhPatterns": [
20
- "(?:虽然|尽管)[^。!?\\n]{2,28}(?:面临|存在|带来)[^。!?\\n]{0,12}(?:挑战|局限|难题|风险)[,,]\\s*(?:但(?:是)?(?:不可否认)?[^。!?\\n]{0,16})?(?:也|同时)(?:带来|蕴含|提供|创造)了[^。!?\\n]{0,12}(?:机遇|价值|潜力|空间)",
21
- "有利有弊[^。!?\\n]{0,20}(?:取决于|因人而异|综合考量|具体场景)",
22
- "仁者见仁[,,、]?智者见智"
23
- ]
24
- },
25
- "pullQuoteCloser": {
26
- "ruleId": "pull-quote-closer",
27
- "dimension": "syntactic",
28
- "detectionAngle": "syntactic-frame",
29
- "severity": "warning",
30
- "skipQuoted": true,
31
- "patterns": [
32
- "笔一直在你手里",
33
- "这才是[^。!?\\n]{2,18}真正的(?:温度|力量|底气|价值|魅力|意义)",
34
- "真正的[^。!?\\n]{2,14}从来不是",
35
- "\\bthe pen stays in your hand\\b",
36
- "\\bbuilt for the future\\b",
37
- "\\bquality ships\\.",
38
- "\\bLet that sink in\\.",
39
- "\\bAnd that changes everything\\."
40
- ]
41
- },
42
- "rhetoricalSelfQa": {
43
- "ruleId": "rhetorical-qa-cadence",
44
- "dimension": "syntactic",
45
- "detectionAngle": "syntactic-frame",
46
- "severity": "info",
47
- "patterns": [
48
- "(?:^|[。!?\\n]\\s*)(?:这意味着什么|结果呢|为什么这很重要|这说明了什么)[??]\\s*(?:意味着|因为|答案(?:很)?简单|事实是|结果是|它(?:不仅|直接))",
49
- "(?:^|[.!?\\n]\\s*)(?:Why does this matter|What does this mean|The result|What changed|The takeaway)\\?\\s+(?:Because|It means|Simple|Teams|In short|Ultimately)\\b"
50
- ]
51
- }
52
- }