Every grade lists its sample, method and date.
Grade your own site free
Sections
HomeRankingsGrade Your SiteGraded SitesGuidesHow We GradeMap ListingsBusiness WebsitesTradesReputationData VendorsPrivacy

Home > Guides > How to Match Business Records Across Sources

How to Match Business Records Across Sources

Normalize each field before you compare it. We match phones on the last 10 digits, streets on the house number plus the first street word with direction letters dropped, and websites on the domain without www.

Why Rules Matter

The same business can show (555) 555-0142 in one place and +1 555.555.0142 in another. Without normalizing, those look different. With loose rules, two different businesses look the same. These are the rules behind our map listing and data vendor grades.

The Code

import re
def phone(s):
    d = re.sub(r"\D", "", s or "")
    if len(d) == 11 and d.startswith("1"):
        d = d[1:]
    return d if len(d) == 10 else ""
DIRS = {"n", "s", "e", "w", "ne", "nw", "se", "sw",
        "north", "south", "east", "west"}
def street(s):
    words = re.sub(r"[^a-z0-9 ]", " ", (s or "").lower()).split()
    if not words or not words[0].isdigit():
        return ""
    rest = [w for w in words[1:] if w not in DIRS]
    return words[0] + " " + rest[0] if rest else ""
def domain(u):
    u = re.sub(r"^https?://", "", (u or "").lower())
    return u.split("/")[0].removeprefix("www.")
def name_ok(a, b):
    wa = set(re.findall(r"[a-z0-9]+", a.lower()))
    wb = set(re.findall(r"[a-z0-9]+", b.lower()))
    return bool(wa) and len(wa & wb) >= len(wa) / 2

Traps, Worst First

1. Comparing Blanks

Two empty phones are equal strings. Skip any pair where either side is blank. See blanks versus errors.

2. Full Street Strings

1234 N Main St and 1234 North Main Street Suite 4 are the same place. House number plus first real street word catches it.

3. Matching On The Field You Searched By

If you found the record by phone, do not score the phone.

4. Chains

Name matching breaks on chains with many locations. Add a distance limit. We search inside a 60 km circle and keep the closest name match. See looking up chains.

Questions People Ask

What is record linkage?

Deciding whether two records describe the same real thing. For businesses, that means comparing names, phones, addresses and websites with set rules.

Should I use fuzzy matching on business names?

Use it to find candidates, then confirm with phone, street or domain. Name alone matches too many wrong businesses.

How do I compare phone numbers in different formats?

Strip everything but digits, drop a leading 1 on 11 digit numbers and compare the last 10 digits.

Related Guides

Sources

Grade your site free | All guides

What's New

November 22, 2026
First test run. 244 businesses checked against their own websites.

Coming next
Bing listings and data vendors on the same truth set.

Grade A Site
Where Our Sample Comes From

Las Vegas, Phoenix, Dallas and Atlanta.

Open in Google Maps


Home | Rankings | Grade Your Site | Graded Sites | Guides | How We Grade

Copyright 2026 DataGraded. Site by Clickflame.