A culture-specific parsing grammar allows you to specify different parsing rules for different languages and cultures. This allows you to parse data from different countries in a single Open Parser stage, for example phone numbers from the United States and phone numbers from the United Kingdom. By default, each input record is parsed using each culture's parsing grammar, in the order specified in the Open Parser stage. You can also add a CultureCode field to the input records if you want a specific culture's parsing grammar to be used for that record. For more information, see Assigning a Parsing Culture to a Record.
- In Enterprise Designer, go to .
- Click the Domains tab.
- Click Add.
- Type a domain name in the Name field.
- Type a description of the domain name in the Description field.
-
If you want to create a new, empty domain, click OK. If
you want to create a new domain based on another domain, do the following:
- Select Use another domain as a template if you want to create a new domain based on another domain.
- Select a domain from the list. When you click OK in the next step, the new domain will be created. The new domain will contain all of the culture-specific parsing grammars defined in the domain template that you selected.
- Click OK.
-
Define the parsing grammar for the global culture. The global culture is the
default culture and is used to parse records that have a culture for which no
culture-specific parsing grammar has been defined.
- Define a culture-specific grammar for each culture you want. To add culture-specific grammars, click Add and define the grammar using the same steps as for the global culture. Repeat as needed to add as many cultures as you need.
- When you are done adding culture-specific parsing grammars, click OK.
The domain and cultures you have created can now be used in the Open Parser stage to perform parsing.