Why do different organization names match when they share a legal suffix such as B.V. or S.R.L.?

Problem

  • Profiles of different organizations are potential matches because their names share a legal suffix, for example "Alpha S.R.L." and "Beta S.R.L.".
  • The name attribute is in an exact condition and uses OrganizationNamesComparator or BasicTokenizedOrganizationNameComparator. _verifyMatches shows "match": true for it.
  • Adding srl or s.r.l. to a custom noise word list doesn't stop the match.

Cause

These comparators don't compare the full string. They split each name into words and match when at least 60% of the words are the same (common words divided by distinct words in both names). A legal suffix counts as words, and when it's written with periods, each letter can count as a separate word:

NamesWords comparedCommon / distinctResult
Alpha S.R.L. and Beta S.R.L.alpha s r l / beta s r l3 / 5 = 60%Match
Alpha Logistics B.V. and Alpha Media B.V.alpha logistics b v / alpha media b v3 / 5 = 60%Match
Alpha Logistics and Alpha Mediaalpha logistics / alpha media1 / 3 = 33%No match

A noise word list alone doesn't help. Reltio splits the name into words and lowercases them before it removes noise words, so the list only sees single words. With a word pattern that treats periods as separators, "S.R.L." reaches the list as s, r, and l, which neither srl nor s.r.l. matches.

Match cleansers run before this step. A String Replacement cleanser (RegexpReplaceCleanser) can rewrite every written form of a suffix into one word, such as srl, which the noise word list can then remove.

Diagnose

Compare the names with the Compare Strings API and the rule's comparator:

POST https://<environment>.reltio.com/reltio/tools/matching/compare
Authorization: Bearer <access_token>
Content-Type: application/json

{ "first": "Alpha S.R.L.", "second": "Beta S.R.L.", "fuzzy": false,
  "comparatorClass": { "class": "com.reltio.match.comparator.OrganizationNamesComparator" } }

If the names return equals: true with the suffix, and false without it ("Alpha" and "Beta"), the suffix causes the match.

Solution

  1. Create a string replacement file with one lowercase regex=>replacement rule per line. Rules are applied from top to bottom, so list longer suffixes first:

     \bs[.\s]*a[.\s]*r[.\s]*l\b\.?=>sarl
     \bs[.\s]*r[.\s]*l\b\.?=>srl
     \bb\.\s*v\b\.?=>bv
  2. Create a noise word file with one compact suffix per line, in lowercase and without periods, for example bv, srl, and sarl. The file replaces Reltio's built-in list, so also add the built-in words you still need. Get them with GET https://<environment>.reltio.com/reltio/api/<tenantId>/configuration/noiseDictionaries/organizationName.
  3. Raise a Task request in the Reltio Support Portal to host both files. Reltio Support returns the path of each file.
  4. Update the match rule. Add the cleanser, and use the noise word file in both the match token class and the comparator class. Keep the rule's other settings:

     "cleanse": [{ "cleanseAdapter": "com.reltio.cleanse.impl.RegexpReplaceCleanser",
       "cleanseAdapterParams": { "dictionary": "<replacement file path>", "keepOriginalValue": "false" },
       "mappings": [{ "attribute": "configuration/entityTypes/Organization/attributes/<NameAttribute>",
                      "cleanseAttribute": "configuration/entityTypes/Organization/attributes/<NameAttribute>" }] }],
     "matchTokenClasses": { "mapping": [{ "attribute": "configuration/entityTypes/Organization/attributes/<NameAttribute>",
       "class": "com.reltio.match.token.CustomMatchToken",
       "parameters": [{ "parameter": "groups", "values": [{ "noiseDictionary": "<noise word file path>",
         "className": "com.reltio.match.token.BasicTokenizedOrganizationNameMatchToken" }] }] }] },
     "comparatorClasses": { "mapping": [{ "attribute": "configuration/entityTypes/Organization/attributes/<NameAttribute>",
       "class": "com.reltio.match.comparator.CustomComparator",
       "parameters": [{ "parameter": "groups", "values": [{ "noiseDictionary": "<noise word file path>",
         "className": "com.reltio.match.comparator.BasicTokenizedOrganizationNameComparator" }] }] }] }
  5. Save the configuration and run Rebuild Match Tables for the entity type, so existing profiles are retokenized.

Verify

After the rebuild, _verifyMatches for the original pair shows "match": false for the name attribute, and the pair is no longer a potential match.

 

 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.