json-rules-engine
rules
json-rules-engine | rules | |
---|---|---|
6 | 2 | |
2,441 | 1,106 | |
- | - | |
6.7 | 0.0 | |
3 months ago | over 1 year ago | |
JavaScript | JavaScript | |
ISC License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
json-rules-engine
-
How should I test this function? Should I test all possibilities? Like hasDescription = true and hasExperience = true should return true. hasDescription = true and hasSkill = true should return false
If you find yourself needing to do alot of these profile matching functions I would recomend building either a mini-rules interpreter or using something like this https://github.com/CacheControl/json-rules-engine to do the matching for you.
-
conditionals in plain json?
Maybe you're looking for something like a JSON based Rules Engine (look at this and this).
- How do you think a large game (World of Warcraft for example) handles storing their quest data?
-
Chrome.scripting
it just seems so trivial to me too build a small interpreted system that circumvents the "no dynamic JavaScript" rule. so so so trivial. so the only people hurt are the regular humans.
there was a simpler example on hm within the last week or two, but for example, json-rules-engine demonstrates how json might be a dynamic program, without ever needing to call eval or Function dynamic code: https://github.com/CacheControl/json-rules-engine
this would need to be extended with some html constructs. which is certainly possible.
or take evaljs and preload in some html functions!
> You might be working in a JavaScript environment where eval() isn't allowed (and you have a genuinely good reason why you want to use it). Maybe this'll slip under the radar.
https://github.com/marten-de-vries/evaljs
surely the people pitching these so called security measures grok just how many dump trucks of nonsense these so called protections they offer us are.
I believe they want to do something good too. but they are ineffectual & doing amazing amounts of damage in their grasp to go us this pretend fake security.
-
It's true
Interesting! Is this repo sort of a similar concept then?
- Ways to execute user input/scripts
rules
-
Forgoing Implicity and Using Abstractions: Clips
Is it possible: yes.
Can you write your own home-grown rules engine in Ruby: yes.
Can you use off-the-shelf gems: yes. Here's a few I poked around in my previous explorations into Ruby Rules Engines:
* durable rules - https://github.com/jruizgit/rules?tab=readme-ov-file#ruby
* wongi - https://github.com/ulfurinn/wongi-engine
* rules - https://github.com/azach/rules
* ruleby - https://github.com/Ruleby/ruleby
- bonus: video of original ruleby author explaining rules engines: https://www.youtube.com/watch?v=qMh2RDL6aBM
-
SpaCy v3.0 Released (Python Natural Language Processing)
Currently https://github.com/nilp0inter/experta but https://github.com/noxdafox/clipspy seems nice, I just shied away from using it due to uneasiness about FFI and debugging, even though the original CLIPS is still awesome and has a very interesting manual.
There's also https://github.com/jruizgit/rules but haven't tried it yet.
What are some alternatives?
Easy Rules - The simple, stupid rules engine for Java
duckling - Language, engine, and tooling for expressing, testing, and evaluating composable language rules on input strings.
RulerZ - Powerful implementation of the Specification pattern in PHP
Kornia - Geometric Computer Vision Library for Spatial AI
NRules - Rules engine for .NET, based on the Rete matching algorithm, with internal DSL in C#.
projects - 🪐 End-to-end NLP workflows from prototype to production
tampermonkey - Tampermonkey is the most popular userscript manager, with over 10 million users. It's available for Chrome, Microsoft Edge, Safari, Opera Next, and Firefox.
laserembeddings - LASER multilingual sentence embeddings as a pip package
RulesEngineEditor - Editor for Microsoft RulesEngine - Blazor UI library intended for integration in Web or Desktop
syntaxdot - Neural syntax annotator, supporting sequence labeling, lemmatization, and dependency parsing.
uBlock - uBlock Origin - An efficient blocker for Chromium and Firefox. Fast and lean.
BLINK - Entity Linker solution