The proposed shortcode (trimmed here).
The shortcodes it must not collide with.
The entry kind, for the message (e.g. "body part").
Where uniqueness applies, for the message (e.g. "this body").
A human-readable rejection reason, or undefined if it is valid.
Validate a body-entry shortcode against its siblings' shortcodes.
The shortcode must be non-blank, use only
[\w-]characters, and not collide with any ofexisting.nounnames the entry kind ("body part" / "body location") andscopenames where uniqueness is required ("this body" / "this part") so the rejection message reads naturally.Pure and Foundry-free.