GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — example-rules-as-code/README.md at master · BetterRules/example-rules-as-code

Expand file tree

/

README.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
46 lines (32 loc) · 1.36 KB
/

README.md

Copy path

File metadata and controls

46 lines (32 loc) · 1.36 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

Example rules as code

This repo is for implementations of the made-up Australian Beard Tax (Promotion of Enlightenment Values) Act 1934.

Its purpose is to show the breadth of options in writing legislation as code, explore some of the pros and cons of different options, and to give you a starting point for encoding real legislation.

Implementations are for the following decision tree:

Do you have a beard decision tree

The legislation reads:

In this Act, beard means any facial hair no shorter than 5 millimetres in
length that:
a. occurs on or below the chin, or
b. exists in an uninterrupted line from the front of one ear to the front of
   the other ear below the nose.

How to contribute

Please add implementations of the decision trees and tests in other languages and formats.

  • Add a new folder in the root directory.
  • Create a README.md with details about how to run the code.
  • Make a pull request!

You can use the examples included in the shared directory to write tests and make sure your code passes.

CI

A YAML and Markdown linter are run on Circle CI. You can run the markdown linter locally with:

  ./.circleci/markdown

You may also like to add a job to run your tests on Circle CI by adding it to .circleci/config.yml.

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.