Semantic code project: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 24: Line 24:
{{subtableflex|45|{{c-definition|template=ISDA 2002 Office|format=pr}}}}
{{subtableflex|45|{{c-definition|template=ISDA 2002 Office|format=pr}}}}
Note that “which may be such party’s head or home office” is a non-restrictive elaboration — it is flannel, basically — it adds no information that is not conveyed by the expression “a branch or office of a party” so it can be omitted from the propositional variable. (This will frighten some of the horses I should think).
Note that “which may be such party’s head or home office” is a non-restrictive elaboration — it is flannel, basically — it adds no information that is not conveyed by the expression “a branch or office of a party” so it can be omitted from the propositional variable. (This will frighten some of the horses I should think).
==Speculation==
''The rest of this article is a hastily-drawn sketch''. It may provide food for thought, and may just be nonsense.


===Create (or select) a [[standard proposition]]===
This remains a work in progress. The rabbit hole I am descending may well be the wrong one, but — who knows? maybe there is a wonderland down there.
Select a [[standard proposition]]. A “definition” can be represented as:
{{subtableflex|45|{{c-definition|template=ISDA 2002 1(c)2|format=pr}}}}
 
[[Standard proposition]] templates will be prefaced with a “c-” and you can find a complete list of the formats here:
{{subtableflex|45|'''Canonical propositional forms''':<categorytree mode="pages" namespaces="Template" depth="0">Template propositions</categorytree>
Completed propositions:<categorytree mode="pages" namespaces="Template" depth="0">Containers</categorytree>}}
 
=== 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]]<ref>Jolly Contrarian Markup Languange of course.</ref>; “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 of template standard proposition should be:
 
{{subtableflex|45|'''Name''': t-[NAME]<nowiki><noinclude>{{c|Template propositions}}</noinclude></nowiki><br>
'''Content''': <br>
'''label''': <nowiki><section begin=label/>{{PAGENAME}}<section end=label/>. <br></nowiki><br>
'''{VAR1}''': <nowiki><section begin={VAR1}/> <section end={VAR1}/>. <br></nowiki><br>
'''{VAR2}''': <nowiki><section begin={VAR2}/> <section end={VAR2}/>. <br></nowiki><br>
'''{VAR3}''': <nowiki><section begin={VAR3}/> <section end={VAR3}/>.</nowiki> }}
 
Where:
*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 <nowiki><noinclude>{{c|Template propositions}}</noinclude></nowiki> as is this adds the template to the correct category and helps you to find it later.
 
The form of template call this simply extracts the relevant data from the taxonomised address, but doesn’t do anything with it (the “format” parameter designates that), is as follows:
 
{{subtableflex|45|<nowiki>{{{{{format}}} [NAME]</nowiki><br><nowiki>
|label={{{template}}}</nowiki><br><nowiki>
|{VAR1}={{#lst:template:{{{template}}} [name]|{VAR1}}}</nowiki><br><nowiki>
|{VAR2}={{#lst:template:{{{template}}} [name]|{VAR2}}}</nowiki><br><nowiki>
|{VAR3}={{#lst:template:{{{template}}} [name]|{VAR3}}} </nowiki><br><nowiki>
}}<noinclude>{{c|Containers}}</noinclude></nowiki>}}
 
===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 {{2002ma}} is <nowiki>{{Code 2002 ISDA 1(a)}}</nowiki> 
 
Create the new template (e.g. <nowiki>{{Code 2002 ISDA 1(a)}}</nowiki>) and call the template proposition using the “c-” template operator. For example, to: if you want to put an “application” operator in <nowiki>{{Code ISDA 2002 1(a)}}</nowiki> template, insert: <nowiki>{{c-application|ISDA 2002 1(a)1}}</nowiki> 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 <nowiki>{{{label}}}, {{{action}}}</nowiki> 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.
 
===Structure challenges===
The whole agreement needs to have a nested code/subroutine structure. The labels will help address parts. It will be more rigorously nested than the numbering schema of a word doc. The preliminary, interpretation, definitions and overriding principles by which all rights and obligations are construed are the outermost layer. Any nested layer inherits all the outer conditions and terms. Deal with carve-outs and carve ins by "undoing" prevailing conditions. So conditions are "on" or "off". As each proposition has an address label and is an object in the system, this is manageable.
==To do==
 
Devise a proposition labelling taxonomy, that can neatly (and predictably) cover: proposition type, agreement type, location and clause reference


{{sa}}
{{sa}}
*[[ISDA code project]]
*[[ISDA code project]]
{{ref}}
{{ref}}

Navigation menu