Convert an identifier to a human-readable title. Strips a leading ``speckit.`` prefix and replaces ``.``, ``-``, and ``_`` with spaces before title-casing.
(identifier: str)
| 1128 | |
| 1129 | @staticmethod |
| 1130 | def _human_title(identifier: str) -> str: |
| 1131 | """Convert an identifier to a human-readable title. |
| 1132 | |
| 1133 | Strips a leading ``speckit.`` prefix and replaces ``.``, ``-``, |
| 1134 | and ``_`` with spaces before title-casing. |
| 1135 | """ |
| 1136 | text = identifier |
| 1137 | if text.startswith("speckit."): |
| 1138 | text = text[len("speckit.") :] |
| 1139 | return text.replace(".", " ").replace("-", " ").replace("_", " ").title() |
| 1140 | |
| 1141 | |
| 1142 | @classmethod |
no outgoing calls
no test coverage detected