FDE Times dataFDE jobs open 932▼14 Change in open roles over 7 days, like-for-like: roles from companies we started tracking this week are left outNew in 7 days 62Companies hiring 202Remote-friendly 24%Median US pay $201kTop hirer Databricks 92
中文VI

The newspaper of the Forward Deployed Engineer

Tools

OpenRefine won't merge client data until a person signs off

For forward deployed engineers, reviewing each proposed merge puts decisions about the client's data in the hands of the client's own domain experts.

ShareLinkedInFacebookX

In brief

  • OpenRefine's clustering only makes suggestions. Data changes only where a user approves a merge.
  • The algorithms compare characters, not meaning, and fingerprint strips diacritics, so accented names are easily merged by mistake.
  • Operation history can be exported as JSON for reuse, but project archives still contain the client's confidential data.
Hypothetical example of a cluster review in OpenRefine. Fingerprint puts three values, \"Nguyen Van Hoa\", \"nguyen van hoa\" and \"Hoa Nguyen Van\", in one cluster, and the business user approves it. \"Le\" and \"LE\" also share a cluster, but the business user rejects it because they are two different suppliers.
Hypothetical example: fingerprint ignores case and word order and strips accents, so it can group variants of one name, but it may also put two different suppliers in the same cluster. Only a business user can tell the two cases apart. Source: official OpenRefine documentation, as cited in the article.

One sentence in OpenRefine’s official documentation should decide how you use the tool on a client site: clustering always asks the user to review each suggested fix. The algorithm only proposes. Data changes only where the user has approved a merge.

OpenRefine describes itself as a free, open-source tool for working with messy data. Its core features run without an internet connection, which matters when you are working inside a client’s internal network.

Many engineers find the rule of reviewing every merge slow. For an FDE it looks different. A column of customer, supplier or branch names that everyone types their own way is common on client sites, and when that column is inconsistent, whatever you build downstream, from reports to joins to lookup agents, tends to break with it.

The person who knows whether two rows refer to the same company is the client’s domain expert, not you.

The algorithm sees only characters, so who decides?

According to the technical documentation, OpenRefine’s clustering works purely at the level of syntax: how characters combine to form the value in a cell. It has no idea whether two names refer to the same legal entity. That makes the review the main part of the job; the algorithm is just a source of suggestions.

The University of Illinois library’s OpenRefine guide also recommends having a subject-matter expert present during clustering to anticipate errors. On a client site, that person is usually an accountant, a purchasing officer or an operations lead. You handle the technical side; they click approve or reject.

The documentation advises trying the methods in the order the tool lists them. Fingerprint produces the fewest false positives, so it is the sensible place to start. At the other end, nearest neighbor PPM produces many false positives and should be used only as a last resort.

What a review session looks like

Take a hypothetical case. A client’s supplier column contains “Nguyễn Văn Hòa”, “Nguyen Van Hoa” and “Nguyễn Văn Hoà”. Run fingerprint and all three almost certainly land in one cluster, because fingerprint strips diacritics. The documentation gives the example of “gödel” and “godél” both producing the same key, “godel”.

That same feature is also the trap. Strip the diacritics and the Vietnamese names “Lê” and “Lệ” become the same string, so two different suppliers can end up in one cluster. Every language with diacritics runs into this, whether Vietnamese, French or German. The algorithm cannot tell the two situations apart; only someone who knows the supplier list well can.

So split the session into two passes. In the first, run fingerprint; the domain expert approves the obvious clusters and rejects those merged wrongly because of diacritics.

Only in the second pass try the looser methods, read more carefully, and use PPM only if some variants still remain unmerged. Every rejected cluster is a business rule worth recording so it can go into the main pipeline.

Reusable, but not entirely

Next month the client sends a new file, and you do not want to review everything again from scratch. OpenRefine lets you extract a project’s operation history as JSON. You then open a second project, go to the Undo/Redo tab, click Apply and paste in that JSON.

The documentation is also clear that not every operation can be extracted. After applying the JSON, compare the number of distinct values in the column with the previous result. Flag any step that did not rerun, so the next review session can focus on just that part.

You might consider setting up a single instance for the whole business team to share. Be careful: OpenRefine has no built-in security or version control for multiple users.

Project archive files also contain confidential data from earlier steps, so sending an archive to a colleague or to someone at a vendor means sending out client data. The safer approach is to run it offline on a machine the client provides and export only the cleaned results.

What to learn first, and how to put it on a CV

With only one evening, focus on the core loop: run fingerprint on a real column of names, read each cluster and decide for yourself whether to approve or reject it.

Once that feels familiar, learn to extract the operation history as JSON and reapply it to a second project. Leave the looser methods and PPM for later, once you have a feel for false positives.

On a CV or in an interview, do not just write “cleaned data with OpenRefine”. Describe how you organized the review with the domain experts, how many wrongly merged clusters you rejected, and how you turned the operation history into a repeatable step for later files.

That story shows an interviewer two concrete things: you know when to let the client make the call, and you know how to keep their data safe.

A clean column of names draws no attention, but a wrongly merged one is caught in the very first report. That is why reviewing each merge, slow as it sounds, is the step most worth doing.

Was this article useful?

Use with your AI assistantAsk Claude ↗Ask ChatGPT ↗
7 sources
Read next on the roadmap · Stage 1: FoundationsWith BAML, the higher version number is the older languagev0 and v1 are separate languages, so FDEs need to settle on one before writing a client's first function.