| Crates.io | dsntk-recognizer |
| lib.rs | dsntk-recognizer |
| version | 0.2.0 |
| created_at | 2023-11-05 15:04:56.922983+00 |
| updated_at | 2025-03-14 11:19:42.681874+00 |
| description | dsntk | DecisionToolkit | Decision table recognizer |
| homepage | |
| repository | https://github.com/DecisionToolkit/dsntk-rs.git |
| max_upload_size | |
| id | 1026024 |
| size | 408,094 |
Decision table recognizer used by components of dsntk crate.
Recognizes decision tables defined as Unicode or Markdown text. To be properly recognized, the structure of the decision table must be conformant to DMN™ standard.
Example of decision table defined using only Unicode characters:
┌───┬────────────┬───────╥──────────┐
│ U │ Customer │ Order ║ Discount │
╞═══╪════════════╪═══════╬══════════╡
│ 1 │ "Business" │ <10 ║ 0.10 │
├───┼────────────┼───────╫──────────┤
│ 2 │ "Business" │ >=10 ║ 0.15 │
├───┼────────────┼───────╫──────────┤
│ 3 │ "Private" │ - ║ 0.05 │
└───┴────────────┴───────╨──────────┘
Example of decision table defined using Markdown:
| U | Customer | Order | Discount |
|---|---|---|---|
i |
i |
o |
|
| 1 | "Business" | <10 | 0.10 |
| 2 | "Business" | >=10 | 0.15 |
| 3 | "Private" | - | 0.05 |
Licensed under either of
at your option.
Any contributions to DecisionToolkit are greatly appreciated. All contributions intentionally submitted for inclusion in the work by you, shall be dual licensed as above, without any additional terms or conditions.