Repository navigation
feat(content-check): 文稿检测新增 AI 痕迹维度(AI 痕迹统计) - #229
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #228(竞品功能雷达第 6 轮选中项)
改了什么
为用 AI 辅助写作的创作者新增第四类文稿检测维度「AI 痕迹」——启发式统计,不做模型检测判定:
ai_trace_service纯函数统计三子指标——AI 高频词/套话连接词命中(逐词偏移定位,沿用敏感词 1:1 掩码+正则合同)、句式均匀度(句长变异系数 CV 分档,句数 <3 返回 insufficient)、密度(次/千字);词库ai_lexicon.json(buzzwords/connectives,_meta 记来源)。独立端点POST /content-check/ai-traces(复用登录与 20000 字上限),不动现有/sensitive响应;不并入 total——风险把关与写作建议语义不同。_highlight命中类型泛化,AI 痕迹命中用区别于风险红/黄的独立配色;stale 快照合同沿用。.agents/notes/implemented/feature/2026-11-04-content-check-ai-traces.md(词表来源、分档阈值与理由、insufficient 边界)。全程「AI 味/AI 痕迹」表述均为启发式统计口径,无「AI 率/检测概率」类暗示。
Verification(雷达第 6 轮自动跑,实施与评审分角色)
_highlight/_scan-state扩用例)新增
test_ai_traces.py253 行:词库零跳过、偏移可原文切片还原(含 emoji)、三子指标分档边界、句数不足、401/空文本 422/超长 422、万字基准耗时。