Semantic code project: Difference between revisions

From The Jolly Contrarian
Jump to navigation Jump to search
Line 9: Line 9:
=== Why are there t-versions and c-versions of each standard proposition? ===
=== Why are there t-versions and c-versions of each standard proposition? ===
You call templates using the “c-” templates. These designate:
You call templates using the “c-” templates. These designate:
:(a) what ''type'' of standard proposition it is (is it a right, obligation definition, condition precedent etc): you do this by the “c-” type template you select (e.g. “c-obligation”)  
:(a) what ''type'' of standard proposition it is (is it a right, obligation definition, condition precedent etc): you do this by the “c-type” template —“c” for “call” — you select (e.g. “c-obligation”)  
:(b) where to find the static data inputs to populate this particular proposition — this will be a taxonomised address for a particular agreement (e.g. “ISDA 2002 2(a)(iii)”). This is where the “t-” templates come in handy: you need to put your proposition variables into a fairly convoluted code environment, which you can access by “substing” the relevant “t-template, and just dropping the variables into the relevant spaces.
:(b) where to find the static data inputs to populate this particular proposition — this will be a taxonomised address for a particular agreement (e.g. “ISDA 2002 2(a)(iii)”). This is where the “t-” templates come in handy: you need to put your proposition variables into a followable, but still fairly convoluted code environment, which you can access by “{{subst:}}ing” the relevant “t-type” template — “t” for “template standard proposition” — and just dropping the variables into the relevant spaces.
:(c) what format to output the proposition. For example “pr” will output it as in [[JCML]]<ref>Jolly Contrarian Markup Languange of course.</ref>; “se” will out put as minimalistic semantic English.
:(c) what format to output the proposition. For example “pr” will output it as in [[JCML]]<ref>Jolly Contrarian Markup Languange of course.</ref>; “se” will out put as minimalistic semantic English.


The C version is the “call” format. This will designate
The idea is to take an existing template standard proposition and “{{subst:}}” it into a new structure at the correctly taxonomised address, and then populate it.  
 
If there isn’t an existing standard proposition to fit, create a new one — but try to avoid this: the name of the game is to have as few “canonical” propositions as possible. The form should be:
The idea is to take an existing template proposition and “subst” it into a new structure as per the below.  
If there isn’t one, create a new one — but note, the name of the game is to have as few “canonical” propositions as possible. The form should be:


{{subtable|'''Name''': t-[NAME]<nowiki><noinclude>{{c|Template propositions}}</noinclude></nowiki><br>
{{subtable|'''Name''': t-[NAME]<nowiki><noinclude>{{c|Template propositions}}</noinclude></nowiki><br>

Revision as of 00:36, 3 January 2021

Create (or select) a standard proposition

Select a standard proposition. These are things like “right” or “obligation” or “condition precedent” — basically the standard building blocks of a legal contract. My hunch is that a limited number of these “canonical propositions” could be used to apply to most contractual provisions without amendment. For example a “definition” is fairly straightforward: there is a “term” and a “definition” and an “operator” (which almost always “means” or “includes”). This can be represented as:

definition [

label ISDA 2002 1(c)2 def
term Agreement
operator means
scope Master Agreement
definition Master Agreement and [howmany: all] Confirmations.]

Standard proposition templates will be prefaced with a “c-” and you can find a complete list of the formats here:

Canonical propositional forms: Completed propositions:

Why are there t-versions and c-versions of each standard proposition?

You call templates using the “c-” templates. These designate:

(a) what type of standard proposition it is (is it a right, obligation definition, condition precedent etc): you do this by the “c-type” template —“c” for “call” — you select (e.g. “c-obligation”)
(b) where to find the static data inputs to populate this particular proposition — this will be a taxonomised address for a particular agreement (e.g. “ISDA 2002 2(a)(iii)”). This is where the “t-” templates come in handy: you need to put your proposition variables into a followable, but still fairly convoluted code environment, which you can access by “{{subst:}}ing” the relevant “t-type” template — “t” for “template standard proposition” — and just dropping the variables into the relevant spaces.
(c) what format to output the proposition. For example “pr” will output it as in JCML[1]; “se” will out put as minimalistic semantic English.

The idea is to take an existing template standard proposition and “{{subst:}}” it into a new structure at the correctly taxonomised address, and then populate it. If there isn’t an existing standard proposition to fit, create a new one — but try to avoid this: the name of the game is to have as few “canonical” propositions as possible. The form should be:


Name: t-[NAME]<noinclude>{{c|Template propositions}}</noinclude>
Content:
Label: <section begin=label/>{{PAGENAME}}<section end=label/>. <br>
{VAR1}: <section begin={VAR1}/> <section end={VAR1}/>. <br>
{VAR2}: <section begin={VAR2}/> <section end={VAR2}/>. <br>
{VAR3}: <section begin={VAR3}/> <section end={VAR3}/>.

Note:

  • Change [NAME] and {VAR1}, {VAR2} and {VAR3} to suit your proposition. Note ALL ARE CASE SENSITIVE. Suggest using only lowercase. Bear in mind the command calling the template also has to be case-correct.
  • “Label” above is fixed text and will help in correctly taxonomising. Don’t change this. Also leave <noinclude>{{c|Template propositions}}</noinclude> as is — this adds the template to the correct category and helps you to find it later.

Create a corresponding proposition in your agreement schema

You should have an agreement schema (a structured skeleton of the agreement in question. This has a unique taxonomised template name following this format: [Code] [Agreement] [Edition Year] [Clause reference]. For example, Section 1(a) of the 2002 ISDA is {{Code 2002 ISDA 1(a)}}

Create the new template (e.g. {{Code 2002 ISDA 1(a)}}) and call the template proposition using the “c-” template operator. For example, to: if you want to put an “application” operator in {{Code ISDA 2002 1(a)}} template, insert: {{c-application|ISDA 2002 1(a)1}} there. Note the 1: this is to distinguish between different instances of “application” that appear in clause 1(a), so not necessary if only one, but good practice.

If there is not an existing container, this should prompt you for a bunch of inputs which are not there yet (eg {{{label}}}, {{{action}}} etc).

Render

You choose your rendering by the parameter “format” in the “c-” template.

  • pr means “proposition”: this is the inputs into the proposition listed as they are.
  • se means “semantic”: This is the inputs into the proposition constructed into minimal English
  • std means “standard” legal English: so idiomatic, but not legalese, but not so spartan so as not to be fun.
  • pomp means “pompous” and we have had a bit of fun with this.


To do

Devise a proposition labelling taxonomy, that can neatly (and predictably) cover: proposition type, agreement type, location and clause reference

  1. Jolly Contrarian Markup Languange of course.