cicero-word-add-in-deprecated icon indicating copy to clipboard operation
cicero-word-add-in-deprecated copied to clipboard

Create Template from Legal Contract

Open dselman opened this issue 6 years ago • 7 comments

  1. Lawyer opens an existing legal contract in MS Word.
  2. Open the Accord Project Add-In.
  3. Selects the text for a clause in the contract
  4. Presses the "Convert to Template" button in the add-in task pane
  5. Enters the identifier for the template
  6. Generate the Model

The selected text is scanned. Any text in between [ and ] is captured as a variable. The variable delimiter characters SHOULD be configurable.

A template model is created, with a property for each variable. The type of the variable is by default String.

The user can specify a different type for each variable, as well as rename the variable.

Example:

Lorem [ipsum] dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. [Duis] aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est [laborum].

A dialog (?) is displayed that confirms the variables and types:

ipsum [String] Duis [String] laborum [String]

Press a drop-down (?) for the type name to specify a different type. The dialog MAY allow the user to add/remove variables.

Initially perhaps we start with only supporting primitive types. In the future, the ability to specify the URL for an external model and to use custom (complex) types would be useful. E.g. Address, MonetaryQuantity etc.

Once the types have been confirmed/edited the grammar, model and package.json for the template is generated (in memory?).

concept TemplateModel {
   o String ipsum
   o String Duis
   o String laborum
}
  1. The user can press the Publish button to push the template into a GitHub repository. Typically this would be a fork of the cicero-template-library repository.

The Add-in uses the MS Word Bindings feature to persist the link from the text to the template. When the document is re-opened the text is already linked to the published template and the user can review the metadata for the template in the task pane.

  1. (Out of scope for Word Add-in) A developer clones the repository and adds the Input/Output transactions, checks the model, and the Ergo logic for the template.

dselman avatar Mar 21 '18 17:03 dselman

Hello, sir. I'm interested to work on this. Can you please provide some tips or suggestions on how do I go about implementing it?

SupreethBaliga avatar Feb 24 '20 05:02 SupreethBaliga

i am too interested for this if you can elaborate it little we can work with this and can make it happen.

youngheart12 avatar Mar 01 '20 15:03 youngheart12

@dselman do we have to set development environment in windows as ms word is not available in linux?

arteevraina avatar Mar 01 '20 18:03 arteevraina

@youngheart12 sure.

SupreethBaliga avatar Mar 02 '20 04:03 SupreethBaliga

Hello all! Please join the #gsoc channel in our Slack workspace. The pinned posts there will help with guidance.

jolanglinais avatar Mar 02 '20 14:03 jolanglinais

@dselman do we have to set development environment in windows as ms word is not available in linux?

I presume that you will need a platform which supports Office 365. Not sure what the system requirements are?

jeromesimeon avatar Mar 03 '20 13:03 jeromesimeon

you can use the browser microsoft office

shakti97 avatar Mar 20 '20 20:03 shakti97