0.19
No release in over a year
A forward-chaining rule engine in pure Ruby.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.10
~> 3.1
~> 12.3
 Project Readme

Wongi::Engine

Gem Build Status

ko-fi

This is a pure-Ruby forward-chaining rule engine based on the classic Rete algorithm.

Ruby >= 2.7 and JRuby are supported. Rubinius should work but isn't actively supported.

Documentation

There is no API documentation, as most of the library's interfaces are for internal use only and would not be safe to use directly.

Instead, follow the tutorial and stick to the constructs described in it.

Upgrading

Until there is a 1.0 release, all minor versions should be treated as potentially breaking.

Always test your rules extensively. There's always a chance of you finding a bug in the engine that is only triggered by a very specific rule configuration.

Feature annoucements

Open discussions

Acknowledgements

The Rete implementation in this library largely follows the outline presented in [Doorenbos, 1995].