The short version: we built a trust-scoring system for logistics partners. You look up a freight forwarder, NVOCC, customs broker or other logistics company and get a score from 0 to 100, built from official company registers, the US FMC licence list, the GLEIF LEI register, sanctions and debarment lists, and reviews, complaints and news. It covers over 200,000 companies in 124 countries. It is our own early-access product, not a client system. The hardest engineering in it is not the score. It is deciding which records are the same company, and which are not.
Matching mistakes are not symmetrical here. Missing a sanctions match is bad. Publicly attaching a sanctions listing to an innocent company that happens to share a name is worse: it is visible, it harms a real business, and it destroys trust in every other score on the site. Almost every design decision below follows from treating that second error as the one to avoid first.
The sources, and who owns which fact
- India's Ministry of Corporate Affairs (MCA) company master data, downloaded through data.gov.in and keyed on CIN or LLPIN. A CIN embeds the company's industry (NIC) code, which we combine with name keywords to keep logistics companies.
- UK Companies House free monthly snapshot of live companies, keyed on company number and filtered by SIC code and freight keywords. Because the snapshot lists only live companies, a company we hold that is missing after a complete run is marked dissolved.
- Singapore's ACRA open data on data.gov.sg, keyed on UEN and filtered by SSIC code.
- The US Federal Maritime Commission (FMC) list of licensed and registered ocean transportation intermediaries. A company that drops off a later list is marked inactive.
- GLEIF, the global LEI register. An LEI is issued after the issuer checks the entity against its business register, and the record cites that register's number, which makes it a useful bridge between countries.
- Sanctions and debarment lists from OFAC, the UN, the EU and the World Bank.
Sources are ranked. A primary source is the company's register of record (MCA, Companies House or ACRA), and it owns the legal name, registered address and founding year. A secondary source (FMC or GLEIF) only fills gaps and adds its own identifier and check. Details a company has corrected on its own profile are never overwritten by an import.
One profile per company: the linking ladder
Every importer turns its rows into the same record shape and hands them, in batches, to one shared upsert engine. For each record it tries these steps, in order:
- 1. The source's own identifier. A CIN, UK company number, UEN, FMC organisation number or LEI. These have unique indexes, so a re-import updates in place.
- 2. An identifier the source cites. A GLEIF record that says the entity is registered under a given CIN links to the profile that already holds that CIN.
- 3. The exact normalised name in the same country, but only if exactly one profile has that name and that profile does not already hold a number from this source. If two profiles share the name, the record is not linked by name at all.
- 4. Otherwise, a new profile.
If a cited identifier already belongs to a different profile, the engine drops it from the incoming record rather than merging the two profiles or failing the batch. That choice leaves some duplicate profiles in the data, and we accept it. A duplicate is untidy. A wrong merge mixes two companies' register status, ownership and sanctions results, and is much harder to notice.
History is kept as well. Each source writes a new verification result for a company only when its facts have changed, so the table is a record of what each register said and when. A change in register status alerts anyone watching that company, and the company is rescored.
Name normalisation
Register names arrive in capitals, with punctuation, abbreviations and legal forms written every possible way. Normalisation is deliberately simple and fully predictable:
- Unicode NFKD decomposition, then accents removed and everything lower-cased.
- "&" becomes "and", and the name is split on anything that is not a letter or a digit.
- Legal-form and filler words are dropped: private, pvt, limited, ltd, llp, llc, inc, pte, gmbh, plc, fze, dmcc and similar forms from many jurisdictions, plus "the", "and", "co" and "ms".
So "Example Freight Private Limited" and "EXAMPLE FREIGHT PVT. LTD." both become example freight. The trade-off is that stripping words can make distinct names collide: "The Example Company" and "Example and Co" normalise to the same thing. That is acceptable for search and for proposing candidates. It is also why a normalised name on its own is never allowed to confirm anything serious.
Search runs on PostgreSQL with the pg_trgm extension. Word similarity on trigrams handles typos, so a misspelt name still finds the company, and JSONB containment finds a company by any of its identifiers: CIN, LLPIN, UK company number, UEN, LEI, FMC number, GSTIN, IEC, PAN, email or phone. GSTIN and PAN are checked offline for format, including the GSTIN's mod-36 check character. A well-formed number does not prove that a registration is active, and the product does not claim it does.
Sanctions screening: three outcomes, not two
The sanctions lists are loaded into their own tables: one row per listed entry, and one row per name or alias, normalised the same way as company names. A trigram index on the normalised names lets one SQL query find, for a batch of companies, every listed name with a similarity of at least 0.85. Two filters run first. Companies are only ever compared with listed entities, never with listed individuals, vessels or aircraft. And names shorter than six characters after normalisation are not screened at all, because they are too generic to mean anything.
Each candidate then gets one of three outcomes:
- Confirmed match. Either the normalised names are identical, the name has at least two words, and the country does not conflict (the listing gives the company's country, or gives no country); or a registration number cited in the sanctions record is the company's own number.
- Possible match. A similar name (similarity of 0.85 or more), or an identical name listed against a different country. It is shown as under review and has no effect on the score until a person confirms it.
- Clear. Nothing above the threshold.
The registration-number path matters more than it looks. Sanctions records often carry the listed company's number in free-text remarks, in patterns such as "C.I.N. [number] (India)", "Company Number [number] (United Kingdom)", "Registration ID [number] (Singapore)" or "Legal Entity Number [LEI]". We parse those remarks with a pattern per country, check each value against that country's format (a CIN has a fixed structure; UK numbers are zero-padded to eight characters) and index them as tokens such as cin:... or uk_crn:.... Names change; registration numbers do not. A company that renamed itself after being listed still matches, on evidence a reviewer can check. When an entry is found both by name and by number, it is kept once, as the stronger number match.
Only a confirmed match changes the score, and it changes it completely: the overall score is set to 0. Confirmed matches also list sanctioned vessels linked to the listed company, by name and IMO number. Every screening result records which lists were checked and the version of each, so any result can be traced to the exact list it ran against. Each list is replaced atomically, so a failed download leaves the previous copy in place. An unchanged result only has its timestamps refreshed; a changed one adds a history row and triggers a rescore.
Why the confirmed rule is so strict
Logistics company names are built from a small vocabulary: global, international, shipping, logistics, freight, marine, cargo. Strip the legal forms and many unrelated companies in different countries end up with very similar names. A fuzzy name score that is fine for a search box would, as a sanctions rule, regularly link real businesses to listings that have nothing to do with them. A one-word name is riskier still, so a single word is never enough to zero a score.
The cost of strictness is real, and we would rather state it. A listing that spells a company's name differently and cites no registration number will not become a confirmed match. It appears as a possible match for a person to review; it does not disappear. That is the trade we chose: recall is handled by human review, and only evidence that would convince a reviewer is allowed to act on its own.
Published scoring rules
The score has four categories: Registration and Licensing (25%), Financial Health (20%), Reputation (25%) and Compliance and Risk (30%). Each starts at a base of 50, adds or subtracts the points of every rule that fires, and is clamped to 0 to 100. The overall score is the weighted average, with three tiers: Safe from 70, Caution from 40 to 69, and High risk below 40. Every score is stored with the version of the model that produced it.
Every rule is published on a "How scoring works" page, and that page is generated from the code. A test compares the published points with the scoring function, so the two cannot drift apart without failing the build. Rules whose data source is not connected yet are listed but never fire, and the page says so. GST and IEC numbers, for example, get a format check only; there is no live check against those systems.
Facts, not verdicts
Some signals are shown without being turned into a judgement:
- Register status. A struck-off or dissolved company loses registration points because the register says it no longer exists as a legal entity, which matters if you are about to pay it. Struck off does not mean anyone did anything wrong; companies are closed for ordinary reasons every day.
- Shared registered address. We show how many other companies share an address and how many of those are closed. It does not change the score. Serviced offices, accountants and port buildings host many legitimate companies.
- Similar names. We show near-identical names of older companies, and names that use a major carrier's or forwarder's brand where GLEIF shows no ownership link to that group. Many genuine local subsidiaries exist, so the advice is to confirm with the brand directly.
- Right of reply. A company can dispute what is shown about it, and replies from verified claimants are published.
Limits, and what we would do differently
- Refresh is manual. Imports are run by hand today, not on a schedule, and watchlist alerts fire when data is re-imported. This is not continuous monitoring, and we do not describe it that way.
- Coverage. There are no national registers for China, the EU or the UAE yet. GLEIF gives a verified base layer for companies there that hold an LEI.
- Country matching relies on a table of how country names appear in list address fields. A gap in that table can only make a confirmed match less likely, not more, but it is still a gap.
- The "no country on the listing" case. An identical name of two or more words, against a listing that records no country, counts as confirmed. It is rare, but it is the one place the rule rests on the name alone. We would add a second signal there, such as a city or address, or send it to review.
- Duplicates. Conservative linking leaves some duplicate profiles. A review queue for proposed merges, with an undo, is the next step.
- No AI in the matching path. This one is deliberate. Every decision is a rule that a reviewer, or the company concerned, can read and check.
If you have a matching problem like this
Customer and supplier deduplication, counterparty screening and KYC all share this shape: identifiers first, readable rules, three outcomes, and human review for the uncertain middle. We build these as services; see entity resolution and record matching and KYC, AML and sanctions screening platforms. Most engagements start with a two-week Architecture Sprint, in which we measure your data before designing the matcher.