Skip to content

Consistent Casing

The Consistent Casing rule ensures text data is consistently formatted according to a specified casing standard within a dataset.
This rule is commonly used to:

  • Standardize names, labels, or codes to a defined casing convention.
  • Prevent issues in downstream processes caused by inconsistent text formatting.

Example Usage:
Check that all customer names follow Pascal Case (e.g., JohnDoe, JaneSmith) and country codes follow snake_case (e.g., united_states, great_britain).


Configuration Fields

Rule-Specific Configuration

Field NameDescriptionRequiredData Type / Options
Case TypeCasing format to validate againstYesUpper Case, Lower Case, Title Case, Sentence Case, camelCase, PascalCase, kebab-case, snake_case

Success Criteria Configuration

This section defines how the rule’s outcome is measured against expected thresholds.

Field NameDescriptionRequiredOptions / Format
OperatorComparison operation for the result countYesGreaterThan, LessThan, EqualTo, Between
Threshold ValueValue for comparison (for GreaterThan, LessThan, EqualTo)ConditionalNumber
Threshold MinMinimum value (for Between operator)ConditionalNumber
Threshold MaxMaximum value (for Between operator)ConditionalNumber
Is PercentageWhether the threshold represents a percentage or an absolute countNotrue / false (default: false)
Allow NullsWhether null values are considered validNotrue / false (default: false)
Check For MatchWhen false, validates for negation of the conditionNotrue / false (default: true)

Sample Input Data

IDCustomerCountry
1FallongreatBritain
2FranklynFryerFrance
3KathleenunitedStates
4JudieGreen
5JohnDoeFrance

Sample Configurations

Example 1: Customer Name Pascal Case Check

Configuration FieldValue
ColumnCustomer
Case TypePascalCase
OperatorGreaterThan
Threshold Value75
Is Percentagetrue
Allow Nullsfalse
Check For Matchtrue

Explanation:
Validates that at least 75% of customer names are in PascalCase.


Example 2: Country Lower Case Check

Configuration FieldValue
ColumnCountry
Case TypeLower Case
OperatorGreaterThan
Threshold Value60
Is Percentagetrue
Allow Nullsfalse
Check For Matchtrue

Explanation:
Validates that at least 60% of country names are in lower case.


Sample Output

Column NameRule NameSuccess CountFailure CountNull CountWithin Threshold
CustomerConsistent Casing500Yes
CountryConsistent Casing231No