MCPcopy Create free account
hub / github.com/Qinbf/groundmap / fmt_implicit_relations

Function fmt_implicit_relations

scripts/k.py:2120–2131  ·  view source on GitHub ↗
(items: list[dict])

Source from the content-addressed store, hash-verified

2118
2119
2120def fmt_implicit_relations(items: list[dict]):
2121 if not items:
2122 print("✅ 没有发现隐含关系(plain wikilink 配判断/立场动词的段落都已加 RELATION)")
2123 return
2124 print(f"⚠️ 发现 {len(items)} 处隐含关系(plain wikilink + 判断动词,应改 [[?|RELATION]]):\n")
2125 print(" (判断词: " + "、".join(sorted(_IMPLICIT_RELATION_VERBS_ZH)) + ")\n")
2126 for it in items:
2127 print(f" {it['path']}:{it['line']} ({it['title']}, {it['type']})")
2128 print(f" 判断词: {', '.join(it['matched_verbs'])}")
2129 print(f" plain wikilink: {' '.join(it['plain_wikilinks'])}")
2130 print(f" 片段: {it['preview']}")
2131 print()
2132
2133
2134# ========== i18n 硬编码扫描(list-i18n-violations) ==========

Callers 1

_main_implFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected