RuleLab.
Local processingFrançais

Reuse your classification rules.

Export rules as JSON and apply them to a new file.

Import a file

Drop your Excel or CSV file

Or paste cells (Ctrl+V) anywhere on this page.

No file at hand?

Product catalogue: a few hundred rows, a quarter already categorized.

Other examples: ·

How does it work?

The “aepur.rulelab.rules” file (version 1) describes rules independently of the interface. Each rule has a stable ID, a category, conditions (when), exclusions (unless), a priority from 1 to 9, a version and the examples that support it.

  1. After classifying, open “Rules” then “Export (JSON)”.
  2. Load a new file, then “Import rules”. If a column has a different name, map it.
  3. Rows are classified without new examples; your corrections can then improve the rules.

File fields

format, formatVersion

“aepur.rulelab.rules” and 1. Any other format is rejected.

normalization

accents, plural, typos: case ignored, accents ignored, singular = simple plural, typos flagged (never classified on their own).

decision.minSupport

Number of examples below which a learned rule suggests without classifying.

columns, categories

Analysed columns and known categories.

rules[].when

Conditions that must all hold: { column, op, value }. op: contains, phrase, startsWith, endsWith, equals, pattern (“#” = run of digits).

rules[].unless

Exclusions: the rule does not apply if any is true.

rules[].priority

1 to 9. The highest priority wins; on a tie, two different categories mean “to review”.

rules[].id, version, evidence, limits

Stable ID (derived from content), version introduced, supporting examples and known limits.

{
  "format": "aepur.rulelab.rules",
  "formatVersion": 1,
  "normalization": { "accents": true, "plural": true, "typos": true },
  "decision": { "minSupport": 2, "conflict": "review", "noMatch": "review" },
  "columns": ["Description"],
  "categories": ["Software", "Travel"],
  "rules": [{
    "id": "r0k3x9pa", "category": "Travel", "priority": 1,
    "enabled": true, "version": 2, "origin": "learned",
    "when": [{ "column": "Description", "op": "contains", "value": "uber" }],
    "unless": [{ "column": "Description", "op": "contains", "value": "eats" }],
    "evidence": { "support": 6, "counter": 0, "lines": [4, 18], "texts": ["Uber ride"] },
    "limits": []
  }]
}

Frequently asked questions

Can I reuse the rules on another file?

Yes. Export the rules as JSON, then import them after loading a new file: it is classified without labelling examples again.

Does RuleLab use AI?

No. RuleLab derives readable rules from your examples using simple word statistics. No row is sent to a language model, and the same file with the same examples always gives the same result.

Are my files uploaded to a server?

No. RuleLab reads, classifies and exports your file in your browser. There is no account, no remote storage and no API key, and the site’s security policy blocks the app from sending anything over the network.