<commit_before>[![Build Status](https://travis-ci.org/C2FO/nools.png)](https://travis-ci.org/C2FO/nools)

[![browser support](https://ci.testling.com/C2FO/nools.png)](https://ci.testling.com/C2FO/nools)

# Nools

Nools is a [rete](http://en.wikipedia.org/wiki/Rete_algorithm) based rules engine written entirely in javascript.

# Installation

```
npm install nools
```
Or [download the source](https://raw.github.com/C2FO/nools/master/nools.js) ([minified](https://raw.github.com/C2FO/nools/master/nools.min.js))


# Usage

   * Flows
    * [Defining A Flow](#flow)
    * [Sessions](#session)
    * [Facts](#facts)
        * [Assert](#facts-assert)
        * [Retract](#facts-retract)
        * [Modify](#facts-modify)<commit_msg>Added Gitter badge<commit_after>[![Build Status](https://travis-ci.org/C2FO/nools.png)](https://travis-ci.org/C2FO/nools)

[![browser support](https://ci.testling.com/C2FO/nools.png)](https://ci.testling.com/C2FO/nools)

# Nools

[![Join the chat at https://gitter.im/C2FO/nools](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/C2FO/nools?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

Nools is a [rete](http://en.wikipedia.org/wiki/Rete_algorithm) based rules engine written entirely in javascript.

# Installation

```
npm install nools
```
Or [download the source](https://raw.github.com/C2FO/nools/master/nools.js) ([minified](https://raw.github.com/C2FO/nools/master/nools.min.js))


# Usage

   * Flows
    * [Defining A Flow](#flow)
    * [Sessions](#session)
    * [Facts](#facts)
        * [Assert](#facts-assert)
        * [Retract](#facts-retract)
        * [Modify](#facts-modify)
{'fraction_non_alphanumeric': 0.1945945945945946, 'fraction_numerical': 0.00960960960960961, 'mean_word_length': 4.173913043478261, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 15, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6105610', 'n_tokens_mistral': 677, 'n_tokens_neox': 631, 'n_words': 76}