Normalize topic labels for fuzzy matching.
(value: str)
| 400 | |
| 401 | |
| 402 | def normalize_topic_token(value: str) -> str: |
| 403 | """Normalize topic labels for fuzzy matching.""" |
| 404 | return re.sub(r"[\s_\-]+", "", (value or "").strip().lower()) |
| 405 | |
| 406 | |
| 407 | def get_canonical_topic_aliases(topic_key: str) -> List[str]: |
no outgoing calls
no test coverage detected