humanize icon indicating copy to clipboard operation
humanize copied to clipboard

Feature: Natural list

Open akshaybabloo opened this issue 2 years ago • 2 comments

I was wondering if we can have a feature that converts a list to a sentence; example - ["dog", "cat", "mouse"] and convert it to Dog, Cat and Mouse.

I can add this feature if you are up for it. Thanks.

akshaybabloo avatar Mar 28 '23 01:03 akshaybabloo

Thanks for the suggestion.

That would be useful, and could be implemented along the lines of https://stackoverflow.com/a/32008908/724176

Let's leave the capitalisation out.

We could also have an input parameter to choose whether to use Oxford commas (a, b, and c) or AP style (a, b and c). And maybe to also change the "and" to "or" or something else. But let's defer those for followups if there's actual demand for it.

hugovk avatar Apr 02 '23 07:04 hugovk

Yeah that's what I have been using so far.

akshaybabloo avatar Apr 02 '23 20:04 akshaybabloo