You don’t even need AI for this, a very simple easy to audit algorithm could take care of it.
Hell, have it generate a few dozen versions that are all approximately as good, and let representatives (or even better, the actual people) vote on which to use