Skip to content

feat(match): ignore-words dictionary, and preprocessing visible in the explanation #799

Closed

Description

@athvin

Spec unit 1.11 (Classic model: preprocessing) · parent #513

What exists — most of it

er-standardize plus er-config's transforms block already cover the spec's basic clean and more:

  • transforms: ordered per-attribute cleanse rules, TransformRule (er-config/src/lib.rs:59-85); a config with no transforms block produces byte-identical staging SQL (er-standardize/src/lib.rs:90)
  • lowercase_trim, email_norm (with email_strip_plus_addressing), phone_e164, name_norm, name_variants, null_semantics, parse_date (er-standardize/src/lib.rs:16)
  • First N characters → the first_n:<n> comparator
  • Synonym dictionary → the lexicon, loaded as (term, canonical) pairs (er-server/src/runctx.rs:115) with a GET/PUT /v1/orgs/{org}/lexicon API

The gap

  • Ignore-words / stop-words dictionary. Zero matches for ignore_words or stopword anywhere in rust/crates or entities/. This is the spec's second dictionary type and it is genuinely absent — it is what makes Acme Inc and Acme LLC agree.
  • Preprocessing visible in the score explanation. The spec's done-criterion is that each step shows in the explanation and names the dictionaries used. waterfall-chart.tsx renders score contributions; whether it can name the preprocessing applied needs checking before this is sized.

Explicitly not in scope: the spec's "disable basic clean for SKUs" switch. Transforms here are per-attribute and opt-in, so a SKU column simply declares none — the switch exists to undo a global default this engine does not have.

Done when

  • an ignore-words dictionary type, reaching the comparison the same way the synonym lexicon does
  • Acme Inc vs Acme LLC agree with a suffix dictionary loaded, as a golden test
  • the explanation names the dictionaries and transforms applied to a pair, or an issue comment records why that belongs with 1.22 instead

Split out of the parent epic on 2026-11-07 by reading the spec's pillar table against this repo, file by file. Every "what exists" line below was grepped, not inferred — the parent epic's own history includes a coverage figure that was wrong because a stale design doc was trusted. Spec unit numbers refer to the DataGroomr Feature Parity Spec pillar tables. Estimates are mine and independent of the epic's total.

Activity

  1. added
    mvp
    docs-backlog
    on Nov 7, 2026
  2. self-assigned this
    on Nov 8, 2026
  3. athvin commented on Nov 8, 2026

    @athvin
    OwnerAuthor

    Claimed — working in #853 (draft). Closing that PR releases the claim.

  4. athvin commented on Nov 8, 2026

    @athvin
    OwnerAuthor

    Recording the box-3 deferral (the explanation naming the dictionaries/transforms applied to a pair): that belongs with spec unit 1.22 (score explanation), not here.

    Reasoning: the match explanation (match_scores.evidence, rendered by waterfall-chart.tsx) is per-pair model output — comparison levels and weights for one record pair. Preprocessing is a run-level input: transforms and the ignore-words/synonym dictionaries are applied to every record identically before standardization, and a run already records that preprocessing identity in the run ledger (runs.config_hash + the new runs.ignore_words_hash, sibling to lexicon_hash). Naming preprocessing inside each pair's evidence blob would repeat run-level facts on every pair and is exactly the surface 1.22 redesigns (what evidence carries and how it is explained). What this unit delivers instead: the dictionary now reaches comparison — the corpus a pair is scored over is demonstrably different with the dictionary loaded (golden test in acct_e2e.rs), and any drift in it forces a full rebuild rather than silently mixing corpora.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

docs-backlogmvp

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions