dislop 0.9.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +3 -3
- package/.claude-plugin/plugin.json +2 -2
- package/.codex-plugin/plugin.json +7 -8
- package/.cursor-plugin/plugin.json +2 -3
- package/.pre-commit-hooks.yaml +5 -12
- package/PRODUCT.md +19 -57
- package/README.md +360 -252
- package/README.zh-CN.md +390 -240
- package/action.yml +30 -39
- package/bin/dislop-mcp.mjs +3 -4
- package/bin/dislop.mjs +4 -4582
- package/gemini-extension.json +2 -2
- package/llms-install.md +68 -0
- package/package.json +17 -55
- package/packs/common/artifact-qa/pack.json +5 -0
- package/packs/common/artifact-qa/prompts/rules.md +11 -0
- package/packs/common/artifact-qa/scripts/index.mjs +173 -0
- package/packs/common/slide-deck/pack.json +6 -0
- package/packs/common/slide-deck/prompts/rules.md +11 -0
- package/packs/common/slide-deck/scripts/index.mjs +62 -0
- package/packs/common/web-ui/pack.json +6 -0
- package/packs/common/web-ui/prompts/rules.md +11 -0
- package/packs/common/web-ui/scripts/index.mjs +80 -0
- package/packs/en/artifact-qa/pack.json +6 -0
- package/packs/en/artifact-qa/prompts/rules.md +14 -0
- package/packs/en/artifact-qa/scripts/index.mjs +90 -0
- package/packs/en/prose/pack.json +7 -0
- package/packs/en/prose/prompts/rules.md +26 -0
- package/packs/en/prose/scripts/index.mjs +290 -0
- package/packs/en/slide-deck/pack.json +7 -0
- package/packs/en/slide-deck/prompts/rules.md +17 -0
- package/packs/en/slide-deck/scripts/index.mjs +81 -0
- package/packs/en/web-ui/pack.json +7 -0
- package/packs/en/web-ui/prompts/rules.md +20 -0
- package/packs/en/web-ui/scripts/index.mjs +103 -0
- package/packs/zh/artifact-qa/pack.json +6 -0
- package/packs/zh/artifact-qa/prompts/rules.md +14 -0
- package/packs/zh/artifact-qa/scripts/index.mjs +89 -0
- package/packs/zh/prose/pack.json +7 -0
- package/packs/zh/prose/prompts/rules.md +26 -0
- package/packs/zh/prose/scripts/index.mjs +305 -0
- package/packs/zh/slide-deck/pack.json +7 -0
- package/packs/zh/slide-deck/prompts/rules.md +17 -0
- package/packs/zh/slide-deck/scripts/index.mjs +75 -0
- package/packs/zh/web-ui/pack.json +7 -0
- package/packs/zh/web-ui/prompts/rules.md +20 -0
- package/packs/zh/web-ui/scripts/index.mjs +98 -0
- package/plugin.json +5 -6
- package/server.json +8 -2
- package/skills/deslop-docs/SKILL.md +10 -8
- package/skills/deslop-slides-docx/SKILL.md +7 -8
- package/skills/deslop-verify/SKILL.md +7 -8
- package/skills/deslop-web-ui/SKILL.md +7 -8
- package/skills/dislop/SKILL.md +16 -28
- package/skills/dislop/references/essay.md +1 -1
- package/skills/dislop/references/essay.zh-CN.md +1 -1
- package/skills/dislop/references/office.md +1 -1
- package/skills/dislop/references/office.zh-CN.md +1 -1
- package/skills/dislop/references/web-ui.md +1 -1
- package/skills/dislop/references/web-ui.zh-CN.md +1 -1
- package/skills/dislop/references/work-docs.md +1 -1
- package/skills/dislop/references/work-docs.zh-CN.md +1 -1
- package/src/cli-main.mjs +210 -0
- package/src/commands/check-fix.mjs +169 -0
- package/src/commands/doctor.mjs +110 -0
- package/src/commands/init.mjs +49 -0
- package/src/commands/login.mjs +82 -0
- package/src/commands/model.mjs +130 -0
- package/src/commands/packs.mjs +44 -0
- package/src/commands/verify.mjs +133 -0
- package/src/commands/voice.mjs +84 -0
- package/src/kernel/config.mjs +232 -0
- package/src/kernel/document-model.mjs +1412 -0
- package/src/kernel/fact-gate.mjs +615 -0
- package/src/kernel/file-discovery.mjs +139 -0
- package/src/{binary-node.mjs → kernel/ooxml-binary.mjs} +532 -893
- package/src/kernel/pack-loader.mjs +715 -0
- package/src/kernel/patcher.mjs +341 -0
- package/src/kernel/pipeline.mjs +267 -0
- package/src/kernel/prompt-assembler.mjs +307 -0
- package/src/kernel/voice-profile.mjs +177 -0
- package/src/mcp/stdio-server.mjs +372 -0
- package/src/runners/auto-fix.mjs +59 -0
- package/src/runners/interactive-tty.mjs +461 -0
- package/src/runners/reporters.mjs +256 -0
- package/src/runtime/chunker.mjs +87 -0
- package/src/runtime/json-extract.mjs +144 -0
- package/src/runtime/privacy-gate.mjs +97 -0
- package/src/runtime/providers/anthropic.mjs +65 -0
- package/src/runtime/providers/cloud.mjs +136 -0
- package/src/runtime/providers/gemini.mjs +91 -0
- package/src/runtime/providers/local-model.mjs +139 -0
- package/src/runtime/providers/openai-compat.mjs +130 -0
- package/src/runtime/router.mjs +315 -0
- package/src/sdk/index.mjs +137 -0
- package/models/manifest.json +0 -90
- package/models/pocket-slop-v1.json +0 -1
- package/packs/business-brief/pack.json +0 -937
- package/packs/core/pack.json +0 -209
- package/packs/deck-and-ui/pack.json +0 -539
- package/packs/engineering-spec/pack.json +0 -144
- package/packs/executive-deck/pack.json +0 -98
- package/packs/literary-essay/pack.json +0 -344
- package/packs/regulated-comms/pack.json +0 -99
- package/patterns/ai-tic-rubric.json +0 -252
- package/patterns/banks/composite-fusion.json +0 -48
- package/patterns/banks/discourse-rhythm.json +0 -95
- package/patterns/banks/lexical-signals.json +0 -92
- package/patterns/banks/syntactic-frames.json +0 -52
- package/patterns/banks/visual-deck.json +0 -44
- package/patterns/dimensions/artifacts.json +0 -121
- package/patterns/dimensions/discourse.json +0 -438
- package/patterns/dimensions/lexical.json +0 -198
- package/patterns/dimensions/rhythm.json +0 -258
- package/patterns/dimensions/syntactic.json +0 -285
- package/patterns/dimensions/visual-and-deck.json +0 -530
- package/patterns/taxonomy.json +0 -112
- package/src/core.mjs +0 -5497
- package/src/dislop/review-picker.vim +0 -114
- package/src/local-model.mjs +0 -997
- package/src/pattern-engine.mjs +0 -1003
- package/src/pocket-model.mjs +0 -729
- package/src/review-apply.mjs +0 -151
- package/src/review-client.mjs +0 -1073
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"schema": "dislop.pack/2",
|
|
3
|
-
"id": "engineering-spec",
|
|
4
|
-
"version": "0.6.0",
|
|
5
|
-
"tier": "taste",
|
|
6
|
-
"extends": ["business-brief"],
|
|
7
|
-
"name": {
|
|
8
|
-
"en": "Engineering RFC, PR & Postmortem",
|
|
9
|
-
"zh": "研发文档、PR 与故障复盘"
|
|
10
|
-
},
|
|
11
|
-
"summary": {
|
|
12
|
-
"en": "Catches empty AI PR summaries, stop-thinking 'human error' postmortem labels, and unowned wishful action items alongside core and brief checks.",
|
|
13
|
-
"zh": "在技术文档与简报检查之上,专门拦截空洞的 AI 代码提交总结、把事故归结为“人为失误”的止步归因,以及无负责人无指标的许愿式改进项。"
|
|
14
|
-
},
|
|
15
|
-
"modalities": ["markdown", "text", "docx"],
|
|
16
|
-
"thresholds": {
|
|
17
|
-
"boldLeadListRun": 4
|
|
18
|
-
},
|
|
19
|
-
"rules": [
|
|
20
|
-
{
|
|
21
|
-
"id": "eng-pr-diff-parrot",
|
|
22
|
-
"tier": "taste",
|
|
23
|
-
"severity": "warning",
|
|
24
|
-
"family": "frame/pr-wrapper",
|
|
25
|
-
"probe": "regex",
|
|
26
|
-
"zones": ["prose"],
|
|
27
|
-
"modalities": ["markdown", "text"],
|
|
28
|
-
"patterns": [
|
|
29
|
-
"(?:^|\\n)\\s*(?:This\\s+(?:PR|pull\\s+request|commit|change)\\s+(?:introduces|updates|refactors|enhances|streamlines)\\b[^.\\n]{0,90}\\bto\\s+(?:ensure|provide|deliver|improve|enhance|facilitate)\\s+(?:a\\s+more\\s+)?(?:seamless|robust|scalable|maintainable|intuitive|streamlined|resilient)[^.\\n]{0,60})",
|
|
30
|
-
"(?:^|\\n)\\s*(?:本次\\s*(?:提交|改动|更新|PR|重构)\\s*(?:主要)?(?:旨在)?通过[^。!?\\n]{2,40}(?:进一步|全面|有效)?(?:提升|增强|保障)[^。!?\\n]{0,24}(?:可维护性|扩展性|健壮性|稳定性|研发效能))"
|
|
31
|
-
],
|
|
32
|
-
"message": {
|
|
33
|
-
"en": "Generic AI PR summary parrots file changes without stating the concrete bug, constraint, or metric.",
|
|
34
|
-
"zh": "空泛的 AI 提交摘要只重复“通过优化提升可维护性”,未说明具体修掉的缺陷、边界条件或单号。"
|
|
35
|
-
},
|
|
36
|
-
"deletionTest": {
|
|
37
|
-
"en": "Replace the wrapper sentence with why the change was needed, what breaks without it, and how it was verified.",
|
|
38
|
-
"zh": "删掉套话壳,直接写出关联问题单、改动前后的具体行为差异及验证方法。"
|
|
39
|
-
},
|
|
40
|
-
"exemplar": {
|
|
41
|
-
"bad": "本次 PR 旨在通过重构连接池管理逻辑进一步提升系统的稳定性与可维护性。",
|
|
42
|
-
"trap": "这不是一次普通的代码重构,而是连接池稳定性的底层重塑。",
|
|
43
|
-
"good": "修复连接池重连分支未释放旧句柄导致的连接泄漏,避免长运行后连接耗尽。",
|
|
44
|
-
"note": {
|
|
45
|
-
"en": "Name the concrete leak trigger and consequence instead of generic stability claims.",
|
|
46
|
-
"zh": "点明具体的泄漏触发分支与直接后果,不写空泛的稳定性套话。"
|
|
47
|
-
},
|
|
48
|
-
"source": "original"
|
|
49
|
-
},
|
|
50
|
-
"fixtures": {
|
|
51
|
-
"hit": [
|
|
52
|
-
"This PR updates the retry middleware to ensure a more seamless and resilient developer experience",
|
|
53
|
-
"本次 PR 旨在通过优化任务调度模块进一步提升整体系统的可维护性"
|
|
54
|
-
],
|
|
55
|
-
"clean": [
|
|
56
|
-
"This PR fixes #412 by capping exponential backoff at 8s when upstream returns HTTP 503.",
|
|
57
|
-
"本次提交在超时分支补齐文件句柄释放逻辑,单机压测 FD 占用稳定在 180 以内。"
|
|
58
|
-
]
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
"id": "eng-shallow-root-cause",
|
|
63
|
-
"tier": "taste",
|
|
64
|
-
"severity": "warning",
|
|
65
|
-
"family": "evidence/root-cause",
|
|
66
|
-
"probe": "regex",
|
|
67
|
-
"zones": ["prose"],
|
|
68
|
-
"modalities": ["markdown", "text", "docx"],
|
|
69
|
-
"patterns": [
|
|
70
|
-
"(?:Root\\s+[Cc]ause|Primary\\s+[Cc]ause)\\s*[::]\\s*(?:human\\s+error|developer\\s+(?:error|mistake|oversight)|manual\\s+mistake|operator\\s+error|lack\\s+of\\s+attention)(?:\\s*[.!\\n]|$)",
|
|
71
|
-
"(?:根本原因|根因(?:分析)?|直接原因)\\s*[::]\\s*(?:人为(?:失误|疏忽|操作不当)|研发(?:疏忽|粗心)|操作失误|人员意识不到位)(?:\\s*[。!?\\n]|$)"
|
|
72
|
-
],
|
|
73
|
-
"message": {
|
|
74
|
-
"en": "Postmortem stops at 'human error' instead of identifying the missing system guardrail.",
|
|
75
|
-
"zh": "故障复盘停在“人为失误/操作不当”,没有追查缺失的系统校验或防呆机制。"
|
|
76
|
-
},
|
|
77
|
-
"deletionTest": {
|
|
78
|
-
"en": "Ask why the tooling allowed a single manual action to cause an outage, and write that missing check as the root cause.",
|
|
79
|
-
"zh": "追问“为什么发布或运维工具允许一次手误直接打挂线上”,把缺失的自动拦截写成根因。"
|
|
80
|
-
},
|
|
81
|
-
"exemplar": {
|
|
82
|
-
"bad": "根本原因:人为失误。",
|
|
83
|
-
"trap": "根本原因:值班人员风险意识有待进一步强化。",
|
|
84
|
-
"good": "根本原因:生产迁移脚本缺少库名白名单与行数上限预检,未拦截误指向主库的删除语句。",
|
|
85
|
-
"note": {
|
|
86
|
-
"en": "Point to the missing preflight check in the migration script rather than blaming the operator.",
|
|
87
|
-
"zh": "指出脚本缺失的白名单与预检机制,而非归咎个人粗心。"
|
|
88
|
-
},
|
|
89
|
-
"source": "original"
|
|
90
|
-
},
|
|
91
|
-
"fixtures": {
|
|
92
|
-
"hit": [
|
|
93
|
-
"Root cause: human error.",
|
|
94
|
-
"根本原因:人为操作不当。"
|
|
95
|
-
],
|
|
96
|
-
"clean": [
|
|
97
|
-
"Root cause: deploy runner skipped schema validation when `--fast` was set.",
|
|
98
|
-
"根本原因:灰度发布流水线未配置 5xx 超过 1% 自动回滚阈值。"
|
|
99
|
-
]
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
"id": "eng-vague-action-item",
|
|
104
|
-
"tier": "taste",
|
|
105
|
-
"severity": "info",
|
|
106
|
-
"family": "evidence/actionability",
|
|
107
|
-
"probe": "regex",
|
|
108
|
-
"zones": ["prose"],
|
|
109
|
-
"modalities": ["markdown", "text", "docx"],
|
|
110
|
-
"patterns": [
|
|
111
|
-
"(?:^|\\n)\\s*(?:[-*]|\\d+\\.)\\s*(?:\\[[ xX]\\]\\s*)?(?:Add\\s+more\\s+(?:monitoring|logging|tests)|Improve\\s+(?:test\\s+coverage|error\\s+handling|documentation)|Be\\s+more\\s+careful(?:\\s+during\\s+deploys?)?|Continue\\s+to\\s+monitor(?:\\s+the\\s+situation)?)\\s*[.!]?(?=\\n|$)",
|
|
112
|
-
"(?:^|\\n)\\s*(?:[-*]|\\d+[.、])\\s*(?:\\[[ xX]\\]\\s*)?(?:加强(?:监控(?:与告警)?|测试覆盖|代码审查|风险意识)|完善(?:监控体系|日志记录|相关文档)|后续持续(?:关注|观察|跟进)|提高(?:研发质量|值班警惕性))\\s*[。!]?(?=\\n|$)"
|
|
113
|
-
],
|
|
114
|
-
"message": {
|
|
115
|
-
"en": "Wishful action item lacks a concrete target component, threshold, owner, or due date.",
|
|
116
|
-
"zh": "许愿式改进项(如“加强监控”“提高警惕”)缺少具体模块、阈值、负责人或截止时间,无法验收。"
|
|
117
|
-
},
|
|
118
|
-
"deletionTest": {
|
|
119
|
-
"en": "Rewrite as a binary-verifiable ticket: which service, what threshold or test case, who owns it, and by what date.",
|
|
120
|
-
"zh": "改成可验收的具体动作:给哪个服务加什么阈值告警或单测、谁负责、哪天上线。"
|
|
121
|
-
},
|
|
122
|
-
"exemplar": {
|
|
123
|
-
"bad": "- [ ] 加强监控与告警。",
|
|
124
|
-
"trap": "- [ ] 全面排查并持续跟进线上隐患。",
|
|
125
|
-
"good": "- [ ] 给 `checkout-api` 增加 P99 > 400ms 持续 3 分钟告警并接入值班群(负责人:李工,11 月 30 日前完成)。",
|
|
126
|
-
"note": {
|
|
127
|
-
"en": "Specify service, metric threshold, window, owner, and deadline.",
|
|
128
|
-
"zh": "写清服务名、延迟阈值、持续窗口、负责人与完成日期。"
|
|
129
|
-
},
|
|
130
|
-
"source": "original"
|
|
131
|
-
},
|
|
132
|
-
"fixtures": {
|
|
133
|
-
"hit": [
|
|
134
|
-
"- [ ] Add more monitoring.",
|
|
135
|
-
"- 加强监控与告警"
|
|
136
|
-
],
|
|
137
|
-
"clean": [
|
|
138
|
-
"- [ ] Add P99 > 400ms alert on `checkout-api` (@payments-oncall, due 2026-11-30).",
|
|
139
|
-
"- [ ] 为结算队列增加积压超过 5000 条自动告警(王工,周五前合入)。"
|
|
140
|
-
]
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
]
|
|
144
|
-
}
|
|
@@ -1,98 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,344 +0,0 @@
|
|
|
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
|
-
"registerOverrides": {
|
|
121
|
-
"argumentative": {
|
|
122
|
-
"severity": "info",
|
|
123
|
-
"message": {
|
|
124
|
-
"en": "Dialectic 'Not X, but Y' contrast is a valid rhetorical move in argumentative writing; keep it if Y carries a real premise or bound, not an empty slogan.",
|
|
125
|
-
"zh": "议论文中“不是 A,而是 B”常用于立论辨析;只要 B 给出真实前提、界定或论据即可保留,仅删空洞口号式对仗。"
|
|
126
|
-
},
|
|
127
|
-
"deletionTest": {
|
|
128
|
-
"en": "Check whether clause B states an explicit premise, boundary, or piece of evidence rather than a vague slogan.",
|
|
129
|
-
"zh": "确认“而是 B”是否给出了明确前提、概念边界或事实论据,而非拔高口号。"
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
},
|
|
133
|
-
"exemplar": {
|
|
134
|
-
"bad": "老周留下的那把旧刨子不是工具,而是手艺人的尊严。",
|
|
135
|
-
"trap": "一把旧刨子。半生木工活。满手老茧。",
|
|
136
|
-
"good": "老周退休那天把用了二十年的旧刨子擦净木屑,收进樟木箱底。",
|
|
137
|
-
"note": {
|
|
138
|
-
"en": "Show how the plane was cared for instead of declaring it a symbol.",
|
|
139
|
-
"zh": "写出擦拭收纳旧刨子的动作,不贴“尊严”标签。"
|
|
140
|
-
},
|
|
141
|
-
"source": "original"
|
|
142
|
-
},
|
|
143
|
-
"fixtures": {
|
|
144
|
-
"hit": [
|
|
145
|
-
"那盏台灯不是照明器具,而是深夜里的陪伴。",
|
|
146
|
-
"It wasn't just rain — it was a reckoning.",
|
|
147
|
-
"His grandfather's hand plane wasn't just a tool — it was a quiet testament to patience."
|
|
148
|
-
],
|
|
149
|
-
"clean": [
|
|
150
|
-
"那班绿皮车停靠的不是三号站台,而是最北边的五号货运站台。",
|
|
151
|
-
"He ordered tea, not coffee, and waited by the window."
|
|
152
|
-
],
|
|
153
|
-
"register": [
|
|
154
|
-
{
|
|
155
|
-
"register": "argumentative",
|
|
156
|
-
"text": "那盏台灯不是照明器具,而是深夜里的陪伴。",
|
|
157
|
-
"expect": "info"
|
|
158
|
-
}
|
|
159
|
-
]
|
|
160
|
-
}
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
"id": "excessive-em-dash-density",
|
|
164
|
-
"tier": "taste",
|
|
165
|
-
"severity": "info",
|
|
166
|
-
"family": "punctuation/em-dash",
|
|
167
|
-
"probe": "em-dash-density",
|
|
168
|
-
"zones": ["prose"],
|
|
169
|
-
"modalities": ["markdown", "text", "html", "docx"],
|
|
170
|
-
"message": {
|
|
171
|
-
"en": "High em-dash (`—` / `——`) frequency creates breathless LLM parenthetical rhythm.",
|
|
172
|
-
"zh": "破折号(`—` / `——`)密度过高,形成典型生成式插话腔。"
|
|
173
|
-
},
|
|
174
|
-
"deletionTest": {
|
|
175
|
-
"en": "Convert most parenthetical dashes into commas or periods; save a single dash for a genuine turn.",
|
|
176
|
-
"zh": "将多数插话破折号改为逗号或句号,只在真正语意陡转处保留一处破折号。"
|
|
177
|
-
},
|
|
178
|
-
"exemplar": {
|
|
179
|
-
"bad": "The station clock — brass-rimmed — stopped at 4:10 — right before the snow — while three passengers — coats buttoned — waited outside.",
|
|
180
|
-
"trap": "Brass clock. 4:10 sharp. Snow falling. Three passengers waiting.",
|
|
181
|
-
"good": "The brass-rimmed station clock stopped at 4:10, right before the snow, while three passengers waited outside in buttoned coats.",
|
|
182
|
-
"note": {
|
|
183
|
-
"en": "Chinese double half-em `——` counts as one dash; only sustained saturation (> 4 per 300 words) triggers.",
|
|
184
|
-
"zh": "中文规范破折号 `——` 按单次计数,仅在单段高密度堆叠时提示。"
|
|
185
|
-
},
|
|
186
|
-
"source": "original"
|
|
187
|
-
},
|
|
188
|
-
"fixtures": {
|
|
189
|
-
"hit": [
|
|
190
|
-
"One — two — three — four — five — six dashes in twelve words."
|
|
191
|
-
],
|
|
192
|
-
"clean": [
|
|
193
|
-
"他推开木门——屋里炉火还没灭,壶水正冒着白气。",
|
|
194
|
-
"The train arrived eight minutes late — unusual for Tuesday mornings."
|
|
195
|
-
]
|
|
196
|
-
}
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
"id": "zh-halfwidth-punctuation",
|
|
200
|
-
"tier": "taste",
|
|
201
|
-
"severity": "warning",
|
|
202
|
-
"family": "punctuation/zh-halfwidth",
|
|
203
|
-
"probe": "zh-halfwidth-punctuation",
|
|
204
|
-
"zones": ["prose"],
|
|
205
|
-
"modalities": ["markdown", "text", "html", "docx"],
|
|
206
|
-
"message": {
|
|
207
|
-
"en": "Half-width ASCII punctuation (`,;:!?`) wedged directly between Chinese characters.",
|
|
208
|
-
"zh": "汉字之间混入半角西文标点(`,;:!?`),违反中文排版规范(W3C CLREQ)。"
|
|
209
|
-
},
|
|
210
|
-
"deletionTest": {
|
|
211
|
-
"en": "Replace half-width ASCII punctuation between Han characters with full-width Chinese punctuation (`,;:!?`).",
|
|
212
|
-
"zh": "将汉字之间的半角标点替换为全角中文标点(`,;:!?`)。"
|
|
213
|
-
},
|
|
214
|
-
"exemplar": {
|
|
215
|
-
"bad": "冬至那天下了初雪,院子里的腊梅开了三朵;香气一直飘到走廊。",
|
|
216
|
-
"trap": "冬至初雪。腊梅三朵。暗香盈袖。",
|
|
217
|
-
"good": "冬至那天下了初雪,院子里的腊梅开了三朵;香气一直飘到走廊。",
|
|
218
|
-
"note": {
|
|
219
|
-
"en": "Normalize punctuation width without altering wording or numbers.",
|
|
220
|
-
"zh": "仅修正标点全半角,不改动原文措辞与数量。"
|
|
221
|
-
},
|
|
222
|
-
"source": "original"
|
|
223
|
-
},
|
|
224
|
-
"fixtures": {
|
|
225
|
-
"hit": [
|
|
226
|
-
"今天天气晴朗,适合出门散步!",
|
|
227
|
-
"第一阶段已完成;第二阶段周四启动。"
|
|
228
|
-
],
|
|
229
|
-
"clean": [
|
|
230
|
-
"今天天气晴朗,适合出门散步!",
|
|
231
|
-
"请求头包含 `Accept: application/json, text/plain` 字段。"
|
|
232
|
-
]
|
|
233
|
-
}
|
|
234
|
-
},
|
|
235
|
-
{
|
|
236
|
-
"id": "literary-semicolon-tricolon",
|
|
237
|
-
"tier": "taste",
|
|
238
|
-
"severity": "warning",
|
|
239
|
-
"family": "punctuation/tricolon",
|
|
240
|
-
"probe": "semicolon-tricolon",
|
|
241
|
-
"zones": ["prose"],
|
|
242
|
-
"modalities": ["markdown", "text", "html", "docx"],
|
|
243
|
-
"message": {
|
|
244
|
-
"en": "Balanced three-part semicolon sentence turns scene description into synthetic lyrical cadence.",
|
|
245
|
-
"zh": "单句连续用两个及以上分号排比景物或情绪,带有明显的生成式散文腔。"
|
|
246
|
-
},
|
|
247
|
-
"deletionTest": {
|
|
248
|
-
"en": "Break the three-part balance into natural prose sentences and keep the one sensory detail that carries the scene.",
|
|
249
|
-
"zh": "打破工整的三段分号排比,改成长短自然的叙述句,留住最具体的一两处感官细节。"
|
|
250
|
-
},
|
|
251
|
-
"exemplar": {
|
|
252
|
-
"bad": "街道两旁的树叶逐渐染上金黄;午后的阳光变得柔和而绵长;行人的衣领也悄然立了起来。",
|
|
253
|
-
"trap": "树叶金黄。阳光柔和。衣领立起。",
|
|
254
|
-
"good": "午后阳光柔和,街道两旁的树叶已经发黄,路过的行人把衣领立了起来。",
|
|
255
|
-
"note": {
|
|
256
|
-
"en": "Two-clause sentences with a single semicolon stay clean.",
|
|
257
|
-
"zh": "只含一个分号的自然长句不会触发。"
|
|
258
|
-
},
|
|
259
|
-
"source": "original"
|
|
260
|
-
},
|
|
261
|
-
"fixtures": {
|
|
262
|
-
"hit": [
|
|
263
|
-
"Water meets freshly ground beans; steam curls toward the ceiling; the first sip steadies a scattered mind.",
|
|
264
|
-
"清晨汽笛准时响起;铁跳板压在坡道上作响;早点摊冒出细密白烟。"
|
|
265
|
-
],
|
|
266
|
-
"clean": [
|
|
267
|
-
"冬至那天下了初雪,院子里的腊梅开了三朵;傍晚六点半,修表匠把铜齿轮泡进煤油皿里。"
|
|
268
|
-
]
|
|
269
|
-
}
|
|
270
|
-
},
|
|
271
|
-
{
|
|
272
|
-
"id": "literary-rhetorical-qa",
|
|
273
|
-
"tier": "taste",
|
|
274
|
-
"severity": "warning",
|
|
275
|
-
"family": "punctuation/rhetorical-qa",
|
|
276
|
-
"probe": "rhetorical-qa-cadence",
|
|
277
|
-
"zones": ["prose"],
|
|
278
|
-
"modalities": ["markdown", "text", "html", "docx"],
|
|
279
|
-
"message": {
|
|
280
|
-
"en": "Staged self-answered rhetorical question ('Why does ...? Because ...') lectures the reader instead of showing the scene.",
|
|
281
|
-
"zh": "散文里出现自问自答式设问(“为什么……?因为……”),像主持词而非真实叙述。"
|
|
282
|
-
},
|
|
283
|
-
"deletionTest": {
|
|
284
|
-
"en": "Cut the rhetorical question and describe what actually happened in the scene.",
|
|
285
|
-
"zh": "删掉自问自答的铺陈,直接写现场发生了什么。"
|
|
286
|
-
},
|
|
287
|
-
"exemplar": {
|
|
288
|
-
"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.",
|
|
289
|
-
"trap": "Warm water. Slow pour. Quiet pause.",
|
|
290
|
-
"good": "At 6:30 a.m. he brewed a cup of pour-over coffee.",
|
|
291
|
-
"note": {
|
|
292
|
-
"en": "Keep the concrete scene from the source and cut the staged rhetorical question.",
|
|
293
|
-
"zh": "保留原句的具体动作,删掉自问自答的抒情解释。"
|
|
294
|
-
},
|
|
295
|
-
"source": "original"
|
|
296
|
-
},
|
|
297
|
-
"fixtures": {
|
|
298
|
-
"hit": [
|
|
299
|
-
"为什么秋天总能唤起内心深处的共鸣?因为微凉的风让人放慢脚步。",
|
|
300
|
-
"Why does a loaf baked at dawn taste different? Because slow fermentation rewards patience."
|
|
301
|
-
],
|
|
302
|
-
"clean": [
|
|
303
|
-
"老板娘擦着桌子问我,上次摔坏的自行车修好了没。"
|
|
304
|
-
]
|
|
305
|
-
}
|
|
306
|
-
},
|
|
307
|
-
{
|
|
308
|
-
"id": "literary-narrative-frame",
|
|
309
|
-
"tier": "taste",
|
|
310
|
-
"severity": "warning",
|
|
311
|
-
"family": "structure/narrative-frame",
|
|
312
|
-
"probe": "narrative-sandwich-frame",
|
|
313
|
-
"zones": ["prose"],
|
|
314
|
-
"modalities": ["markdown", "text", "html", "docx"],
|
|
315
|
-
"message": {
|
|
316
|
-
"en": "Sweeping era opener ('In an era defined by...') or uplifting takeaway closer wraps a personal essay in an LLM template.",
|
|
317
|
-
"zh": "以宏大时代背景起笔(“在快节奏的都市生活中……”)或未来式鸡汤收尾,给随笔套上了模板外壳。"
|
|
318
|
-
},
|
|
319
|
-
"deletionTest": {
|
|
320
|
-
"en": "Delete the opening era backdrop and the closing takeaway; start directly inside the concrete time, place, or object.",
|
|
321
|
-
"zh": "删掉开头“在当今/快节奏的时代”与结尾升华句,直接从具体时间、地点或器物写起。"
|
|
322
|
-
},
|
|
323
|
-
"exemplar": {
|
|
324
|
-
"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.",
|
|
325
|
-
"trap": "Notifications beep. Milk truck passes. Stillness stays.",
|
|
326
|
-
"good": "Before seven the street stays quiet except for the milk truck.",
|
|
327
|
-
"note": {
|
|
328
|
-
"en": "Cut the sweeping era opener and closing moral while keeping the source scene verbatim.",
|
|
329
|
-
"zh": "删掉时代大帽子与结尾说教,原样保留清晨七点前的实景。"
|
|
330
|
-
},
|
|
331
|
-
"source": "original"
|
|
332
|
-
},
|
|
333
|
-
"fixtures": {
|
|
334
|
-
"hit": [
|
|
335
|
-
"在当今信息爆炸的时代,远程办公已经成为不可逆转的趋势。未来,更加人性化的形态必将迎来广阔空间。",
|
|
336
|
-
"In an era defined by constant digital distraction, quiet bookstores matter. Moving forward, they will continue to play a vital role."
|
|
337
|
-
],
|
|
338
|
-
"clean": [
|
|
339
|
-
"十月底搬家前,我把阳台上攒了四年的旧杂志捆成六摞,叫楼下收废品的赵师傅上来搬。"
|
|
340
|
-
]
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
]
|
|
344
|
-
}
|