Introduction One of my recent projects required automated generation of contracts for customers. Contract is a legal document of about…