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 — GitHub - BetterRules/example-rules-as-code: Example rules as code implementations

BranchesTags
Open more actions menu

Latest commit

 

History

51 Commits
51 Commits

Folders and files

NameName
Last commit message
Last commit date
.circleci
.circleci
 
 
blawx
blawx
 
 
doc
doc
 
 
json-logic
json-logic
 
 
python-authorityspoke
python-authorityspoke
 
 
python
python
 
 
ruby
ruby
 
 
shared
shared
 
 
.gitignore
.gitignore
 
 
.markdownlint.json
.markdownlint.json
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
legislation.pdf
legislation.pdf
 
 

Repository files navigation

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.

About

Example rules as code implementations

Resources

Readme
MIT license
Activity
Custom properties

Stars

15 stars

Watchers

8 watching

Forks

2 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — 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.