dsntk-recognizer

Crates.iodsntk-recognizer
lib.rsdsntk-recognizer
version0.2.0
created_at2023-11-05 15:04:56.922983+00
updated_at2025-03-14 11:19:42.681874+00
descriptiondsntk | DecisionToolkit | Decision table recognizer
homepage
repositoryhttps://github.com/DecisionToolkit/dsntk-rs.git
max_upload_size
id1026024
size408,094
core (github:decisiontoolkit:core)

documentation

https://docs.rs/dsntk-recognizer

README

dsntk | DecisionToolkit

Decision table recognizer

Crates.io docs Code coverage
build Linux build Windows build MacOs
MIT licensed Apache 2.0 licensed Contributor Covenant

Overview

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

License

Licensed under either of

at your option.

Contribution

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.

Commit count: 473

cargo fmt