MCPcopy Create free account
hub / github.com/TaskingAI/TaskingAI / reformat_string_to_headline

Function reformat_string_to_headline

backend/app/services/ui/sample_code.py:89–94  ·  view source on GitHub ↗
(input_string)

Source from the content-addressed store, hash-verified

87
88
89def reformat_string_to_headline(input_string):
90 # Replace underscores with spaces
91 formatted_string = input_string.replace("_", " ")
92 # Capitalize the first letter of the sentence
93 formatted_string = formatted_string.capitalize()
94 return formatted_string.replace("python", "Python").replace("api", "API").replace("Api", "API")

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected