Skip to main content

From the Language of Legislation to Executable Logic Programs

  • Chapter
  • 1052 Accesses

Part of the book series: Legisprudence Library ((LEGIS,volume 2))

Abstract

Starting in the 1980s with the British Nationality Act 1981, there have been efforts to represent legislation as executable logic programs. With such programs, the objective is to draw inferences given base facts, test alternative scenarios, check the representation (and law) for consistency, serve the legislation as web-pages on the internet, and electronically transmit the law. Early work was entirely manual. More recently, tools that use controlled natural language have been applied. Generally, such tools require that the language of the legislation is manually scoped and revised to suit a controlled language (a fixed subset of the vocabulary and grammar of the natural language), which constrains the applicability of the tools and filters out information. More recently, well-developed, large scale parsers with related logical representations have been applied to legislation, overcoming manual preprocessing. On the other hand, it requires significant post-processing analysis to check the output. In this paper, we discuss the background, state-of-the-art, problems, and future directions in the translation of natural language legislation to a formal, logical representation.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   84.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   109.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD   109.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Notes

  1. 1.

    Disclosure: Oracle Office Rules are a product of Oracle and are based on products from Haley (formerly RuleBurst, formerly SoftLaw); the author was a research partner on a project which involved Haley, and he received a training certificate in the application of the technology.

  2. 2.

    Much of this section previously appears as a subsection in Wyner (2012).

  3. 3.

    http://www.legislation.gov.uk/ukpga/1981/61/contents

  4. 4.

    A parser gives a grammatical analysis, identifying the nouns, verbs, and so on of a sentence as well as the grammatical relations such as subject and object of the verb. A semantic interpreter provides a translation of the sentence into a logic, e.g. “Some man is happy” is translated to \(\exists\) x [man(x) & happy(x)].

  5. 5.

    This section is based on Wyner and Peters (2011).

  6. 6.

    See in general: http://www.gpoaccess.gov/cfr/index.html The citation to the regulation is 21CFR610.40. Search for regulations in https://www.accessdata.fda.gov/scripts/cdrh/cfdocs/cfcfr/cfrsearch.cfm

  7. 7.

    This section is based on Wyner and van Engers (2010) and Wyner et al. (2010b).

  8. 8.

    http://attempto.ifi.uzh.ch/site/description/

  9. 9.

    We discuss several of these later. However, while most of ACE is first order, the modals (“must”, “can”, “should”, and “may”) and verbs which take a sentential complement (e.g. “say”) are not semantically interpretable.

  10. 10.

    Automated reasoning with modal logic is under active development. See http://www.cs.man.ac.uk/~schmidt/tools/ on various tools and related literature.

  11. 11.

    This section is based on Wyner et al. (2012).

  12. 12.

    With the \(\lambda\)-calculus, one can specify parts and the way the parts functionally and systematically combine.

  13. 13.

    The figure is not intended to be legible, but only to give a sense of how the analysis proceeds by layers that combine simple units to more complex units. Given the scale, the image is either too hard to read or too big to present.

  14. 14.

    A gold standard corpus is a corpus that is intended to be correct by consensus of the annotators of the texts.

  15. 15.

    For these various constructions, it is useful to look at introductory textbooks (Chierchia and McConnell-Ginet 2000).

  16. 16.

    The commas around the interjection are relevant to parsing, so added to the source text.

  17. 17.

    Respectively, http://www.akomantoso.org/ and https://www.tso.co.uk/our-expertise/case-studies/national-archives-wwwlegislationgovuk

References

  • Asher, N. 1993. Reference to abstract objects in discourse. Dordrecht/Boston: Kluwer Academic.

    Book  Google Scholar 

  • Athan, Tara, Harold Boley, Guido Governatori, Monica Palmirani, Adrian Paschke, and Adam Wyner. 2013a. Legalruleml: From metamodel to use cases – (a tutorial). In RuleML, Volume 8035 of lecture notes in computer science, ed. L. Morgenstern, P.S. Stefaneas, F. Lévy, A. Wyner, and A. Paschke, 13–18. Springer: Heidelberg.

    Google Scholar 

  • Athan, Tara, Harold Boley, Guido Governatori, Monica Palmirani, Adrian Pasckhe, and Adam Wyner. 2013b. OASIS LegalRuleML. In Proceedings of 14th international conference on artificial intelligence and law, ICAIL 2013, 3–12. Rome: ACM.

    Google Scholar 

  • Basile, Valerio, Johan Bos, Kilian Evang, and Noortje Venhuizen. 2012. A platform for collaborative semantic annotation. In Proceedings of the demonstrations at the 13th conference of the European chapter of the association for computational linguistics (EACL), Avignon, 92–96.

    Google Scholar 

  • Bench-Capon, Trevor, G.O. Robinson, Tom Routen, and Marek J. Sergot. 1987. Logic programming for large scale applications in law: A formalisation of supplementary benefit legislation. In International conference on artificial intelligence and law, Boston, 190–198.

    Google Scholar 

  • Bench-Capon, Trevor, Frans Coenen, and Paul Orton. 1993. Argument based explanation of the british nationality act as a logic program. Information and Communications Technology Law 2:53–66.

    Article  Google Scholar 

  • Bos, Johan. 2008. Wide-coverage semantic analysis with boxer. In Semantics in text processing. STEP 2008 conference proceedings, research in computational semantics, ed. J. Bos and R. Delmonte, 277–286. College Publications.

    Google Scholar 

  • Bos, Johan, Stephen Clark, Mark Steedman, James Curran, and Julia Hockenmaier. 2004. Wide–coverage semantic representations from a CCG parser. In Proceedings of the 20th international conference on computational linguistics (COLING 04), 1240–1246. Morristown: Association for Computational Linguistics.

    Chapter  Google Scholar 

  • Chierchia, Gennaro, and Sally McConnell-Ginet. 2000. Meaning and grammar: An introduction to semantics. Cambridge: MIT.

    Google Scholar 

  • Cunningham, Hamish, Diana Maynard, Kalina Bontcheva, and Valentin Tablan. 2002. GATE: A framework and graphical development environment for robust NLP tools and applications. In Proceedings of the 40th anniversary meeting of the association for computational linguistics (ACL02), Philadelphia, 168–175.

    Google Scholar 

  • Dagan, Ido, Bill Dolan, Bernardo Magnini, and Dan Roth. 2009. Recognizing textual entailment: Rational, evaluation and approaches. Natural Language Engineering 15(4). pp. i–xvii.

    Google Scholar 

  • Dayal, Surendra, Michael Harmer, Peter Johnson, and David Mead. 1993. Beyond knowledge representation: Commercial uses for legal knowledge bases. In Proceedings of the 4th international conference on artificial intelligence and law, ICAIL 93, 167–174. New York: ACM.

    Chapter  Google Scholar 

  • Dayal, Surendra, and Peter Johnson. 2000. A web-based revolution in Australian public administration. Journal of Information, Law, and Technology, 1. http://www2.warwick.ac.uk/fac/soc/law/elj/jilt/2000_1/austlii/dayal/

  • de Maat, Emile, and Radboud Winkels. 2008. Automatic classification of sentences in dutch laws. In Legal knowledge and information systems. Jurix 2008: The 21st annual conference, frontiers in artificial intelligence and applications, 207–216. IOS Press: Amsterdam.

    Google Scholar 

  • Fuchs, Norbert E., Kaarel Kaljurand, and Tobias Kuhn. 2008. Attempto controlled english for knowledge representation. In Reasoning web, Volume 5224 of lecture notes in computer science, ed. C. Baroglio, P.A. Bonatti, J. Maluszynski, M. Marchiori, A. Polleres, and S. Schaffert, 104–124. Berlin/Heidelberg: Springer.

    Google Scholar 

  • Hammond, Peter. 1983. Representation of DHSS Regulations as a Logic Program. Department of Computing: Research report DoC.

    Google Scholar 

  • Hoekstra, Rinke, Joost Breuker, Marcello Di Bello, and Alexander Boer. 2009. LKIF core: Principled ontology development for the legal domain. In Law, ontologies and the semantic web, Volume 188 of frontiers in artificial intelligence and applications, ed. J. Breuker, P. Casanovas, M.C.A. Klein, and E. Francesconi, 21–52. Amsterdam: IOS Press.

    Google Scholar 

  • Horn, Laurence, and Gregory Ward. eds. 2004. Handbook of pragmatics. Malden: Blackwell.

    Google Scholar 

  • Johnson, Peter, and David Mead. 1991. Legislative knowledge base systems for public administration: Some practical issues. In ICAIL, Oxford, 108–117.

    Google Scholar 

  • Jurafsky, Daniel, and James H. Martin. 2008. Speech and language processing, Prentice hall series in artificial intelligence, 2nd ed. Prentice Hall, Upper Saddle River: N.J.

    Google Scholar 

  • Kamp, Hans, and Uwe Reyle. 1993. From discourse to logic: Introduction to model-theoretic semantics of natural language: Formal logic and discourse representation theory. Springer, Dordrecht.

    Google Scholar 

  • Kipper, Karin, Anna Korhonen, Neville Ryant, and Martha Palmer. 2008. A large-scale classification of english verbs. Language Resources and Evaluation 42(1):21–40.

    Article  Google Scholar 

  • Lascarides, Alex, and Nicholas Asher. 2007. Segmented discourse representation theory: Dynamic semantics with discourse structure. In Computing meaning: Volume 3, ed. H. Bunt and R. Muskens, 87–124. Kluwer Academic, Dordrecht.

    Google Scholar 

  • Leith, Philip. 1982. ELI: An expert legislative consultant. In Proceedings of the IEE conference on man/machine systems UMIST, Number 212. Conference Publication. London: IEE Conference Publication.

    Google Scholar 

  • Noy, N., and D. McGuinness. 2000. Ontology development 101: A guide to creating your first ontology. Technical report, Stanford University.

    Google Scholar 

  • Pelletier, Francis, and Gregory Carlson. 1995. The generic book. Chicago: The University of Chicago Press: Chicago.

    Google Scholar 

  • Sergot, Marek. 1988. Representing legislation as logic programs. In Machine intelligence, volume 11: 209–260. Oxford: Oxford University Press.

    Google Scholar 

  • Sergot, Marek, Fariba Sadri, Robert A. Kowalski, Frank Kriwaczek, Peter Hammond, and H.T. Cory. 1986. The British Nationality Act as a logic program. Communications of the ACM 29(5):370–386.

    Google Scholar 

  • Shiffman, Richard N., George Michel, Michael Krauthammer, Norbert E. Fuchs, Kaarel Kaljurand, and Tobias Kuhn. 2010. Writing clinical practice guidelines in controlled natural language. In Proceedings of the 2009 conference on controlled natural language, CNL09, 265–280. Berlin/Heidelberg: Springer.

    Google Scholar 

  • Stamper, Ronald. 1980. LEGOL: Modelling legal rules by computer. In Computer science and law, 45–71. Cambridge: Cambridge University Press.

    Google Scholar 

  • Wyner, Adam. 2012. Commentary on–Trevor Bench-Capon, Gwen Robinson, Tom Routen, and Marek Sergot. Logic programming for large scale applications in law: a formalisation of supplementary benefit legislation. Artificial Intelligence and Law 20(3):9–10

    Google Scholar 

  • Wyner, Adam, and Rinke Hoekstra. 2012. A legal case OWL ontology with an instantiation of Popov v. Hayashi. Artificial Intelligence and Law 20(1):83–107.

    Article  Google Scholar 

  • Wyner, Adam, and Wim Peters. 2010a. Lexical semantics and expert legal knowledge towards the identification of legal case factors. In Proceedings of legal knowledge and information systems (JURIX 2010), ed. R. Winkels, 127–136. Amsterdam: IOS Press.

    Google Scholar 

  • Wyner, Adam, and Wim Peters. 2010b. Towards annotating and extracting textual legal case factors. In Proceedings of the language resources and evaluation conference workshop on semantic processing of legal texts (SPLeT 2010), 36–45. Valletta: ELRA.

    Google Scholar 

  • Wyner, Adam, and Wim Peters. 2011. On rule extraction from regulations. In Legal knowledge and information systems – JURIX 2011: The twenty-fourth annual conference, ed. K. Atkinson, 113–122. Amsterdam: IOS Press.

    Google Scholar 

  • Wyner, Adam, and Tom M. van Engers. 2010. A framework for enriched, controlled on-line discussion forums for e-government policy-making. In Electronic government and electronic participation, ed. J.-L. Chappelet, O. Glassey, M. Janssen, A. Macintosh, J. Scholl, E. Tambouris, and M. Wimmer, 357–364. Linz: Trauner Verlag.

    Google Scholar 

  • Wyner, Adam, Krasimir Angelov, Guntis Barzdins, Danica Damljanovic, Brian Davis, Norbert E. Fuchs, Stefan Hfler, Ken Jones, Kaarel Kaljurand, and Tobias Kuhn. 2010a. On controlled natural languages: Properties and prospects. In Proceedings of the 2009 conference on controlled natural language, CNL09, 281–289. Berlin/Heidelberg: Springer.

    Google Scholar 

  • Wyner, Adam, Johan Bos, Valerio Basile, and Paulo Quaresma. 2012. An empirical approach to the semantic representation of law. In Proceedings of 25th international conference on legal knowledge and information systems (JURIX 2012), 177–180. Amsterdam: IOS Press.

    Google Scholar 

  • Wyner, Adam, Tom M. van Engers, and Kiavash Bahreini. 2010b. From policy-making statements to first-order logic. In EGOVIS, Volume 6267 of lecture notes in computer science, ed. K.N. Andersen, E. Francesconi, Å. Grönlund, and T.M. van Engers, 47–61. Berlin/Heidelberg: Springer.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Adam Wyner .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2015 Springer International Publishing Switzerland

About this chapter

Cite this chapter

Wyner, A. (2015). From the Language of Legislation to Executable Logic Programs. In: Araszkiewicz, M., Płeszka, K. (eds) Logic in the Theory and Practice of Lawmaking. Legisprudence Library, vol 2. Springer, Cham. https://doi.org/10.1007/978-3-319-19575-9_15

Download citation

Publish with us

Policies and ethics