Conversion starts by splitting text into words: camelCase boundaries (myVariable → my Variable) and runs of capitals (HTMLParser → HTML Parser) are detected, then everything splits on non-alphanumeric separators. Then:
- UPPERCASE / lowercase: the whole text, unchanged otherwise.
- Title Case: first letter of every word capitalised.
- Sentence case: the text is lowercased, then the first letter after each sentence terminator (
. ! ? …) is capitalised. - camelCase: first word lowercased, rest capitalised, joined with no separator.
- PascalCase: every word capitalised, joined with no separator.
- snake_case / kebab-case: all words lowercased, joined with
_or-.