camel-snake-kebab icon indicating copy to clipboard operation
camel-snake-kebab copied to clipboard

Add Sentence case and Title Case for string output

Open AdamClements opened this issue 4 years ago • 0 comments

This is for the use-case of formatting a keyword or other symbol into something which you might show to the user in a plain sentence, addressing Feature requests #74 and #37

The main niggle here is that the naming scheme of the functions matches the output, which obviously can't contain a space. I have offered the compromise of stripping spaces from symbol names as they are unusable (though interestingly allowable).

I've also opted for simply "Sentence" and "Title", again for readability so we don't end up with e.g. ->Sentencecasesymbol. I'd be happy to update based on any feedback.

I haven't tested this on cljs, but I'm pretty sure I haven't added anything problematic there

AdamClements avatar Jun 30 '21 22:06 AdamClements