Repository navigation
Conversation
Add five checks to formalCheck, following the drafting rules for
dependent claims in the Guidelines for Patent Examination (Part II,
Chapter 2, 3.3.2) and the common "lacks antecedent basis" objection
under Patent Law Art. 26(4):
- claim-multiple (error/warn): a multiple dependent claim refers to
earlier claims in the alternative ("1或2", "1至3中任一项"), not
cumulatively ("1和2").
- claim-multiple-basis (error): a multiple dependent claim does not
refer to another multiple dependent claim (direct references only).
- claim-order (warn): dependent claims follow their own independent
claim, before the next independent claim.
- claim-reference (warn): the reference part states the claim numbers
and restates the subject. Abbreviations such as "所述的方法" pass;
"前述权利要求中任一项", a missing subject or a different subject
are reported.
- claim-antecedent (warn): "所述X" is introduced earlier in the claim
or in a claim it refers to.
Claims that cite earlier claims but belong to another category
("……的制备方法", "……在制备药物中的用途", "空调器,……实现权利要求1
所述的方法") are treated as independent claims. The checks are skipped
when claim numbering is broken, and none of them changes `exportable`.
Also fix parseClaims: "权利要求1或2", "1、2或3", "1和2", "1~3" and
"1至权利要求3" yielded only the first number or the two endpoints, so
a forward reference such as "根据权利要求1或4所述的" in claim 3 went
unreported.
The drafting prompt now states these rules.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
anticipate218
requested changes
Nov 10, 2026
anticipate218
left a comment
Owner
There was a problem hiding this comment.
感谢补充形式检查。原有 CI 已批准并通过,但独立补测发现以下可复现问题,本轮先不合并,避免引入错误的“通过”结论及首屏/导出阻塞:
- 范围端点丢失:第 51 条引用“权利要求1至权利要求60”时仅返回 1..50,遗漏 60;“权利要求2至权利要求1”返回空引用并被认作独立权利要求。请保留异常/长范围端点用于校验。
- 择一分支引用基础:1.一种装置,包括壳体;2.根据权利要求1所述装置,还包括电机;3.根据权利要求1或2所述装置,所述电机固定于壳体。第3条选择第1条时无电机,目前 antecedent=ok。
- 同前缀不同部件:“包括控制器,所述控制阀安装在进水管上”目前通过,因为只比较前两字。请避免将这种启发式判断表述为确定有引用基础。
- 英文逗号:第4条“根据权利要求1,2或3所述的装置”编号解析正确,但引用部分误报未择一及缺主题名称;换成顿号则通过。
- 混合连接词:“根据权利要求1和2或3所述的装置”目前显示“均为择一引用”。
- 性能:连续999项、每项使用“根据前述权利要求中任一项所述的装置”的约3.6万字输入,新增同步检查在本机耗时约9.7秒;需要缓存引用图或设置有明确提示的处理上限,不能阻塞预览/导出。
请补充上述反例的回归测试。保持导出能力不被启发式语义检查误阻断,并明确自动检查不能替代专业审阅。本轮没有修改你的分支或作者署名。
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.
改动
formalCheck新增五项权利要求书检查,依据《专利审查指南》第二部分第二章 3.3.2 节(从属权利要求的撰写规定)和专利法第二十六条第四款(权利要求应当清楚):修正
parseClaims的引用解析:“权利要求1或2”“1、2或3”“1和2”“1~3”原来只解析出第一个编号(“1至权利要求3”只得到两端),所以第 3 条写“根据权利要求1或4所述的”这类在后引用没有被发现撰写提示词(
INVENTION_SYSTEM)补充上述规则新增
src/claim-format.test.ts(15 项)原因
现有形式检查没有覆盖审查意见中最常见的几类权利要求书缺陷。实现上的取舍:
exportable,不拦截导出;两项“需修改”只会在已有的附图修正轮中,随其他需修改项一起交给模型验证
npm run verify(Node.js 24,Windows 11):763 项单元测试、24 项 Worker smoke、Worker mock、构建、类型检查和两次 release scan 通过🤖 Generated with Claude Code