mscarey / AuthoritySpoke

Reading legal authority for the last time
https://authorityspoke.readthedocs.io
Other
34 stars 2 forks source link

allow Rule init without procedure parameter #29

Closed mscarey closed 5 years ago

mscarey commented 5 years ago

Instead of requiring a procedure parameter, optionally let users specify outputs, inputs, despite, and use those to build a Procedure object behind the scenes.

Otherwise Procedure objects will need to be built inside the Rule constructor, which makes it look even more complex and intimidating.

Similarly it could become possible to skip constructing a Predicate when making a Fact.

This could involve consolidating the regular constructors with the from_dict constructors and the JSON input format. See #22.