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

Function _category_labels

paperflow/roles.py:96–104  ·  view source on GitHub ↗
(category: str)

Source from the content-addressed store, hash-verified

94 if label in path.parts:
95 return path
96 return path / label
97
98
99def _normalized_part_labels(path: Path) -> set[str]:
100 return {slug(part).lower() for part in path.parts if part}
101
102
103def _category_labels(category: str) -> set[str]:
104 normalized = slug(category).lower()
105 aliases = {
106 "pdf": {"pdf", "paper", "papers"},
107 "reading_reports": {"reading-reports", "reading_reports", "reading", "reports"},

Callers 1

apply_output_scopeFunction · 0.85

Calls 2

slugFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected