This repository contains a simple rule-based inference system implemented in C#. The program utilizes JSON files to store and manage facts and rules, allowing users to add facts, rules, generate new facts based on existing rules, and manipulate the data dynamically.
-
Add Facts:
- Users can add new facts to the system. If a fact already exists, the program informs the user.
-
Add Rules:
- Users can add new rules to the system. The rules follow the format "if Antecedent, then Consequent."
-
Generate New Facts:
- The system checks all rules and generates new facts based on satisfied antecedents.
-
Delete Current Facts:
- Users can clear the existing facts, which will be saved as an empty list in the corresponding JSON file.
-
Delete Current Rules:
- Users can clear the existing rules, which will be saved as an empty list in the corresponding JSON file.
-
Exit:
- Exit the application.
This program uses the Newtonsoft.Json library for JSON serialization and deserialization. Make sure to install the necessary dependencies before running the program.