Docs
Browse Docs
Field guide · Text and encoding

Inconsistent capitalization

The same value appears in capitals, in lowercase, and in mixed case, and software treats each as different.

What it looks like

Before
namecityemail
ANA RUIZrichmondAna.Ruiz@Example.com
ben mcallisterNEW YORKben@example.com
Dee van der BergPortlandDEE@EXAMPLE.COM
After
namecityemail
Ana RuizRichmondana.ruiz@example.com
needs a decisionNew Yorkben@example.com
Dee van der BergPortlanddee@example.com
A lowercase name does not say whether its owner writes McAllister or Mcallister. The third name is already as its owner writes it and is left alone.

How it happens

  • Some people type with caps lock on, some never use the shift key, and nothing at entry enforces a style.
  • An older system stored everything in capitals, and its rows were merged with newer ones.
  • A blanket capitalization rule was applied earlier and damaged names that do not follow it.

What it breaks

  • Exact matching treats differently cased values as different, so groups split and lookups fail.
  • Duplicate checks miss records that differ only by case.
  • Letters and labels printed from the data look careless, or address people by a name in capitals.

How to spot it

  • Count distinct values, then count again after lowercasing. The difference is the size of the problem.
  • Look for values that are entirely uppercase or entirely lowercase in a column that is mostly mixed case.
  • Check fields used for matching, such as email and codes, before fields used for display.

How to fix it

  • Decide the rule per column. Codes and email addresses usually take one case throughout; names and places take the case their owners use.
  • For matching, compare on a lowercased copy and leave the displayed value alone.
  • Apply capitalization rules to names with care. Particles, prefixes, and abbreviations break any simple rule, and the exceptions need a person or a trusted source.

TermsNormalization, Standardization, String, Canonical value

Karg checks for many of these when it profiles a file, applies the fixes it is confident about, and sets the rest aside for your review. See how it works, or have our team clean your data for you.