v0.9.0
dsh-novel-writer v0.9.0(世界观层版本)
解决「世界观在续写时难以分明」——设定表增加第五张表「世界观/用语规范」,AI 可自动判断文化基准并对照词表写作。
新增能力
- novel_settings 第五张表「世界观/用语规范」(category=worldview):
- \detect\ 动作:扫描全书自动判断文化基准(western/eastern/mixed/unknown)+ 置信度 + 证据词表(中西词表按"时代错置分类"组织:器物/称谓/计量/宗教仪式/市井风貌/服饰/食物/制度);
- 登记条目:name / basis / bannedWords(禁用词表)/ recommended(替代词映射)/ ritual(仪式规范);
- 文化基准不预设东西方,由 AI 自行判断。
- novel_continuity_check 用语风格扫描:对照 worldview 禁用词表自动扫描全书,输出「用语冲突」候选(每条带建议替换词;未登记时用默认欧式基准并提示先 detect)。
- 续写提示词:新增"世界观一致性检查"步骤。
实测(《穿越》)
- detect:\western 置信度 93%\(教堂×23 神甫×12 公爵×11 vs 老夫×3 上香×1 三炷香×1);
- 登记基准「欧式中世纪晚期」(12 禁用词/12 替代词);
- continuity 用语冲突 12 条,全部带建议替换(老夫→我、上香→点烛、时辰→钟头、婶子→厨娘…)。
参考资料(已写入 SKILL)
Medieval Wordbook(Cosman)、The Writer's Complete Fantasy Reference、Fantasy Writers Phrase Book、凌力"错用现代词汇破坏历史氛围"论。
修复
- readSettings catch 分支漏 worldview 字段(新书库无 settings 文件时崩溃)——已修,e2e 覆盖;
- README 拆分为中英双版本(README.md 中文 / README.en.md 英文,顶部语言切换链接);
- e2e 新增 worldview detect/登记/用语扫描断言,全部通过。
工具清单(13 个)
novel_books · novel_chapters · novel_read · novel_keywords · novel_new_chapter · novel_import · novel_sentence_analysis · novel_sentence_config · novel_style_check · novel_plot · novel_settings · novel_summary · novel_continuity_check
安装(npm)
dsh plugin --profile web add dsh-novel-writer