MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / _keyword_resolves_to_direction

Function _keyword_resolves_to_direction

scripts/add_must_read.py:81–85  ·  view source on GitHub ↗
(value, canonical_direction)

Source from the content-addressed store, hash-verified

79
80
81def _keyword_resolves_to_direction(value, canonical_direction):
82 resolved = resolve_canonical_direction(str(value or "").strip(), include_paper_terms=True)
83 if resolved:
84 return resolved.get("canonical_name") == canonical_direction
85 return normalize_direction_key(value) == canonical_direction
86
87
88def _route_keyword_to_interest_direction(profile, current_keywords, raw_value, canonical_direction):

Callers 1

Calls 3

normalize_direction_keyFunction · 0.90
getMethod · 0.80

Tested by

no test coverage detected