Find a rule from examples
Show the result you want.
Find a rule you can check.
Give a few examples. Duplex looks for a way to get that result and can ask for one more example when the answer isn’t clear.




From examples to a rule your team can check.
Finding the rule, checking it and using it again are three separate steps, and you see each one.
- 1
Give examples
A few inputs with the results your team expects: decisions, corrections, categories or calculated values.
- 2
Duplex looks for a rule
It looks for a rule that gives every one of those results.
- 3
It’s checked on a new case
Before anyone relies on it, the rule is tried on an example it didn’t see.
- 4
Your team decides
Keep it, with the examples and checks behind it, for the next job that fits.


When two rules fit, it asks.
A few examples can be read more than one way. Duplex shows both readings and asks for the one example that tells them apart, instead of guessing.
| Examples | Rule 1 | Rule 2 |
|---|---|---|
| 2 → 4, 4 → 8, 6 → 12 | Rule 1: Double every quantity | Rule 2: Double only even quantities |
| What about 5? | Rule 1: 10 | Rule 2: 5 |
| The reviewer says 10 | Rule 1: Fits | Rule 2: Doesn’t fit |


Every answer says what it is.
Found and checked
- Means
- A rule gives every example’s result and passed its check on a new case.
Candidate
- Means
- Worth reviewing. Kept out of reuse until your team confirms it.
Needs one more example
- Means
- Two rules fit. One more example would decide.
When the search stops without a clear answer, Duplex says why and what might help it go further. A long search can pick up where it stopped.


The kinds of work it can try.
Representative examples, not a promise that every rule can be found from any examples.
Numbers
Thresholds, limits, corrections and calculated values.
Tables and records
Rows, fields and the rules that connect them.
Text and lists
Labels, categories, codes and sequences.
Dates and units
Durations, conversions and constants worked out from examples.


Bring the examples.
Bring a handful of cases your team already decided. We’ll show you the rule, the check and the question that settles it.

