(value: Any, canonical_direction: str)
| 148 | |
| 149 | |
| 150 | def _keyword_resolves_to_direction(value: Any, canonical_direction: str) -> bool: |
| 151 | resolved = resolve_canonical_direction(clean_must_read_value(str(value or "")), include_paper_terms=True) |
| 152 | if resolved: |
| 153 | return resolved.get("canonical_name") == canonical_direction |
| 154 | return normalize_direction_key(value) == canonical_direction |
| 155 | |
| 156 | |
| 157 | def _route_keyword_to_interest_direction( |
no test coverage detected