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

Function section_focus_text

scripts/lint_grounding.py:157–165  ·  view source on GitHub ↗
(item: dict[str, Any])

Source from the content-addressed store, hash-verified

155
156
157def section_focus_text(item: dict[str, Any]) -> str:
158 fields = WRITING_CONTRACT_RULES["note_plan_depth_requirements"][
159 "required_section_focus_fields"
160 ]
161 for field in fields:
162 value = normalize_whitespace(str(item.get(field, "")))
163 if value:
164 return value
165 return ""
166
167
168def focus_is_substantive(text: str) -> bool:

Callers 1

validate_note_planFunction · 0.85

Calls 1

normalize_whitespaceFunction · 0.90

Tested by

no test coverage detected