rule_engine

PolicrBot's rules engine
HEAD Latest release Yanked release released

This repo seems to be no longer available at policr-community/rule_engine.

Git synchronization failed . Last successful sync was .

Help find it again! … or have it archived.

Rule Engine

Simple keyword matching engine

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      rule_engine:
        github: policr-project/rule_engine
    
  2. Run shards install

Usage

require "rule_engine"

rule = RuleEngine.compile! "[柬埔寨|东南亚 菠菜|博彩 招聘|微信]"

rule.match? "东南亚招聘菠菜"  # => true
rule.match? "柬埔寨博彩加微信" # => true

Contributing

  1. Fork it (https://github.com/policr-project/rule_engine/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

rule_engine:
  github: policr-community/rule_engine
  
License MIT
Crystal 0.30.1

Authors

Dependencies 0

Development Dependencies 0

Dependents 1

Last synced .
search fire star recently