{"id":203,"date":"2014-06-12T11:31:36","date_gmt":"2014-06-12T17:31:36","guid":{"rendered":"http:\/\/harrysurden.com\/wordpress\/?p=203"},"modified":"2016-06-08T12:24:25","modified_gmt":"2016-06-08T18:24:25","slug":"computable-contracts-explained-part-1","status":"publish","type":"post","link":"https:\/\/www.harrysurden.com\/wordpress\/archives\/203","title":{"rendered":"Computable Contracts Explained &#8211; Part 1"},"content":{"rendered":"<p class=\"p1\"><strong><span class=\"s1\"><i>Computable Contracts Explained &#8211; Part 1<\/i><\/span><\/strong><\/p>\n<p class=\"p1\"><i>I had the occasion to teach &#8220;<\/i><a href=\"http:\/\/papers.ssrn.com\/sol3\/papers.cfm?abstract_id=2216866\"><span class=\"s2\"><i>Computable Contracts<\/i><\/span><\/a><i>&#8221; to the\u00a0<\/i><a href=\"http:\/\/lawreg.stanford.edu\/stanford\/prereg\/CourseDetails.asp?cClschedid=+27063\"><span class=\"s2\"><i>Stanford Class on Legal Informatics<\/i><\/span><\/a><i>\u00a0recently.\u00a0 Although I <a href=\"http:\/\/papers.ssrn.com\/sol3\/papers.cfm?abstract_id=2216866\">have written about computable contracts here<\/a>, I thought I&#8217;d explain the concept\u00a0in a more accessible form.<\/i><\/p>\n<p class=\"p1\">(<a href=\"http:\/\/www.harrysurden.com\/wordpress\/archives\/230\">Part 2 of &#8220;Computable Contracts Explained&#8221; is found here<\/a>)<\/p>\n<p class=\"p1\"><span style=\"text-decoration: underline;\"><strong><span class=\"s1\">I. Overview: What is a Computable Contract?<\/span><\/strong><\/span><\/p>\n<p class=\"p1\">What is a Computable Contract? \u00a0 In brief, a computable contract is a contract that a computer can \u201cunderstand.\u201d In some instances, a computer can automatically assess whether the terms of a computable contract have been met.<\/p>\n<p class=\"p1\">How can computers understand contracts? \u00a0Here is the short answer (a more in-depth explanation appears below).\u00a0 First, the concept of a computer \u201cunderstanding\u201d a contract is largely a metaphor. \u00a0 The computer is not understanding the contract at the same deep conceptual or symbolic level as a literate person, but in a more limited sense.\u00a0 Contracting parties express their contract in the language of computers &#8211; data &#8211; which allows the computer to reliably identify the contract components and subjects.\u00a0 The parties also provide the computer with a series of rules that allow the computer to react in a sensible way that is consistent with the underlying meaning of the contractual promises.<\/p>\n<p class=\"p1\">Aren\u2019t contracts complex, abstract, and executed in environments of legal and factual uncertainty?\u00a0 Some are, but some aren\u2019t. The short answer here is that essentially, the contracts that are made\u00a0<i>computable <\/i>don\u2019t involve the abstract, difficult or relatively uncertain legal topics that tend to occupy lawyers.\u00a0 Rather (for the moment at least), computers are typically given contract terms and conditions with relatively well-defined subjects and determinable criteria that tend not to involve significant legal or factual uncertainty in the average case.<\/p>\n<p class=\"p1\">For this reason, there are limits to computable contracts:\u00a0only small subsets of contracting scenarios can be made computable. \u00a0However, it turns out that these contexts are economically significant. Not all contracts can be made computable, but importantly, <i>some can<\/i>.<\/p>\n<p class=\"p1\"><span style=\"text-decoration: underline;\"><strong><span class=\"s1\">Importance of Computable Contracts\u00a0<\/span><\/strong><\/span><\/p>\n<p class=\"p1\">There are a few reasons to pay attention to computable contracts. \u00a0 For one, they have been quietly appearing in many industries, from finance to e-commerce.\u00a0 Over the past 10 years, for instance, many\u00a0modern contracts to purchase financial instruments (e.g. equities or <a href=\"http:\/\/www.onixs.biz\/fix-dictionary\/5.0.SP2\/compBlock_DerivativeInstrument.html\">derivatives<\/a>)<a href=\"http:\/\/nstore.accenture.com\/IM\/FinancialServices\/AccentureLibrary\/data\/pdf\/cm-electronic-trading.pdf\"> have transformed from traditional to electronic, \u201cdata-oriented\u201d computable contracts<\/a>. \u00a0 Were you to examine a typical contract to purchase a standardized financial instrument these days, you would find that it <a href=\"http:\/\/en.wikipedia.org\/wiki\/Financial_Information_eXchange\">looked more like a computer database record<\/a>\u00a0(i.e. computer data), and less like lawyerly writing on a document.<\/p>\n<p class=\"p1\">Computable contracts also have new <em>properties<\/em> that traditional, English-language, paper contracts do not have.\u00a0 I will describe this in more depth in the next post, but in short, computable contracts can serve as\u00a0<i>inputs<\/i> to other computer systems.\u00a0 For instance, a risk management system at a financial firm can take computable contracts as direct inputs for analysis,\u00a0 because, unlike traditional English contracts, computable contracts are data objects themselves.<\/p>\n<p class=\"p1\"><span style=\"text-decoration: underline;\"><strong><span class=\"s1\">II. Computable Contracts in More Detail<\/span><\/strong><\/span><\/p>\n<p class=\"p1\">Having had a brief overview of computable contracts, the next few parts will discuss computable contracts in more detail.<\/p>\n<p class=\"p1\"><strong><span class=\"s1\">A. What is a Computable Contract?<\/span><\/strong><\/p>\n<p class=\"p2\"><span class=\"s3\">To understand computable contracts, it is helpful to start with a simple definition of a contract generally.\u00a0 <\/span><\/p>\n<p class=\"p2\"><span class=\"s3\">A <strong>contract<\/strong> (roughly speaking) is a<span class=\"s4\"><i><a href=\"http:\/\/dictionary.reference.com\/browse\/contract\"> promise to do something in the future, usually according to some specified terms\u00a0or conditions<\/a>,<\/i><\/span><\/span><i> with legal consequences if the promise is not performed<\/i><span class=\"s3\">. \u00a0 For example, &#8220;I\u00a0<a href=\"http:\/\/www.investopedia.com\/terms\/f\/futurescontract.asp\"><span class=\"s2\">promise to sell you 100 shares of Apple stock for $400 per share<\/span><\/a>\u00a0on January 10, 2015.&#8221;<\/span><\/p>\n<p class=\"p1\">A\u00a0<b><i><span style=\"text-decoration: underline;\">computable<\/span> contract<\/i><\/b><i>\u00a0<\/i>is a contract that has been deliberately expressed by the contracting parties in such a way that a\u00a0computer can:<\/p>\n<p class=\"p1\"><em>1) understand what the contract is about;<\/em><\/p>\n<p class=\"p1\"><em>2) determine whether or not the contract&#8217;s promises have been complied with (in some cases).<\/em><\/p>\n<p class=\"p1\">How can a computer \u201cunderstand\u201d a contract, and how can compliance legal obligations be \u201ccomputed\u201d electronically?<\/p>\n<p class=\"p1\">To understand this, it is crucial to first understand the particular <i>problems <\/i>that computable contracts were developed to address.<\/p>\n<p class=\"p1\"><!--more--><\/p>\n<p class=\"p1\"><strong><span class=\"s1\">B. The Problem: Computers Can&#8217;t Understand Typical Contracts<\/span><\/strong><\/p>\n<p class=\"p1\">The essential problem is that computers cannot understand &#8220;traditional&#8221; legal contracts as they are generally written today. \u201c<a href=\"http:\/\/www.ok.gov\/OREC\/documents\/Residential%20Sales%20(11-2013).pdf\">Traditional\u201d legal contracts<\/a> &#8211; (what most of us think of when we envision a &#8220;contract&#8221;) &#8211; are typically written in English, often in (paper or electronic) documents.<\/p>\n<p class=\"p1\">Let&#8217;s explore three reasons why computers cannot understand such traditional contracts, and how\u00a0<i>computable contracts<\/i>\u00a0can be understood as a partial workaround to some of these problems.<\/p>\n<p class=\"p1\"><strong><span class=\"s1\">Reason 1: The Natural Language Processing (NLP) Problem<\/span><\/strong><\/p>\n<p class=\"p1\">Computer scientists refer to the ordinary language that people use to communicate with one another &#8211; like English -as &#8220;<a href=\"http:\/\/en.wikipedia.org\/wiki\/Natural_language\"><span class=\"s2\">natural language<\/span><\/a>.&#8221;\u00a0 Thus, documents such as books, newspaper articles, or emails would be considered \u201cnatural language\u201d documents (as contrasted with <a href=\"http:\/\/en.wikipedia.org\/wiki\/Formal_language\">computer programs, which are not<\/a>).<\/p>\n<p class=\"p1\">A traditional contract is written in &#8220;legal English&#8221; &#8211; an impenetrable variant of ordinary English understandable largely by lawyers &#8211; containing words of legalese like &#8220;wherein&#8221; and &#8220;herein.&#8221; (\u201cSeller hereby agrees to convey to buyer\u2026\u201d). Computer scientists consider traditional contracts to be \u201cnatural language\u201d documents because they are written in ordinary language (as opposed to computer language).\u00a0 Thus, I am not intending to complement legalese by referring to it as \u201cnatural.\u201d Rather, it is only considered natural\u00a0 in comparison to the mathematically <a href=\"http:\/\/en.wikipedia.org\/wiki\/Formal_language\"><i>formal<\/i> <i>languages<\/i> used to program computers<\/a>.<\/p>\n<p class=\"p1\">The branch of computer science research devoted to the computer-based understanding of natural language documents like books, newspaper, articles, or legal contracts known\u00a0<a href=\"http:\/\/en.wikipedia.org\/wiki\/Natural_language_processing\">as \u201cnatural language processing\u201d (NLP)<\/a>.<\/p>\n<p class=\"p1\">The problem is that contemporary computers are not nearly as good at people as understanding natural language documents.\u00a0 <a href=\"http:\/\/www-nlp.stanford.edu\/research.shtml\">While there have been great strides in computer-based natural language processing<\/a>, computers still fall far short in terms of processing the structure and understanding the meaning of even simple sentences, let alone complex documents like contracts, as compared to literate people.<\/p>\n<p class=\"p1\">Let\u2019s take an example of where contemporary computers might fall short compared to people. Natural language documents such as contracts tend to be relatively unstructured in the sense that natural language allows for multiple ways of expressing the same idea.\u00a0 People writing contracts, in other words, are not limited to one, and only one, choice of words to convey a concept.<\/p>\n<p class=\"p1\">For instance, imagine a contract provision that simply identifies the buyer and the seller.\u00a0 An attorney crafting this provision might chose among any of the following, relatively comparable formulations:\u00a0 &#8220;John, the seller, promises to sell to Sally, the buyer\u201d\u00a0 or &#8220;Sally, hereby referred to\u00a0as the &#8216;buyer\u2019\u201d, and \u201cJohn\u201d, hereby referred to as the \u201cseller.\u201d \u00a0 We imagine that a literate person could probably read either of these provisions and reliably understand who is the buyer and who is the seller. \u00a0 However, these\u00a0are just two variants of this concept. Natural language permits hundreds or thousands more, logically comparable formulations of the same simple concept, and people generally have little trouble understanding these variants.<\/p>\n<p class=\"p1\">However, even a simple variant in such natural language formulation might trip up a computer as compared to a person. Computers can make errors in reading even such simple natural language texts &#8211; missing contextual clues &#8211; and making basic errors that would be trivial for a literate person to determine. \u00a0Even relatively basic shifts in language (&#8220;John agrees to sell to Sally&#8221; or &#8220;Sally, hereby referred to\u00a0as the \u2018purchaser\u2019\u201d) might confuse a computer given the wide flexibility and variability\u00a0of natural language. \u00a0 Thus, it might prove to be a significant hurdle for a computer to reliably perform a basic task, such as simply identifying the buyer or the seller in an arbitrary natural-language contract,\u00a0given the unstructured and flexible\u00a0nature of natural language. \u00a0This is a task that would be trivial for an attorney.<\/p>\n<p class=\"p1\">If such simple parsing problems are hard for computers, you can imagine that\u00a0the more advanced\u00a0problems of understanding complex contract\u00a0provisions, or understanding\u00a0the meaning and nuance in contract language, are harder still.<\/p>\n<p class=\"p1\">Thus, while\u00a0there have been\u00a0<a href=\"http:\/\/breakthroughanalysis.com\/2013\/03\/04\/all-about-natural-language-processing\/\"><span class=\"s2\">huge advances in automated natural language processing by computers<\/span><\/a>\u00a0over the last 15 years, a computer can still not read an ordinary legal-English contract and understand its contents (who is promising what to whom) with the accuracy and understanding of a similarly situated attorney.<\/p>\n<p class=\"p1\"><strong><span class=\"s1\">Reason 2:\u00a0Contract Terms Involving Discretion and Abstraction<\/span><\/strong><\/p>\n<p class=\"p1\">The second reason that contemporary computers cannot understand a typical \u201ctraditional\u201d contract has to do with the meanings of contract terms themselves. \u00a0 Contracts often contain terms that are abstract or involve discretion such as &#8220;best efforts&#8221; or &#8220;material&#8221; or &#8220;reasonable.&#8221; \u00a0In many contracting scenarios, these discretionary or abstract terms pose little problems for people\u00a0that work together in long-term business relationships in determining\u00a0what is or is not &#8220;reasonable&#8221; or &#8220;material&#8221; to a contract promise (e.g. \u201c<a href=\"http:\/\/heinonline.org\/HOL\/LandingPage?handle=hein.journals\/illlr72&div=46&id=&page=\">relational contracts<\/a>\u201d).\u00a0 However, rules-based computers tend to have difficulty assessing and applying words of discretion and subjectivity.<\/p>\n<p class=\"p1\">Similarly, many contract provisions are highly abstract in nature.\u00a0 For instance, contracts often contain a basic provision a \u201cmerger clause\u201d, which essentially says, \u201cThis documents is the complete\u00a0and only and final agreement &#8211; any other pieces of paper other than this should not be considered part of this contract.\u201d In other words: if its not in this document, the parties are not agreeing to it. \u00a0 This is a fairly simple idea for a person to understand, but it is incredibly abstract.\u00a0 How does one convey such abstract ideas such as &#8220;other documents&#8221; and &#8220;other promises&#8221;\u00a0to a computer?\u00a0 The answer is &#8211; it is hard to do so today.<\/p>\n<p class=\"p1\">Thus, our second\u00a0problem is that computers are not as good at people at working with words of discretion or abstraction that often appear in complex contracts.\u00a0 We can imagine a scenario in which every person agrees that something is reasonable, or material, but that a computer would not be able understand or process this due to the abstraction. \u00a0To the extent that contracts contain such terms, a computer would not be able to handle them adroitly.<\/p>\n<p class=\"p1\"><strong><span class=\"s1\">Reason 3 &#8211; Legal Uncertainty<\/span><\/strong><\/p>\n<p class=\"p1\">The third reason that computers cannot easily assess a typical contract has to due with uncertainty.\u00a0 In part, performance with a contract involves looking at what was promised, and then seeing whether or not what was promised, actually happened.<\/p>\n<p class=\"p1\">As lawyers know, there can be a lot of uncertainty in determining compliance with contract obligations or other legal obligations. \u00a0 There may be uncertainty about the governing law, about what specific terms mean or do or do not cover, or external obligations imposed by law, etc.\u00a0 Similarly, there may be uncertainty about the facts. \u00a0A contract often involves some activity that either did or did not happen in the world. \u00a0However, in many cases, the answer to whether the activity happened according to the contract may not be black and white: there may be uncertainty about what did happen, differing opinions about quality, or good excuses for not performing, etc.<\/p>\n<p class=\"p1\">Such legal and factual uncertainty is hard enough for lawyers, let alone computers, which often can be stymied in environments of uncertainty.<\/p>\n<p class=\"p1\"><strong><span class=\"s1\">Computer-Understandable Contracts Impossible<\/span>?<\/strong><\/p>\n<p class=\"p1\">Given these technological and legal impediments, it might seem that it would be impossible for contemporary computers to understand contracts and automatically assess compliance with their promises.<\/p>\n<p class=\"p1\">However, there is an approach to automating certain contracts, provided it is done in the appropriate context &#8211; and that is the <strong><span style=\"text-decoration: underline;\">computable contracting<\/span><\/strong> approach.<\/p>\n<p class=\"p1\">(<a href=\"http:\/\/www.harrysurden.com\/wordpress\/archives\/230\">Part 2 of &#8220;Computable Contracts Explained&#8221; is found here<\/a>)<\/p>\n<p class=\"p1\">Because of the length, I am splitting this explanation into two posts (appearing in the next day or so).\u00a0 The next post will discuss the <b>computable contracting approach, how it actually works, its limits, and how it can be understood as a partial solution<\/b> to the three problems just described.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Computable Contracts Explained &#8211; Part 1 I had the occasion to teach &#8220;Computable Contracts&#8221; to the\u00a0Stanford Class on Legal Informatics\u00a0recently.\u00a0 Although I have written about computable contracts here, I thought I&#8217;d explain the concept\u00a0in a more accessible form. (Part 2 of &#8220;Computable Contracts Explained&#8221; is found here) I. Overview: What is a Computable Contract? What [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.harrysurden.com\/wordpress\/wp-json\/wp\/v2\/posts\/203"}],"collection":[{"href":"https:\/\/www.harrysurden.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.harrysurden.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.harrysurden.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.harrysurden.com\/wordpress\/wp-json\/wp\/v2\/comments?post=203"}],"version-history":[{"count":10,"href":"https:\/\/www.harrysurden.com\/wordpress\/wp-json\/wp\/v2\/posts\/203\/revisions"}],"predecessor-version":[{"id":748,"href":"https:\/\/www.harrysurden.com\/wordpress\/wp-json\/wp\/v2\/posts\/203\/revisions\/748"}],"wp:attachment":[{"href":"https:\/\/www.harrysurden.com\/wordpress\/wp-json\/wp\/v2\/media?parent=203"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.harrysurden.com\/wordpress\/wp-json\/wp\/v2\/categories?post=203"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.harrysurden.com\/wordpress\/wp-json\/wp\/v2\/tags?post=203"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}