# Why Simple Rule Engine?

Decision-making has always been at the heart of any business. In certain industries (such as Lending), some of the decisions made are so dynamic & in flux that programming these decisions by hand is counter-productive.

Take the example of the decision to give someone a loan. It primarily involves ascertaining two fundamental factors:

* Ability to repay the loan.
* Intent to repay the loan.

When you start assessing a borrower based on the above, you typically get all facts required to make a decision (such as Bureau score, bank statements, etc.) and you will pass these facts through a decision matrix to arrive at

* A composite score on a scale that gives an indication of *whether the borrower will repay the loan* (**intent**)
* A recommendation of *how much loan* should be given to the borrower. (**ability**)

The aforementioned decisions involve the evaluation of multiple parameters. You cannot write a program to solve such complex scoring or decision problems:

* The evaluations and/or scores will *always* change over a period of time to adjust to business needs
* The *rules* will also vary based on the nature of the business product.

In the next section, let us look at some examples from Lending Industry which calls for a Rule Engine solution.

#### References

[Rules Engine by Martin Fowler](https://martinfowler.com/bliki/RulesEngine.html)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://jeyabalajis.gitbook.io/simple-rule-engine/why-simple-rule-engine.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
