Docs
Browse Docs
Field guide · Categories and codes

Inconsistent category labels

A column meant to hold a few fixed values holds many spellings of them.

What it looks like

Before
statestatus
vaactivee
Virginiaactive
VAActive
Californiacancelled
CAcanceled
After
statestatus
VAactive
VAactive
VAactive
CAcanceled
CAcanceled

How it happens

  • The field was free text when it should have been a fixed list.
  • The allowed values changed over time and old rows were never updated.
  • Typing errors, different capitalization, and regional spellings accumulate.

What it breaks

  • Group-by reports show one row per spelling, so no single line gives the true total.
  • Filters miss rows: selecting active leaves out Active and activee.
  • Charts grow a long tail of tiny categories that are really the big ones misspelled.

How to spot it

  • Count distinct values. A column with five real categories and thirty distinct values has this problem.
  • Sort the distinct values by frequency. The rare ones are usually variants of the common ones.
  • Lowercase and trim the column, then count again to see how much is only formatting.

How to fix it

  • Write down the canonical list first. Without it there is nothing to map to.
  • Map each variant to its canonical value, and keep the mapping so it can be reused.
  • Send values that do not clearly belong to any category to a person, instead of forcing them into the nearest one.

TermsCanonical value, Cardinality, Standardization, Validation

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.