Proposal for additional conjunction
parameter in natural_list
function
#214
Labels
enhancement
New feature or request
conjunction
parameter in natural_list
function
#214
Thank you for the new version;
natural_list
really resolves several issues.Summary
I would like to propose an enhancement to the
natural_list
function. Currently, the output for the list[1, 2, 3]
is formatted as "1, 2 and 3". I propose adding a parameter that allows users to choose between "and" or "or" in the output.Motivation
This enhancement would provide more flexibility in how lists are presented, particularly in contexts where the choice between "and" and "or" is significant.
Proposed Changes
conjunction
) to thenatural_list
function.True
(default behavior)False
Example Usage
With the proposed change, the usage would look like this:
Another Idea
We could also consider adding
or
andand
to the i18n support for multiple languages, but I believe that should be addressed in a separate issue.I could submit the PR if there's interest, but I'm not sure if
conjunction
would be the best name for this parameter.The text was updated successfully, but these errors were encountered: