Detailed Description of Swap Name Surname

This step verifies first name and last name using dictionary files that contain known values. Even if first name and last name are switched (first name is placed in the position of the last name and vice versa) then both first name and last name are saved in the correct corresponding properties.

The dictionary files are specified by the properties "firstNameLookupFileName" and "lastNameLookupFileName". For more detail about the format of the files refer to chapter files.


Top of page

Example: Example
<step id='alg' className='cz.adastra.cif.tasks.clean.SwapNameSurnameAlgorithm'>
        <properties>
                <firstName>firstName</firstName>
                <lastName>lastName</lastName>
                <firstNameOut>firstName</firstNameOut>
                <lastNameOut>lastName</lastNameOut>
                <firstNameLookupFileName>firstName.cif</firstNameLookupFileName>
                <lastNameLookupFileName>lastName.cif</lastNameLookupFileName>
                <matchingValueGenerator doRemoveDia='true' doRemoveRepeatedChars='true'
                     doSqueezeWS='true' doUpperCase='true'
                     doRemoveSpecialChars='true'/>
                <scorer explanationColumn='explanation'>
                        <scoringEntries>
                                <scoringEntry key='NM_SWAP' score='100' explain='true' />
                        </scoringEntries>
                </scorer>
        </properties>
</step>

iWay Software