Six styles, one sentence each
The same name takes different shapes across languages: camel case starts lowercase and capitalises later words; Pascal case capitalises every word; snake case stays lowercase with underscores; kebab case stays lowercase with hyphens and suits URLs and CSS classes; constant case is all caps with underscores; title case separates with spaces for headings. Conversion is two steps, splitting and joining: break the name at spaces, underscores, hyphens and case boundaries, then rebuild in the target style.
Steps
- Paste the names, one per line or as a block.
- Choose the target: camel, Pascal, snake, kebab, constant or title case.
- Run it and check splitting, especially names with acronyms and digits.
- Verify capitalisation of every word in the result.
- Copy it and replace globally in the code, not in one place.
- Reset for the next batch.
Boundaries, acronyms, digits
Splitting decides the outcome. An existing camel name splits on case boundaries, so userName yields two words, but a name already flattened to lowercase has lost its boundaries and cannot be restored. Acronyms need one rule: whether a run of capitals splits or stays whole differs by team, and mixing rules produces two spellings of one concept. Digits raise the same question, counting as part of a word or separate, which changes length. Check the result against language keywords, since a collision forces a rename.
Common mistakes
Converting flattened lowercase into camel leaves one run-on word. Inconsistent acronym case spreads two forms through a file. Digits glued to words hide structure. Renaming the definition only breaks references. Hyphens in code identifiers are syntax errors in several languages. And a name colliding with a keyword fails to compile.
Where renaming needs care
Project convention decides style, so never mix several in one codebase. Conversion is string handling without meaning, so proper nouns and brand spellings need human confirmation. Public APIs and database columns demand a compatibility review before renaming. Tests and docs must follow the new name. And bulk overwriting production code outside version control is never acceptable.