MCPcopy Create free account
hub / github.com/917Dhj/DeepPaperNote / method_section_requires_mechanism_flow

Function method_section_requires_mechanism_flow

scripts/lint_note.py:1441–1448  ·  view source on GitHub ↗
(text: str)

Source from the content-addressed store, hash-verified

1439
1440
1441def method_section_requires_mechanism_flow(text: str) -> bool:
1442 body = section_body(text, "方法主线")
1443 if not body:
1444 return False
1445 lower = body.lower()
1446 keyword_hits = sum(1 for token in METHOD_PAPER_SIGNAL_KEYWORDS if token.lower() in lower)
1447 has_formula = "$$" in body or bool(re.search(r"\$[^$\n]{4,}\$", body))
1448 return has_formula or keyword_hits >= 2
1449
1450
1451def mechanism_flow_warnings(text: str) -> list[str]:

Callers 1

mechanism_flow_warningsFunction · 0.85

Calls 1

section_bodyFunction · 0.85

Tested by

no test coverage detected