Audit a taxonomy for empty or duplicate terms

ContentBeginner~10 min

Before you start

A connected site with content reads enabled. No writes and no integrations needed.

Categories and tags accumulate cruft. Terms that once had posts and now have none, near-duplicates that crept in over years of different people filing content, a plural sitting next to its singular. None of it is urgent, so none of it ever gets cleaned, and the taxonomy list slowly turns into something nobody wants to open.

This is the read-only survey that makes the cleanup possible. It counts every term, surfaces the empty ones and the likely duplicates, and hands you a short list to act on. It cannot change anything.

The prompt
Audit the [category] taxonomy for me, read only, change nothing. List every
term with its post count, then call out two things: the empty terms with a
count of zero that are just cluttering the list, and the likely duplicates,
terms whose names or slugs are near-matches of each other, like a singular and
a plural, or the same word with different casing or a stray typo. For any pair
you are unsure about, read both terms and show me their details side by side so
I can decide. Put a short summary at the top: how many terms, how many empty,
and how many possible duplicates.

Why this is safe to run

Both abilities behind this prompt are reads. Listing the terms with their counts and reading a single term to compare a pair both write nothing, so the survey cannot merge, rename, or delete a thing. That is the point: it is the look-before-you-touch step, and you stay the one who decides what to do with what it finds.

It also does not overreach on the judgment call. It flags duplicates as candidates by comparing names and slugs for near-matches, and where it is unsure it puts the two terms side by side and asks you rather than assuming they are the same. When you are ready to act on the list, the actual cleanup, renaming, merging, or removing a term, is a separate step you take deliberately.

Already connected? Skip the paste. Ask your agent for the “audit a taxonomy for empty or duplicate terms” recipe, or just name the taxonomy you want surveyed, and it runs the same reads on your own install.

How it works

  1. List every term in the taxonomy you name, with its post count.
  2. Call out the empty terms whose count is zero.
  3. Flag likely duplicates where names or slugs are near-matches.
  4. Read both terms in any uncertain pair and show them side by side.
  5. Put a short summary on top: total terms, empty terms, possible duplicates.

Questions

Can it clean up the terms it finds?
No. This one only reads. It hands you the list of empty and duplicate terms, and you decide what to merge or delete. It is the safe first step before any change.
How does it decide two terms are duplicates?
It compares names and slugs for near-matches, like a singular next to its plural or the same word in different casing. It flags them as candidates for you to confirm, it does not assume.