Sleds/posting/LegalTest-mapping.json

67 lines
6.5 KiB
JSON

// comments removed ONLY if this first line is a comment
// $Id:$
// Simple one col name test
//
// Copyright (c) 2011-2012 Dovetail Software, Inc. All Rights Reserved.
// Some portions copyright by other entities, see specific methods/classes for callouts.
// Dovetail may contribute classes, methods and implementation to customer projects. Provided this copyright notice
// is retained, customers are granted a free, perpetual and assignable license to this software when used in the
// project, work for hire or purpose for which it was originally intended. Customers may not resell software for
// purposes unrelated to its original project, work for hire or intent.
//
{
// name this something (not used yet)
"target": "LegalTest",
// output format (@todo csv or others)
"outputFormat": "fixed-length",
// output encoding
"outputEncoding":"ISO-8859-1",
// set below to zero for non-fixed-length formats
"totalRecordLength": 0,
// config data for various Mapper classes
"config": {
// do not try using escapes here, things go badly
"variables": {
"_grantee": "Grantor_Original@Title~[N],Grantor@Title~[N],Grantee",
"_grantor_filler": "Grantor_Original@Title~[U]",
"_grantor": "-STOP-@Title~[N],Grantor",
"_buyer": "Trustee_Successor_Address_Name_Unparsed@Title~[NU],Trustee_Address_Name_Unparsed@Title~[NU],Grantee_Name_Address_Unparsed,Address_Grantee_Unparsed,Tax_Statement_Address_Unparsed@Title~[U],Recording_Return_Address_Name_Unparsed@Title~[U],Address_Property@Title~[U]",
"_property": "Address_Property,Property_Address_Property_City_Property_Zip",
"_beneficiary": "Beneficiary_Securitization@Title~[N],Beneficiary_Assignee@Title~[N],Beneficiary_Original@Title~[N]",
"_trustee": "Trustee_Successor,Trustee_Successor_Name_Address_Unparsed,Trustee_Successor_Contact_Name,Trustee,Trustee_Address_Name_Unparsed,Trustee_Contact_Name",
"_trustee_sale": "TS_Number@Title~[NU], File_Number_Successor_Trustee@Title~[N]",
"_recording_return": "Recording_Return_Address_Name_Unparsed@Title~[N]",
// used to have series as part of all comp regex, now extracting sep.
// n.b. must escape the $ so as not to cause that to be a group ref on replace into other tokens
// DO NOT USE CHAR CLASSES
"BondSeries": "(?:(?:NPL |BENEFIT PLAN )[A-Z0-9 -]*(?:AND )?(?:TRUST |(?:TRUST\\$)))|(?:[ ,]*(?:TRUST|SERIES|HEAT|SECURITIES|CSFB|WMALT|MANA|WAMU|WFMBS|SASCO|SURF)[ ,]*[0-9]+[0-9A-Z-]+(?:[ -][A-Z0-9 -]+)?)",
"fsb": "f[/.]?s[/.]?b[/.]?",
"fka": "f[/.]?k[/.]?a[/.]?",
"bank": "ban[ck]",
"usMeridianNames": "Ashley|Beaverhead|Belt Mountain|Big Hole|Bitterroot|Black Hills|Boise|Boulder|Browning|Buffalo Creek|Carson River|Castle Valley|Chickasaw|Choctaw|Cimarron|Colorado|Columbia|Colville|Copper River|Coulson|Deer Lodge|Deschutes|Emery Valley|Fairbanks|Fifth Principal|First Principal|Flathead|Fort Belknap|Fourth Principal|Fourth Principal|Fremont Valley|Gila and Salt River|Grand River|Grande Ronde|Green River|Haystack Butte|Helena|Henry Mountain|Horse Plains|Humboldt|Humboldt River|Huntsville|Indian|Jefferson|Judith|Kanab|Kateel River|Kolob|Little Porcupine|Louisiana|Maginnis|Michigan|Mount Diablo|Musselshell|Navajo|New Mexico|New Mexico Principal|Panguitch|Passamari|Pine Valley|Principal|Red Rock|Reese River|Ruby Valley|Salt Lake|San Bernardino|Second Principal|Sevier Lake|Seward|Shields River|Sixth Principal|Smith River|Snake Valley|Square Butte|St. Helena|St. Stephens|Sweet Grass|Tallahassee|Teton|Third Principal|Uinta (Special)|Umiat|Ute|Valley Creek|Wah Wah|Washington|Willamette|Willow Springs|Wind River|Yantic|Yellowstone"
}
},
// mapping from FR field names to CL
"map": [
// present in csv output as meta field and can optionally be emitted to output iff --emit-meta-fields
// note if these are emitted, the whole start/end absolute pos will be off
{"nbr": 0 ,"frName":"LegalDescription", "alternate": "","overflow":"", "targetName":"","targetLength": 0, "targetStart": 0 ,"targetEnd": 0 ,"mappingClass":"LegalDescriptionMapper", "extract":"all"},
{"nbr": 1 ,"frName":"APN_Number","extract":"apn0","alternate":"LegalDescription", "targetName":"APN 1","targetLength": 6, "mappingClass":"LegalDescriptionMapper"},
{"nbr": 2 ,"frName":"APN_Number_2","extract":"apn1","alternate":"LegalDescription", "targetName":"APN 2","targetLength": 6,"targetStart": 324 ,"targetEnd": 329 ,"mappingClass":"LegalDescriptionMapper"},
{"nbr": 3 ,"frName":"APN_Number_3","extract":"apn2","alternate":"LegalDescription", "targetName":"APN 3","targetLength": 5,"mappingClass":"LegalDescriptionMapper"},
{"nbr": 4 ,"frName":"APN_Number_4","extract":"apn3","alternate":"LegalDescription", "targetName":"APN 4","targetLength": 5,"mappingClass":"LegalDescriptionMapper"},
{"nbr": 5 ,"frName":"Lot","extract":"lot","alternate":"LegalDescription", "targetName":"Lot","targetLength": 6, "mappingClass":"LegalDescriptionMapper"},
{"nbr": 6 ,"frName":"Block","extract":"block","alternate":"LegalDescription", "targetName":"Block","targetLength": 6,"mappingClass":"LegalDescriptionMapper"},
{"nbr": 7 ,"frName":"Subdivision","extract":"subdivision","alternate":"LegalDescription", "status":"mult","targetName":"Tract/Subdivision Name","targetLength": 30,"mappingClass":"LegalDescriptionMapper"},
{"nbr": 8 ,"frName":"Tract","extract":"tract","alternate":"LegalDescription", "status":"mult","targetName":"Tract/Subdivision Name","targetLength": 30,"mappingClass":"LegalDescriptionMapper"},
{"nbr": 9 ,"frName":"Parcel","extract":"parcel","alternate":"LegalDescription", "targetName":"Parcel","targetLength": 6,"mappingClass":"LegalDescriptionMapper"},
{"nbr": 10 ,"frName":"Book_Parcel","extract":"parcelbook","alternate":"LegalDescription", "targetName":"Parcel Map/Book","targetLength": 6,"mappingClass":"LegalDescriptionMapper"},
{"nbr": 11 ,"frName":"Page_Parcel","extract":"parcelpage","alternate":"LegalDescription", "targetName":"Parcel Map/Page","targetLength": 6,"mappingClass":"LegalDescriptionMapper"},
{"nbr": 12 ,"frName":"Section","extract":"section","alternate":"LegalDescription", "targetName":"Section","targetLength": 3,"mappingClass":"LegalDescriptionMapper"},
{"nbr": 13 ,"frName":"Township","extract":"township","alternate":"LegalDescription", "targetName":"Township/Municipality Code","targetLength": 3,"mappingClass":"LegalDescriptionMapper"},
{"nbr": 14 ,"frName":"Range","extract":"range","alternate":"LegalDescription", "targetName":"Range","targetLength": 3,"mappingClass":"LegalDescriptionMapper"},
{"nbr": 15 ,"frName":"Unit","extract":"unit","alternate":"LegalDescription", "targetName":"Unit Number (Legal Condominium Unit Number)","targetLength": 10,"mappingClass":"LegalDescriptionMapper"}
]}