Domains
Guides

Domains

Organizations, people and taxa. A domain is a resolution profile.

A resolution profile describes one entity type: its attributes and their sensitivity, normalizers, blocking keys, comparisons, constraints, weight caps, relationship signals, and the guidance a language model is given. Three profiles ship, each with a starter model for stores too small to fit their own.

from thisness import Thisness
from thisness.profiles.organization import organization
from thisness.profiles.person import person
from thisness.profiles.taxon import taxon

engine = Thisness("identity.duckdb", profiles=[organization(), person(), taxon()])

Organizations

Attributes: name, registration_ids, domain, website, email, country, city, postal_code, address_line.

Names are cleaned first (payment-processor prefixes, reference and store numbers, ERP notes: see Supplier lists), then compared after removing legal forms and normalizing case, punctuation and common abbreviations. The name comparison distinguishes:

LevelExampleEffect
exact_key"Haleon UK Finance Limited" and "HALEON UK FINANCE LTD"strong support
number_differs"Omega Holdings II" and "Omega Holdings III"evidence against
token_typo"Zalbalt Consulting" and "Zalblt Consulting"support
token_subset"Castle Hearing" and "Castle Hearing Group"0 bits; a relationship signal
qualifier_differs"Bridgepoint Advisers UK" and "Bridgepoint Advisers Europe"0 bits; a relationship signal
acronym"IBM" and "International Business Machines"support
trade_name"Acme Holdings LLC dba Acme Tools" and "Acme Tools"0 bits; a relationship signal
truncated_prefix"SQ *HOWDEN JOINERY PEO" and "Howden Joinery People Ltd"0 bits: a cut card descriptor is not a whole name

Common values are adjusted for how common they are: a frequent name says less than a rare one, and a postcode shared by hundreds of companies (a formation agent's address) says almost nothing. The postcode adjustment only discounts, since a rare shared postcode is already worth its full weight.

A model decides contested organization pairs when one is configured (model_role="decide").

People

Attributes: name, name_order, given_name, family_name, email, phone, date_of_birth, employer, address_line, city, country, postal_code, identifiers.

Nicknames ("Bob" for Robert), initials and spelling variants of one name are the same person when nothing contradicts it. Different dates of birth, or different identifiers in one scheme, mean different people. A household (one family name, one address, often one phone) is a relationship signal, not a match: a parent and child can share a full name, and a "Jr." on one record only is a question for review, not a match.

A source that writes names family first without a comma, as registries such as SEC EDGAR do ("SMITH JOHN A JR"), sets name_order to family_first on its records; the default is given_first. A family-first name of three words is also read with a compound family name ("Pineyro Sublett Carla" as Carla Pineyro Sublett).

Dates of birth are never sent to an external model, and contact details go out hashed. A model only suggests answers to people reviews (model_role="suggest"): on 1,000 real company insiders, a model deciding pairs merged namesakes, while 86% of its review suggestions would have been right (design 09).

Taxa

Scientific plant names, parsed into genus, epithets, rank and authorship ("Quercus robur L.", "Q. robur subsp. pedunculiflora (K.Koch) Menitsky").

An authority's rows (World Flora Online, the Catalogue of Life) can be loaded as observations. Their accepted name decides which taxon a synonym belongs to, and the label of every entity says which authority supplied it. Homonyms (one binomial, two authors) are capped as evidence against.

thisness --store taxa.duckdb demo --type taxon --reference   # WFO's rows too
thisness --store taxa.duckdb demo --type taxon --col         # and the Catalogue of Life's

The fixture for three plant families ships with the package. Other families are fetched from ChecklistBank on demand and cached under ~/.cache/thisness/wfo.

Writing a profile

A profile is a ResolutionProfile from thisness.profiles.base. The three shipped profiles are the reference: start from the one closest to your entity type, and see design 03 for how candidates, comparisons and the edge policy fit together.

View the source of this page