Using CLIPS to Understand Expert Systems and Logic Programming
Thursday, September 15, 2016 at 07:19AM
Charlie in Becoming an XBRL Master Craftsman

CLIPS is a tool for building expert systems originally developed by NASA.  Since it was first released in 1986 it has undergone significant enhancements and was put into the public domain by NASA in about 2002.  CLIPS continues to be maintained as public domain software.

Here is documentation and other information that will help get you started with CLIPS should you have the curiosity:

With that documentation above, I had a working expert system in about 4 hours.  Here you go:

(Click image for larger view)

What my first expert system does is help someone understand what reporting style a financial report needs to be based on information about the economic entity creating a financial report. It is not complete yet, but I was able to learn a lot and am off to a good start.

If you want to understand expert systems, CLIPS is an excellent investment.  Right off the bat you learn the different between a declarative programming language and a procedural language.  I explain the importance of this difference in my document Complete Introduction to Business Rules for Professional Accountants (page 7).  You will learn why business rules should be declarative, not procedural.

Another thing you learn is the difference between different programming paradigms.  Understanding logic programming helps you see that software programs can be broken into two parts: the logic component and the control component.

Why does all this matter?  It matters because it helps you understand (a) that you don't need to understand how to code to get a computer to do work for you; and (b) separating logic and control makes maintenance of things easier.

If none of this make sense to you, please read the document Comprehensive Introduction to Knowledge Engineering for Professional Accountants.

Article originally appeared on XBRL-based structured digital financial reporting (http://xbrl.squarespace.com/).
See website for complete article licensing information.