Contract text markup language: A regularization method for extracting legal elements towards smart contracts

被引:0
|
作者
Fan Y. [1 ]
Wang D. [2 ]
Lin H. [1 ]
Chen E. [1 ]
He X. [1 ]
Zhu Y. [1 ]
机构
[1] School of Computer and Communication Engineering, University of Science and Technology Beijing, Beijing
[2] College of Control Science and Engineering, Zhejiang University, Hangzhou
关键词
code generation; domain specific language; legal informatics; markup language; smart legal contract;
D O I
10.13374/j.issn2095-9389.2023.01.13.003
中图分类号
学科分类号
摘要
The importance of smart contracts at the legal level is increasing. However, the contract is written in natural language, and the computers cannot process it directly. Thus, accurately understanding contract content and meaning representation remains challenging. This problem leads to a lack of regularization in generating smart contract programs and legal recognition and effectiveness. Therefore, it is necessary to develop a new approach to transform real-life legal contracts into smart contract programs and ensure the regularization of legal element extraction and program conversion. In this paper, we propose a contract text markup language (CTML), which is a normative computer processing language for expressing meaning in legal contracts. A method for regulating the content and meaning representation of legal contract text is established by annotating the content and meaning representation of the syntax, structure, and vocabulary in the contract using CTML to achieve the extraction and conversion of contract elements. First, a contract metamodel of CTML, which includes a three-layer “element−property−component” semantic structure and metadata markup representation, is established. Thereafter, the contract text information is gradually refined from “large to small” and “coarse to fine” to build the corresponding relationship from real-life contracts to smart legal contracts. Furthermore, the syntax of CTML is designed such that the legal elements can be extracted and regularized to form an annotated contract using CTML. Second, we designed specific conversion rules from CTML to smart legal contract language to generate smart legal contract programs by recursively abstracting syntax trees and establishing a mapping relationship. These rules help users write contracts, improve the efficiency of converting contract text to executable code, and ensure that smart legal contracts are written on solid grounds, thereby improving the conversion chain from legal contracts to executable smart contracts. In addition, considering a factoring contract as an example, we illustrated the details of semantic extraction and code generation. Accordingly, the contract semantic extraction is clearer, the conversion is more normative, and the code development is more effective. Thus, the proposed CTML provides an alternative regularization method to generate smart legal contracts. © 2024 Science Press. All rights reserved.
引用
收藏
页码:109 / 119
页数:10
相关论文
共 29 条
  • [21] ISO/IEC 14977: 1996 Information Technology—Syntactic Metalanguage—Extended BNF, (1996)
  • [22] Wile D S., Supporting the DSL spectrum, J Comput Infn Technol, 9, 4, (2001)
  • [23] Bettini L., Implementing domain-specific languages with Xtext and Xtend, (2016)
  • [24] T/CIE 095—2020 Formal Expression of Blockchain Smart Contract, (2020)
  • [25] T/CIE 129—2021 Blockchain—Smart Contract—Contract Text Markup Language (CTML), (2022)
  • [26] Chalkidis I, Androutsopoulos I, Michos A., Extracting contract elements, Proceedings of the 16th Edition of the International Conference on Articial Intelligence and Law, (2017)
  • [27] Aejas B, Bouras A, Belhi A, Et al., A review of contract entity extraction, Proceedings of Sixth International Congress on Information and Communication Technology, (2022)
  • [28] Wyner A, Peters W., Towards annotating and extracting textual legal case factors, Proceedings of the 3rd Workshop on Semantic Processing of Legal Texts (SPLeT 2010), (2010)
  • [29] Wyner A, Peters W., On Rule Extraction from Regulations, (2011)