How to Clean Candidate Location Data with Claude or Gemini Before Outreach
To clean candidate locations with Claude or Gemini, ask for JSON and make it flag ambiguous places, not guess. Expect a quarter of rows to need review.
- Saves time
- More replies
- Better hires
Oct 22, 2026 · 5 min read

"Can I just paste the whole location column into Claude and get clean city and country fields back?" Yes, and it works well, except for a handful of rows that come back wrong with no warning. In our test, a plain request got 30 to 34 of 37 messy strings fully right. A short prompt built around one idea, never guess an ambiguous place, brought that to 36 or 37 and cut the guessing on ambiguous names from 14 of 16 to 0.
What did the plain request get wrong?
We made up 37 strings of the kind a CRM collects: "TLV / Remote", "ת״א", "Portland", "Georgia", "Netanya/Raanana", "Open to relocate to Canada". Then we asked Claude and Gemini to return JSON with city, region, country code and work mode, twice each, and scored every row against an answer key by script.
Four ambiguous strings (Georgia, Cambridge, Portland, Washington), two runs per tool.
Source: our test, scored by script against an answer key
Show the data
| Plain request | With the rule | |
|---|---|---|
| Claude | 6 of 8 | 0 of 8 |
| Gemini | 8 of 8 | 0 of 8 |
The easy rows were fine. The plain answers failed on the same few rows, and only once did a tool admit it. Claude, in one of two runs, listed its doubts in a note under the JSON, where they are lost the moment you paste the data into a CRM. Gemini gave no warning, and disagreed with itself: "Georgia" became the country in one run and the US state in the other.
| Raw string | Plain request (Gemini) | With the rule |
|---|---|---|
| Cambridge | Cambridge, UK | Flagged, both places named |
| Washington | Washington, DC | Flagged |
| Netanya/Raanana | Netanya only, Raanana dropped | Country IL, city empty, both in the note |
| Open to relocate to Canada | Country set to Canada, in 2 of 2 runs | Canada kept in its own relocation field |
What is the rule that stops the guessing?
Nine short rules, in a prompt with the usual parts. It adds two fields, needs_review and note, so a human can find the rows that matter.
PERSONA
You are a recruiting operations specialist who cleans candidate data before it is loaded into a CRM.
TASK
Turn each raw location string below into clean CRM fields. Return only a JSON array with one object per input line, in the same order, with these fields: original, city, region, country_code, work_mode, open_to_relocate_to, needs_review, note.
RULES
- Keep "original" exactly as given.
- city: the official English name without diacritics trouble (for example "Zurich", "Munich"). Null if the text names no single city.
- country_code: ISO 3166-1 alpha-2 (for example "IL", "US"). Null if the text does not say or clearly imply one country.
- work_mode: "remote", "hybrid", "onsite" or "unknown". Use "remote" or "hybrid" only if the text says so. Never assume "onsite".
- Where someone says they want to move somewhere, put that place only in open_to_relocate_to, never in city or country_code. Their current place goes in city.
- If a place name could be more than one place and the text does not settle it, do not pick the most famous one. Set city and country_code to null, needs_review to true, and say in note which places it could be.
- If a line names two places, set needs_review to true and put both in note.
- Use the other words in the line (a state, province or country) to settle a name that exists in several countries.
- Never invent a region or a country the text does not support.
Locations (one per line):
[paste only the location column]
Paste only the location column. Names, emails and CV text are personal data you do not need to send.
Did it get everything right?
Nearly. The rule did not hold everywhere. In both runs Gemini marked "Open to relocate to Canada" and the Austin-to-Denver line as no review needed, although the second names two places and the rule says to flag that. So also filter for any row with a value in open_to_relocate_to. The other misses were over-caution: in one run Claude sent the Austin line to review with an empty city, and Gemini left "Greater Boston Area" without a city in both runs. A safe miss costs a minute; a confident wrong country costs a wrong message.
The price of the rule is a review pile. In our four runs with it, 7 to 10 of 37 rows were flagged, mostly the four truly ambiguous names, "N/A", "Anywhere" and the two-city line.
What do I do with the flagged rows?
| The row says | Do this |
|---|---|
| Ambiguous name (Portland) | Check the CV or ask in your first message |
| Two cities | Leave city empty, keep both in the note, ask which one in your first message |
| Relocation only | Leave current location empty, tag the target place |
| Region (Gush Dan, EMEA) | Store the region, leave city empty |
| "Anywhere" or "N/A" | Leave empty, do not guess |
Spot-check 20 rows by hand before loading. Other messy columns work the same way: normalizing job titles in a spreadsheet and how ChatGPT and Claude handle a messy ATS export.
This article is general information, not legal advice. Laws differ by country and change often, so consult your lawyer before you rely on it for your situation.


