Detailed Description of Transform Legal Forms

This step transforms legal forms found in an input value (the property in) and generates a final translated value stored in the output (the property out) data record. The transformation consists of finding all known forms (i.e., different ways how users type legal forms) within the input string and transforming them into the correct and official forms.

If the output for obtained official legal forms (the property in) is defined, they are all stored in the specified column. If more than one legal form is found, they are all separated by a delimiter specified in the separator property. If no input data is available, the scoring flag TLF_NULL is set. If any transformations have been performed, the scoring flag TLF_CHANGED is set.


Top of page

Example: Example

Consider the two existing legal forms: 'Limited Company' and 'Joint Stock Company' and their corresponding normalized formats: 'LTD' and 'INC'. Furthermore, the following are possible and often used formats utilized by end user systems collecting input data. These formats are also included in the dictionary (the appropriate normalized format is in brackets):

Based on the definition above, transformation examples follow:

The following string is written to the "formOut" output (where "-" is the defined separator):

<step id='alg' className='cz.adastra.cif.tasks.clean.TransformLegalFormsAlgorithm'>
        <properties>
                <in>src_company_name</in>
                <out>std_company_name</out>
                <formOut>legal_forms</formOut>
                <legalFormsLookupFileName>legal_forms.cif</legalFormsLookupFileName>
                <separator>-</separator>
                <scorer explanationColumn='explanation'>
                        <scoringEntries>
                                <scoringEntry key='TLF_NULL' score='100' explain='true' />
                                <scoringEntry key='TLF_CHANGED' score='100' explain='true' />
                        </scoringEntries>
                </scorer>
        </properties>
</step>

iWay Software