Fuse shortest and enumerate
enumerate
takes a maximal length as argument, and shortest
takes a maximum number of words. They are very similar, and share a lot of their implementations.
I suggest that we fuse them so that we could ask for both limitations at the same time. That should end in Python with a single routine (I prefer shortest to enumerate) with two named parameters.
Of course some value, say -1, should allow to relax one of the constraints.