Process a topic name by capitalizing words and handling special characters. Args: topic_name (str): The topic name to process. Returns: str: The processed topic name.
(topic_name: str)
| 209 | |
| 210 | |
| 211 | def process_topic_name(topic_name: str) -> str: |
| 212 | """ |
| 213 | Process a topic name by capitalizing words and handling special characters. |
| 214 | |
| 215 | Args: |
| 216 | topic_name (str): The topic name to process. |
| 217 | |
| 218 | Returns: |
| 219 | str: The processed topic name. |
| 220 | """ |
| 221 | words = topic_name.replace("_s_", "'s_").split("_") |
| 222 | return " ".join([word.capitalize() for word in words]) |
| 223 | |
| 224 | |
| 225 | def merge_dicts(dict1: dict, dict2: dict) -> dict: |