The growth of legislation and the demand for systems for automation of tasks has increased the demand for software development, so that we have greater assertiveness and speed in the reading and interpretation of laws in legal activities. Currently, written legislation must be interpreted by an analyst to be encoded in computer programs later, which is often error-prone. In this context, with the popularization of cryptocurrencies, interest was aroused for the use of Blockchain in the legal area. In particular, the use of smart contracts can house business rules in legislation and automate block control. Still, fast, quality code writing can benefit from the use of natural language processing (NLP) to help developers. After revisiting the state-of-the-art, it is perceived that there are no works that unite intelligent contracts and natural language processing in the context of the analysis of legislation. This work presents a computational model to generate intelligent codes from the analysis of legislation, using NLP and Blockchain for such a procedure. The practical and scientific contribution is pertinent for the law to be interpreted in the correct way and in accordance with the latest updates. Also, a prototype and initial tests are presented, which are encouraging and show the relevance of the research theme.