(item: dict[str, Any])
| 155 | |
| 156 | |
| 157 | def 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 | |
| 168 | def focus_is_substantive(text: str) -> bool: |
no test coverage detected