Completeness in dependency networks
View Patent ↗The invention improves document generation systems in which data is collected to enable automated, customised document generation. initially, a questionnaire which defines a dataset is completed. The system then determines which variables are relevant, and then determines whether all relevant variables are in the dataset. Finally, the system generates a fully customised document if the dataset is complete.
1. A computer program stored on a non-transitory computer-readable medium, the program comprising:
instructions which produce a customised document for which inclusion of document content from a template is based on evaluation of rules, the rules being evaluated using values assigned to content variables of the template, wherein the values are based on responses to questions of a questionnaire, comprising:
receiving a completed questionnaire and defining a dataset of content variables for which values have been assigned;
forming a dependency network in which conditions indicate relationships between dependent content variables and controlling content variables of the template;
determining which content variables of the template are relevant by defining ones of the content variables as relevant if, and only if, the content variable as represented in the dependency network:
(i) is not one of the dependent content variables, or
(ii) is one of the dependent content variables and all associated controlling content variables are relevant and all associated conditions evaluate to either true or indefinite;
defining the dataset as complete if, and only if, all relevant content variables of the template are in the dataset; and
where received responses are insufficient to evaluate all rules, generating a fully customised document if the dataset is complete.
2. The program of claim 1 wherein the questionnaire includes a plurality of questions, and wherein the received completed questionnaire comprises answers to fewer than all of the questions.
3. The program of claim 2 including assigning values to variables based on answers to questions.
4. The program of claim 1 including determining that a first condition evaluates to true based on variables in the dataset.
5. The program of claim 1 including determining that a first condition evaluates to false based on variables in the dataset.
6. The program of claim 1 including determining that a first condition evaluates to indefinite because at least one significant variable is not in the dataset.
7. The program of claim 1 including using the values of the variables to determine which items of conditional content are incorporated into the customized document.