The Parser and Postal Matcher use these types of keywords:
- ATT (Attribute)
- REC (Recode)
Attribute
The Attribute (ATT=) of a data string is essentially its definition, which allows the Parser or Postal Matcher to use this information to separate and identify various data elements. See Attribute Values.
Example
China
|
'开发区' ATT=AREA '分行' ATT=BUSINESS-BRANCH '胡同' ATT=LEVEL4-TYPE |
Japan |
'階' ATT=FLOOR-NUM-IND '私書箱' ATT=POBOX `番地' ATT=BAN-IND |
Korea |
'APT' ATT=APARTMENT '사무소' ATT=BUSINESS-BRANCH '빌라' END-WORD ATT=LEVEL4-END |
Taiwan |
'科學園區' ATT=AREA '分行' ATT=BUSINESS-BRANCH '大道' ATT=LEVEL4-TYPE |
Recode
The Recode (REC=) keyword is used to recode the value. It takes a data element and replaces it with a different data element as specified by the user. The Recode keyword can be used with the Attribute keyword in the same entry.
Example
'中国特性工商银行' INS DEF ATT=BUSINESS-NAME REC= '中国工商银行'
where:
'中国特性工商银行' | = | Entry name |
INS | = | Operation |
DEF | = | Position |
ATT | = | Keyword (Attribute) |
BUSINESS-NAME | = | Keyword value |
REC | = | Keyword (Recode) |
'中国工商银行' | = | Recode value |
Recode for Masks
Masks may be used to introduce and/or exclude literals and special characters in their recodes. For example, a mask for a telephone number is entered in this manner:
'nnn nnn-nnnn' MASK DEF REC='(nnn) nnn-nnnn'
This entry recodes the entry 978 663-9955 to (978) 663- 9955.