Genpact Cora Knowledge Center

Support

Culture Resolution Configuration

Overview

The culture-resolution.yaml configuration file defines the language and style for the data in the system.

Template

kind: ruleSet 
metadata: 
  name: extraction/v1/documents/culture-resolution 
spec: 
  nodes: 
  - if: 'it["Country"] == "US"' 
    then: 
      culture: en-US 

  - if: 'it["Country"] == "USA"' 
    then: 
      culture: en-US 

  - if: 'it["Country"] == "Germany"' 
    then: 
      culture: de-DE 

  - if: true 
    then: 
      culture: null 
Parameter Description
If then The condition based on which culture is decided.
Culture The language and style for the data in the system.

For example, in the above template:

 - if: 'it["Country"] == "US"' 
    then: 
      culture: en-US

If the country is US, then the culture chosen is en-US.