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
80def _keyword_resolves_to_direction(value, canonical_direction):
81 resolved = resolve_canonical_direction(str(value or "").strip(), include_paper_terms=True)
82 if resolved:
83 return resolved.get("canonical_name") == canonical_direction
84 return normalize_direction_key(value) == canonical_direction
85
86
87def _route_keyword_to_interest_direction(profile, current_keywords, raw_value, canonical_direction):
88 current_keywords[:] = [

Callers 1

Calls 3

normalize_direction_keyFunction · 0.90
getMethod · 0.80

Tested by

no test coverage detected