SPLAB-UFCG / Moenda

Engine de execução de regras em javascript.
MIT License
1 stars 1 forks source link

Improve MD Context #34

Open matheusgr opened 3 years ago

matheusgr commented 3 years ago

🚀 Feature

MD Context should provide more information to be used by rules.

For instance:

Have you read the Contributing Guidelines on issues?

Yes.

Motivation

Provide a easy way to create rules.

Pitch

A map and a list per line should cover almost all cases to write MD Context rules.

matheusgr commented 3 years ago

@fanny please review this issue.

fanny commented 3 years ago

Sounds great for me @matheusgr.

I think this issue is related with #20, maybe it will be useful also read it.

As far as I understood, right now the context only gets the entities info without show the relationships between them, so I agree with you it's more useful if we have the info about entities in another format.

I like the tree format that facilitates the way that we transverse the items. I'm just confuse about the other ones, could you explain briefly?

In the case of a tree, I though in something like: {'type': 'section', 'value': 1, 'children': {'type': 'paragraph', ...}}.

Do you think that it's useful start to use a parser? could facilitate the info extraction process.