Location aliases
A focused editor for the city_state_aliases curation domain. Use this when a user reports that "I searched for X but trials in X aren't showing up" — usually because X is stored as a variant spelling in some source registries.
The Delhi / New Delhi problem
CT.gov stores Delhi; CTRI stores New Delhi. Without an alias, filtering by Delhi misses 800+ CTRI trials in the same place. With an alias mapping new delhi → Delhi, both filters return the union.

Three tabs
- Cities — most common need; covers the patient/operator vocabulary mismatch.
- States — less common, but matters for India (Maharashtra vs MH variants).
- Countries — typically empty; the underlying data is already alias-folded at scrape time. Add only when a user explicitly types "USA" / "UK" / "UAE".
The discovery panel
Each tab has a Current aliases list at the top (every variant → canonical pair, with inline delete) and a Discovery panel below — distinct city/state/country values from trial_locations with trial counts.
Use the search box to find candidates; click Alias to… on any row to map it to a canonical name. A <datalist> autocomplete suggests existing canonicals.
How a curator uses it
1Pick a tab (usually Cities)
2Search the discovery list for the variant the user reported
E.g. "New Delhi" has N trials in the corpus; "Delhi" has M.
3Click "Alias to..." → type the canonical → Save
4Within 5 minutes, every search and chat sees the new alias
Bidirectional matching kicks in immediately: filtering by either "Delhi" or "New Delhi" returns the union from then on.