snakecase icon indicating copy to clipboard operation
snakecase copied to clipboard

Feature request: Select case for abbreviations

Open retodomax opened this issue 1 year ago • 1 comments

I would find it useful if it would be possible to convert to snake case but keep abbreviations capital letters, e.g. an additional argument which determines the capitalization of the abbreviation

snakecase::to_snake_case("Mass Flow CO2", abbreviations = "CO2")
#> mass_flow_co2
snakecase::to_snake_case("Mass Flow CO2", abbreviations = "CO2", abbreviation_case = "uppercase")
#> mass_flow_CO2

Thanks for the package!

retodomax avatar Aug 16 '24 13:08 retodomax

I would like to add my support for this request.

I especially would appreciate the ability to render abbreviations as uppercase when converting to Sentence case, which is intended for human readability like Title Case (which already has this behavior).

chihyunkim avatar Apr 10 '25 14:04 chihyunkim