(category: str)
| 94 | if label in path.parts: |
| 95 | return path |
| 96 | return path / label |
| 97 | |
| 98 | |
| 99 | def _normalized_part_labels(path: Path) -> set[str]: |
| 100 | return {slug(part).lower() for part in path.parts if part} |
| 101 | |
| 102 | |
| 103 | def _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"}, |
no test coverage detected