# Company Name Matcher & Normalizer (Multilingual) (`arched_axolotl/company-name-matcher`) Actor

Are these two names the same company? Compares pairs of names or records and returns a score, a verdict and the reasons. Strips Inc./Ltd/GmbH/S.A./股份有限公司/株式会社/주식회사, folds Traditional and Simplified Chinese, full-width text and accents. Instant, no LLM. Built for AI agents.

- **URL**: https://apify.com/arched_axolotl/company-name-matcher.md
- **Developed by:** [Ryan Lin](https://apify.com/arched_axolotl) (community)
- **Categories:** Lead generation, AI, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Company Name Matcher & Normalizer: are these two names the same company?

Give it pairs of company names, or pairs of whole records, and get back a verdict, a score and the reasons for each pair. It is rule-based: no LLM, no external API, the same input always gives the same answer, and a run takes about as long as starting the container.

比對兩個公司名稱（或兩筆資料）是否為同一家公司：自動去除「股份有限公司／有限公司／株式会社／주식회사／Inc.／GmbH」等公司型態、繁簡體與全形半形差異，回傳分數與判斷理由。

| A | B | Verdict | Why |
|---|---|---|---|
| Acme Inc. | ACME, Incorporated | same | identical after removing legal forms, case and punctuation |
| 台灣積體電路製造股份有限公司 | 台湾积体电路制造股份有限公司 | same | Traditional and Simplified Chinese are folded |
| 株式会社トヨタ自動車 | トヨタ自動車（株） | same | 株式会社 / (株) / ㈱ before or after the name |
| Taiwan Semiconductor | Taiwan Cement | different | the distinctive words differ |
| IBM | International Business Machines Corp. | possible | one name is the initials of the other |
| TSMC, tsmc.com | 台積電, www.tsmc.com/chinese | same | same website, although the names are in different scripts |
| Sunrise Bakery, 12 Market St | Sunrise Bakery, 98 Lake Rd | different | same name, different addresses |

These rows are the sample input; the verdicts are from a real run.

### What you can do with it

- **Let an AI agent check a match before it acts.** "Is the 'Hon Hai Precision Industry Co., Ltd.' on this invoice the same as 'Hon Hai Precision' in the CRM?" is one tool call with a deterministic answer.
- **Look one company up in a short list.** Pass `name` and `candidates` and get the candidates ranked.
- **Normalise names** before you store or join them: `names` returns each name without its legal form, in lower case, half-width, without accents, and in Simplified Chinese.
- **Check form entries or imports row by row** in n8n, Make or Zapier.

To deduplicate a whole list or match two lists, use the companion Actor [Lead List Deduplicator & Matcher](https://apify.com/arched_axolotl/lead-list-deduplicator). It uses the same comparison rules and does not compare every pair, so it handles tens of thousands of records.

### How matching works

1. **Names are normalised.** Full-width characters become half-width, case and accents are removed (`Société Générale` → `societe generale`), `&` equals `and`, dotted abbreviations are joined (`S.A.` → `sa`), Traditional Chinese becomes Simplified.
2. **Legal forms are removed**, wherever the language puts them: Inc., Corp., Co., Ltd., LLC, PLC, GmbH, AG, KG, S.A., SAS, SARL, S.p.A., S.r.l., S.L., B.V., N.V., AB, A/S, Oy, Sp. z o.o., s.r.o., ООО, Pty, Pte, Sdn Bhd, Pvt, K.K., PT … Tbk, Công ty TNHH, บริษัท … จำกัด, 股份有限公司, 有限公司, 有限责任公司, (股), 株式会社, 有限会社, 合同会社, (株), ㈱, 주식회사, 유한회사, (주), ㈜.
3. **Common abbreviations are expanded**: Intl, Mfg, Bros, Tech, Univ, Mgmt and similar; plural and singular are treated alike.
4. **The remaining words are compared by how much they say.** A shared `Taiwan` or `Group` counts for little, a shared `Semiconductor` for a lot. When each name has a distinctive word the other lacks, the names are different, however many other words they share.
5. **Chinese, Japanese and Korean names are compared more strictly**, because one different character usually means a different company (台灣水泥 / 台灣水利).
6. **When you pass records, the other fields count.** The same registration number, website domain, email address or phone number is strong evidence. Two different registration numbers rule a match out. A different address or website lowers a match that rests on the name alone. Free-mail domains such as gmail.com and platform sites such as facebook.com are not treated as company websites.

The score runs from 0 to 1. Identical names with nothing else to go on score 0.93; a shared registration number scores 0.99.

| Verdict | Meaning |
|---|---|
| `same` | score at or above the threshold (0.85 by default) |
| `possible` | up to 0.11 below the threshold: worth a human look |
| `different` | lower, or blocked by conflicting registration numbers |
| `not_comparable` | a side is empty, or the names are in different scripts and no other field was given |

### Input

Fill in at least one of `pairs`, `name` + `candidates`, or `names`.

| Field | Type | Default | What it does |
|---|---|---|---|
| `pairs` | array | sample | Objects with `a` and `b` (or two-element arrays). Each side is a name or a record with `name`, `website`, `phone`, `email`, `address`, `registrationNumber`. |
| `name` | string | — | One name to look for in `candidates`. |
| `candidates` | array | — | Names or records, returned ranked by score against `name`. |
| `names` | array of strings | — | Names to normalise without comparing. |
| `entityType` | string | `company` | `company`, `location` (a different address or branch means different) or `contact` (people). |
| `matchPreset` | string | `balanced` | `strict` 0.92, `balanced` 0.85, `loose` 0.75. |
| `threshold` | string | — | Custom threshold between 0.5 and 1; overrides the preset. |
| `defaultCountry` | string | — | Country code for phone numbers without one, when records are compared. |
| `compactOutput` | boolean | false | Only verdict, score, reasons and explanation. |

Up to 10,000 entries per field in one run.

### Output

One item per pair, in input order. From a real run:

```json
{
    "type": "pair",
    "pairIndex": 5,
    "a": { "name": "TSMC", "website": "tsmc.com" },
    "b": { "name": "台積電", "website": "https://www.tsmc.com/chinese" },
    "isMatch": true,
    "verdict": "same",
    "score": 0.9,
    "reasons": ["same_domain", "names_in_different_scripts"],
    "explanation": "Same website or email domain; names are written in different scripts and cannot be compared as text.",
    "nameSimilarity": null,
    "normalizedA": "tsmc",
    "normalizedB": "台积电",
    "legalFormsA": [],
    "legalFormsB": [],
    "threshold": 0.85
}
```

```json
{
    "type": "pair",
    "pairIndex": 4,
    "a": "IBM",
    "b": "International Business Machines Corp.",
    "isMatch": false,
    "verdict": "possible",
    "score": 0.763,
    "reasons": ["name_acronym"],
    "explanation": "One name is the initials of the other.",
    "nameSimilarity": 0.82,
    "normalizedA": "ibm",
    "normalizedB": "international business machine",
    "legalFormsA": [],
    "legalFormsB": ["corp"],
    "threshold": 0.85
}
```

Candidates come back as `type: "candidate"` with `candidateIndex`, `candidate` and `rank`. Normalised names come back as:

```json
{
    "type": "name",
    "name": "Müller GmbH & Co. KG",
    "normalizedName": "muller",
    "legalForms": ["kg", "co", "gmbh"],
    "branch": null,
    "script": "latin",
    "isWeakName": false
}
```

`isWeakName` is true for names that cannot identify a company on their own, such as "Global Solutions" or a two-letter name. The `OUTPUT` record of the run holds the counts per verdict and the best candidate.

#### Reason codes

`same_registration_number`, `conflicting_registration_number`, `same_domain`, `related_domain`, `different_domain`, `same_email`, `same_phone`, `same_address`, `different_address`, `different_branch`, `name_equal`, `name_spacing`, `name_word_order`, `name_typo`, `name_extra_generic_word`, `name_extra_region`, `name_extra_word`, `name_acronym`, `name_abbreviation`, `name_contains`, `name_similar`, `name_different_words`, `name_different_number`, `name_different_region`, `name_differs`, `names_in_different_scripts`. Every result also carries the same information as one English sentence in `explanation`.

### Accuracy

The rules are tested on 229 hand-labelled company pairs in English, several European languages, Chinese, Japanese, Korean, Thai, Vietnamese and Indonesian, shared with the Lead List Deduplicator.

| Set | Pairs | False "same" | Missed "same" | Precision | Recall |
|---|---|---|---|---|---|
| Development set (the rules were adjusted on it) | 155 | 0 of 64 | 0 of 91 | 1.000 | 1.000 |
| Held-out set (written afterwards, scored once) | 74 | 0 of 34 | 7 of 40 | 1.000 | 0.825 |

Read the held-out row as the realistic figure. The misses there show what the rules do not do: `Walmart Inc.` / `Wal-Mart Stores, Inc.`, `Foxconn Technology Group` / `Foxconn`, `Alibaba Group Holding Limited` / `Alibaba Group`, `富邦金融控股` / `富邦金控`, `國泰世華商業銀行` / `國泰世華銀行`, and two pairs written in different scripts. Both sets were written by the author of the rules, so real data will contain cases neither covers.

### Use with AI agents (MCP)

Add the Actor to Claude, ChatGPT, Cursor or any MCP client through the [Apify MCP server](https://mcp.apify.com):

```
https://mcp.apify.com?tools=arched_axolotl/company-name-matcher
```

Then ask, for example: *"Is 'Hon Hai Precision Industry Co., Ltd.' the same company as '鴻海精密工業股份有限公司'? Their websites are both foxconn.com."*

Input that works well for agents:

```json
{
    "pairs": [
        { "a": { "name": "Hon Hai Precision Industry Co., Ltd.", "website": "foxconn.com" },
          "b": { "name": "鴻海精密工業股份有限公司", "website": "https://www.foxconn.com/zh-tw" } }
    ],
    "compactOutput": true
}
```

Pass every field the agent knows. A name on its own cannot bridge English and Chinese; a shared website, phone or registration number can.

### Use with n8n, Make and Zapier

In **n8n**, add the **Apify** node, choose **Run an Actor and get dataset**, pick this Actor and build `pairs` from the incoming items. Each pair comes back as one n8n item with `isMatch`, `verdict` and `explanation`, ready for an **IF** node.

From anything that can call a URL:

```bash
curl -X POST "https://api.apify.com/v2/acts/arched_axolotl~company-name-matcher/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"pairs": [{"a": "Acme Inc.", "b": "ACME, Incorporated"}], "compactOutput": true}'
```

The call waits for the run and returns the results as JSON.

### Limits to know about

- **No translation or transliteration.** `TSMC` and `台積電`, or `Toyota` and `トヨタ`, cannot be matched by name. The verdict is `not_comparable`, not `different`. Add a website, phone or registration number to both sides and they can match.
- **No knowledge of the world.** The Actor does not know that Alphabet owns Google, that Facebook became Meta, or which trade name belongs to which legal entity.
- **Abbreviations that drop letters are only "possible".** Acronyms (IBM) and Chinese abbreviations (台積電 for 台灣積體電路製造) score just under the default threshold on the name alone. They become `same` with the `loose` preset or with a confirming field.
- **Typos are treated with suspicion.** `Carter Bank` / `Carver Bank` are as likely to be two companies as one typo, so a one-letter difference never reaches the default threshold on the name alone.
- **A parent and a subsidiary with the same core name** (`Acme` / `Acme Holdings`, `微軟` / `台灣微軟`) come out as `possible`.
- **Registration numbers must be of the same kind.** A VAT number on one side and a company number on the other look like a conflict and block the match. Leave the field out when the kinds are mixed.
- **Website domains are reduced without the public-suffix list.** Common forms such as `.co.uk` and `.com.tw` are handled; unusual multi-part endings may be cut one label short.
- **Japanese kanji variants** that differ from both Traditional and Simplified Chinese forms (広 / 廣) are not folded.
- **Person names** (`entityType: contact`) are matched without nicknames: `Bob` and `Robert` are different.

### FAQ

**Is my data sent anywhere?** No. The Actor makes no network requests. It reads the input, computes, and writes the results to the run's own dataset. It does not log the values it compares.

**Why not use an LLM for this?** For a handful of ambiguous pairs an LLM is a reasonable choice. For hundreds of pairs, or when the answer must be the same every time and auditable, rules are faster, cheaper and explainable. A practical split: let this Actor decide the clear cases and send only `possible` pairs to a model or a person.

**How fast is it?** The comparison itself takes microseconds per pair. A run is dominated by container start-up: a few seconds.

**Which threshold should I use?** Keep `balanced`. Use `strict` when a wrong merge is costly (billing, compliance), `loose` when a person reviews the output.

**Can I compare addresses or phone numbers alone?** Records without a name are compared on the fields they have: two records with the same phone number and nothing else score 0.86.

# Actor input Schema

## `pairs` (type: `array`):

Pairs to check, as a JSON array of objects with 'a' and 'b'. Each side is a company name (string) or a record object with any of: name, website, phone, email, address, registrationNumber. With records, a shared website, phone or registration number counts as evidence and two different registration numbers rule a match out. Example: \[{"a": "Acme Inc.", "b": "ACME, Incorporated"}]. One result is returned per pair, in the same order.

## `name` (type: `string`):

Alternative to pairs: one company name to look for in the 'candidates' list. Every candidate is scored against this name and the results come back best match first. Use it to answer 'is this company already in my list?' for a short list.

## `candidates` (type: `array`):

Names (strings) or record objects to compare with 'name'. Returned ranked by score, each with candidateIndex (its position in this array), verdict and reasons.

## `names` (type: `array`):

Optional. Names to normalise without comparing: for each one the Actor returns normalizedName (legal form removed, lower case, accents removed, half-width, Simplified Chinese), the legal forms it found, the branch part and the script. Equal normalizedName values mean the names are the same after formatting differences are removed.

## `entityType` (type: `string`):

'company' (default): the same company, including its branches. 'location': a different address or branch name means different. 'contact': the values are people; pass strings as person names or records with personName, email, phone and company.

## `matchPreset` (type: `string`):

Score needed for the verdict 'same'. 'strict' 0.92: identical after normalisation, or a shared identifier with an agreeing name. 'balanced' 0.85 (recommended). 'loose' 0.75: also accepts likely typos, extra generic words, acronyms and Chinese abbreviations on the name alone. Scores just below the threshold (by up to 0.11) get the verdict 'possible'.

## `threshold` (type: `string`):

Overrides the strictness preset: a number between 0.5 and 1 (values from 50 to 100 are read as percentages). Leave empty to use the preset.

## `defaultCountry` (type: `string`):

Two-letter country code (TW, US, DE ...) for phone numbers written without a country code. Only matters when records with phone numbers are compared; optional.

## `compactOutput` (type: `boolean`):

Return only the verdict, score, reasons and explanation for each pair, without the normalised names and legal forms. Recommended for AI agents.

## Actor input object example

```json
{
  "pairs": [
    {
      "a": "Acme Inc.",
      "b": "ACME, Incorporated"
    },
    {
      "a": "台灣積體電路製造股份有限公司",
      "b": "台湾积体电路制造股份有限公司"
    },
    {
      "a": "株式会社トヨタ自動車",
      "b": "トヨタ自動車（株）"
    },
    {
      "a": "Taiwan Semiconductor",
      "b": "Taiwan Cement"
    },
    {
      "a": "IBM",
      "b": "International Business Machines Corp."
    },
    {
      "a": {
        "name": "TSMC",
        "website": "tsmc.com"
      },
      "b": {
        "name": "台積電",
        "website": "https://www.tsmc.com/chinese"
      }
    },
    {
      "a": {
        "name": "Sunrise Bakery",
        "address": "12 Market St, Springfield"
      },
      "b": {
        "name": "Sunrise Bakery",
        "address": "98 Lake Rd, Shelbyville"
      }
    }
  ],
  "entityType": "company",
  "matchPreset": "balanced",
  "compactOutput": false
}
```

# Actor output Schema

## `results` (type: `string`):

One item per compared pair, ranked candidate or normalised name, with verdict, score and reasons.

## `summary` (type: `string`):

Run summary: counts of same, possible and different verdicts.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "pairs": [
        {
            "a": "Acme Inc.",
            "b": "ACME, Incorporated"
        },
        {
            "a": "台灣積體電路製造股份有限公司",
            "b": "台湾积体电路制造股份有限公司"
        },
        {
            "a": "株式会社トヨタ自動車",
            "b": "トヨタ自動車（株）"
        },
        {
            "a": "Taiwan Semiconductor",
            "b": "Taiwan Cement"
        },
        {
            "a": "IBM",
            "b": "International Business Machines Corp."
        },
        {
            "a": {
                "name": "TSMC",
                "website": "tsmc.com"
            },
            "b": {
                "name": "台積電",
                "website": "https://www.tsmc.com/chinese"
            }
        },
        {
            "a": {
                "name": "Sunrise Bakery",
                "address": "12 Market St, Springfield"
            },
            "b": {
                "name": "Sunrise Bakery",
                "address": "98 Lake Rd, Shelbyville"
            }
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("arched_axolotl/company-name-matcher").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "pairs": [
        {
            "a": "Acme Inc.",
            "b": "ACME, Incorporated",
        },
        {
            "a": "台灣積體電路製造股份有限公司",
            "b": "台湾积体电路制造股份有限公司",
        },
        {
            "a": "株式会社トヨタ自動車",
            "b": "トヨタ自動車（株）",
        },
        {
            "a": "Taiwan Semiconductor",
            "b": "Taiwan Cement",
        },
        {
            "a": "IBM",
            "b": "International Business Machines Corp.",
        },
        {
            "a": {
                "name": "TSMC",
                "website": "tsmc.com",
            },
            "b": {
                "name": "台積電",
                "website": "https://www.tsmc.com/chinese",
            },
        },
        {
            "a": {
                "name": "Sunrise Bakery",
                "address": "12 Market St, Springfield",
            },
            "b": {
                "name": "Sunrise Bakery",
                "address": "98 Lake Rd, Shelbyville",
            },
        },
    ] }

# Run the Actor and wait for it to finish
run = client.actor("arched_axolotl/company-name-matcher").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "pairs": [
    {
      "a": "Acme Inc.",
      "b": "ACME, Incorporated"
    },
    {
      "a": "台灣積體電路製造股份有限公司",
      "b": "台湾积体电路制造股份有限公司"
    },
    {
      "a": "株式会社トヨタ自動車",
      "b": "トヨタ自動車（株）"
    },
    {
      "a": "Taiwan Semiconductor",
      "b": "Taiwan Cement"
    },
    {
      "a": "IBM",
      "b": "International Business Machines Corp."
    },
    {
      "a": {
        "name": "TSMC",
        "website": "tsmc.com"
      },
      "b": {
        "name": "台積電",
        "website": "https://www.tsmc.com/chinese"
      }
    },
    {
      "a": {
        "name": "Sunrise Bakery",
        "address": "12 Market St, Springfield"
      },
      "b": {
        "name": "Sunrise Bakery",
        "address": "98 Lake Rd, Shelbyville"
      }
    }
  ]
}' |
apify call arched_axolotl/company-name-matcher --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,arched_axolotl/company-name-matcher"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/QYk6tGzcQDCT0iia4/builds/2YY28dZW8aicZu7MS/openapi.json
