Abstract Logic Writer
Overview
Use symbolic discourse constraints and a lightweight ontology to draft or critique English academic abstracts. Treat abstract writing as a constrained mapping from propositions to an ordered sentence sequence, not as free-form style imitation.
Core workflow
- 1. Build a proposition set
P = {background, status, motivation, challenge, idea, technique, evidence} from the user's notes. - Choose the shortest valid role chain whose image still contains
motivation, challenge, and idea. The default 4-5 sentence chain is M -> C -> I -> T -> E, with optional background or status prepended. - For each sentence, write a micro-structure
general -> specification -> consequence/purpose. Do not place a narrow detail before its governing concept. - Load
references/computable-rules.md as the primary specification. Load references/lexeme-typing.md and assets/lexeme_types.json when verb-noun fit is uncertain. - If the domain terminology is sparse or unstable, load
references/ontology-bootstrap.md and optionally run:
python scripts/ontology_bootstrap.py --domain "..." --terms "term a,term b" --outdir ./ontology_out
- 6. Before finalizing, run:
python scripts/abstract_lint.py draft.txt
for rule diagnostics, and run
python scripts/abstract_score.py draft.txt
or
python scripts/abstract_score.py before.txt --compare after.txt
when a formal score or pairwise comparison is needed.
Drafting discipline
- - Assign each sentence exactly one primary discourse role.
- Never output a sentence that only labels a condition without causal or purposive load. Reject patterns like
X is a challenge. unless the sentence continues with cause, consequence, or operational relevance. - When introducing a new concept
x, attach motivation, purpose, or consequence within the same sentence or an adjacent sentence. - When explaining a mechanism, state what it enables, stabilizes, reduces, or preserves.
- Prefer typed predicate selection over idiomatic guesswork. Example:
traffic grows, demand increases, applications develop, systems evolve, accuracy improves, continuity is maintained. - Avoid common AI-sounding markers. Do not use the em dash or
Unlike unless the user explicitly asks to preserve source wording. - Do not end with a generic recap sentence. The last sentence must carry evidence, operational implication, or measured outcome.
Output modes
1. Draft from notes
Return:
- 1. an optional symbolic plan when the source notes are underspecified,
- the final abstract,
- concise lint notes only when there are nontrivial tradeoffs.
2. Critique or rewrite an existing abstract
Return:
- 1. a violation list keyed to the symbolic predicates in
references/computable-rules.md, - a repaired abstract,
- the smallest possible set of lexical substitutions when the main issue is verb-noun mismatch.
3. Produce negative examples
Use references/negative-examples.md.
Generate intentionally flawed rewrites that violate one or more named predicates such as summary_only, selection_mismatch, scope_inversion, or forbidden_marker.
Label each negative example with the violated rules. Do not present it as recommended style.
Resource map
- -
README.md: GitHub-facing quick start and repository guide. - INLINECODE32 : formal sentence and discourse constraints.
- INLINECODE33 : upper ontology for noun classes and verb selection.
- INLINECODE34 : domain ontology construction and download workflow.
- INLINECODE35 : contrastive negative examples and rule tags.
- INLINECODE36 : raw domain corpus supplied by the user.
- INLINECODE37 : heuristic checker for role order, banned markers, and selection mismatches.
- INLINECODE38 : formulaic scorer and comparator for one or two abstract fragments.
- INLINECODE39 : generate a seed ontology or download a public ontology file.
- INLINECODE40 : machine-readable role order, forbidden patterns, and score weights.
- INLINECODE41 : machine-readable lexeme typing rules.
- INLINECODE42 : before-and-after fragments for quick scoring demos.
- INLINECODE43 : sample scoring outputs for repository documentation.
Working defaults
When the user does not provide all paper details, infer the missing low-risk connective tissue from the available propositions and state the assumptions briefly. Keep the prose compact, domain-accurate, and hierarchy-aware. Prioritize logical fit over rhetorical flourish.
抽象逻辑写手
概述
运用符号化话语约束和轻量级本体论,起草或评析英文学术摘要。将摘要写作视为从命题到有序句序列的约束映射,而非自由形式的风格模仿。
核心工作流
- 1. 从用户笔记中构建命题集合 P = {背景, 现状, 动机, 挑战, 思路, 技术, 证据}。
- 选择最短的有效角色链,使其像域仍包含动机、挑战和思路。默认4-5句链为 M -> C -> I -> T -> E,可选前置背景或现状。
- 每句撰写微结构总述 -> 具体说明 -> 结果/目的。切勿将细节置于其统领概念之前。
- 加载references/computable-rules.md作为主要规范。当动名词搭配不确定时,加载references/lexeme-typing.md和assets/lexeme_types.json。
- 若领域术语稀疏或不稳定,加载references/ontology-bootstrap.md,可选运行:
python scripts/ontology
bootstrap.py --domain ... --terms 术语a,术语b --outdir ./ontologyout
- 6. 定稿前运行:
python scripts/abstract_lint.py draft.txt
进行规则诊断,并在需要正式评分或成对比较时运行
python scripts/abstract_score.py draft.txt
或
python scripts/abstract_score.py before.txt --compare after.txt
起草规范
- - 每句仅分配一个主要话语角色。
- 绝不输出仅标注条件而无因果或目的负载的句子。拒绝X是一个挑战这类模式,除非句子继续说明原因、结果或操作相关性。
- 引入新概念x时,在同一句或相邻句中附带动机、目的或结果。
- 解释机制时,说明其实现、稳定、减少或维持的内容。
- 优先选用类型化谓词而非惯用猜测。示例:流量增长、需求增加、应用开发、系统演进、精度提升、连续性得以维持。
- 避免常见AI化标记。除非用户明确要求保留原文措辞,否则不使用破折号或不同于。
- 不以泛泛总结句结尾。末句必须包含证据、操作含义或可量化结果。
输出模式
1. 根据笔记起草
返回:
- 1. 当源笔记信息不足时,提供可选的符号化计划,
- 最终摘要,
- 仅在存在重要权衡时提供简洁的检查注释。
2. 评析或重写现有摘要
返回:
- 1. 对照references/computable-rules.md中的符号化谓词列出违规项,
- 修复后的摘要,
- 当主要问题是动名词不匹配时,提供最小词项替换集。
3. 生成反面示例
使用references/negative-examples.md。
生成故意有缺陷的重写,违反一个或多个命名谓词,如仅总结、选择不匹配、范围倒置或禁用标记。
为每个反面示例标注违反的规则。不得将其呈现为推荐风格。
资源映射
- - README.md:面向GitHub的快速入门和仓库指南。
- references/computable-rules.md:形式化句子和话语约束。
- references/lexeme-typing.md:名词类别和动词选择的上层本体。
- references/ontology-bootstrap.md:领域本体构建与下载工作流。
- references/negative-examples.md:对比性反面示例及规则标签。
- references/source-abstract-corpus.md:用户提供的原始领域语料库。
- scripts/abstractlint.py:角色顺序、禁用标记和选择不匹配的启发式检查器。
- scripts/abstractscore.py:一个或两个摘要片段的公式化评分器和比较器。
- scripts/ontologybootstrap.py:生成种子本体或下载公共本体文件。
- assets/discourserules.json:机器可读的角色顺序、禁用模式和评分权重。
- assets/lexeme_types.json:机器可读的词位类型规则。
- examples/:用于快速评分演示的前后对比片段。
- evals/:用于仓库文档的示例评分输出。
工作默认值
当用户未提供所有论文细节时,从已有命题推断缺失的低风险连接内容,并简要说明假设。保持行文简洁、领域准确且层次清晰。优先考虑逻辑契合而非修辞华丽。