From pen to algorithm: optimizing legislation for the future with artificial intelligence | Synapse