Function File Definitions
Description
How to define the content of the Function Files used (mostly) to classify documents, files and attachments.
Content
The Function files can be divided into 3 different groups:
Processing
Each of the files (in alphabetical order) and in each sub folder is processed. Each line is checked with the content of the document to process.
When a match is found, the name of the file is used as the classification (document type).
When a sub type is defined on the matching line, the name of the sub type is also saved in the results.
When an action set is defined on the matching line, this action set is also saved in the results.
Defining words and phrases
Each line in a function file contains 1 set of words and/or phrases to be interpreted as 1 condition.
To define how to use the words and phrases special commands can be used:
The commands use the standard convention of order of processing: first NOT then AND then OR
Examples:
Function line: |
Mary || Annie |
Sentence in a doc: |
Mary had a little lamb |
Result: |
The sentence is found |
Reason: |
Mary is found in the sentence |
Function line: |
(Mary || Annie) && Bobo |
Sentence in a doc: |
Mary had a little lamb called Baby |
Result: |
The sentence is found |
Reason: |
Mary is found in the sentence, the second part of the condition is Annie AND Bobo, this part does not exist in the sentence |
Function line: |
(Mary || Annie) && !(Bobo) |
Sentence in a doc: |
Mary had a little lamb called Baby |
Result: |
The sentence is found |
Reason: |
Mary is found and Bobo does not appear in the sentence |
Defining a sub type
Lines in a function file can contain sub types. These sub types can/should be seen as sub types within a document classification.
The file name of the function file is the document type, the sub type is the sub document type.
To define a sub type on a line in a function file insert the name of the sub type at the start of the line followed by > (larger than).
Example:
Function line: |
SType > (Mary || Annie) && Bobo |
Sentence in a doc: |
Mary had a little lamb called Bobo |
Result: |
The sentence is found and SType is returned |
Reason: |
Mary and Bobo are found in the sentence |
Defining an action set
An action set is a value that is used in scripting to further determine how and what to do with the found doc type an sub type.
To define an action set on a line in a function file insert the value after the sub type definition followed by > (larger than).
Example:
Function line: |
SType > ASet > (Mary || Annie) && !(Bobo) |
Sentence in a doc: |
Mary had a little lamb called Baby |
Result: |
The sentence is found and SType and ASet are returned |
Reason: |
Mary is found and Bobo does not appear in the sentence |