How one name becomes eleven: splitting words before joining them
Every naming style is the same list of words with a different glue. snake_case glues with an underscore, kebab-case with a hyphen, dot.case with a dot, and camelCase glues with nothing but marks each new word with a capital. So the real work in a case converter is not the joining, it is finding the words in the first place, especially when the input is already an identifier in some other style.
Take parseHTTPResponse body. Spaces and punctuation are easy breaks, which gives two chunks: parseHTTPResponse and body. Inside the first chunk the converter looks for two kinds of hump. A lower-case letter followed by a capital starts a new word, which splits parse from HTTP. A run of capitals followed by a capital and a lower-case letter means the last capital belongs to the next word, which splits HTTP from Response. The words are parse, HTTP, Response and body.
Now the glue. Lower-case every word and join with underscores and you get parse_http_response_body. Use hyphens for parse-http-response-body, dots for parse.http.response.body, slashes for parse/http/response/body. Upper-case the words for PARSE_HTTP_RESPONSE_BODY. For camelCase the first word stays lower and every later word gets one capital: parseHttpResponseBody. PascalCase capitalises the first word too: ParseHttpResponseBody. Type the same phrase in the box above and you will see exactly these.
Notice what happened to HTTP. It went in as four capitals and came out as Http. That is deliberate and matches most style guides, including Google’s for Java and the common JavaScript ones, because a name like parseHTTPResponse cannot be split back into words reliably. But if your project writes acronyms in full capitals, you will need to fix those by hand.
The prose styles work differently and are worth being plain about. Title Case, Sentence case, UPPERCASE and lowercase do not look for humps at all. They keep your spacing and punctuation and change letters only, so Title Case of parseHTTPResponse body is Parsehttpresponse Body, which is probably not what you wanted. Title Case also keeps small words such as a, of, the and to in lower case unless they start or end the line, a common rule but not the only one: some style books also lower-case longer prepositions. Sentence case lower-cases everything, then capitalises the first letter of each sentence and the word I, so proper nouns like London need a capital put back. Finally, each line is converted separately, which is what you want for a list of names and why a paragraph keeps its line breaks.