And ChatGPT can write Picat code as well, here a re-implementation of the built-in function chunks of/2 (used in today's AoC), though it was not completely correct but the idea works. See for more on this. Impressive!