comma-list ( parts conjunction -- clause-seq )
English natural language transformations

Prev:a10n ( word -- numeronym )


Vocabulary
english

Inputs
partsa sequence
conjunctiona string


Outputs
clause-seqa sequence


Word description
Generate a comma-separated list of things, emplacing conjunction before the last part if there are two or more elements in parts.

Notes
$keep-case

Examples
USING: english io sequences ; { "a cat" "a peach" "an object" } "or" comma-list concat print
a cat, a peach, or an object


See also
a/an, ?plural-article, a10n

Definition