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
exactcondition and usesOrganizationNamesComparatororBasicTokenizedOrganizationNameComparator._verifyMatchesshows"match": truefor it. - Adding
srlors.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:
| Names | Words compared | Common / distinct | Result |
|---|---|---|---|
| Alpha S.R.L. and Beta S.R.L. | alpha s r l / beta s r l | 3 / 5 = 60% | Match |
| Alpha Logistics B.V. and Alpha Media B.V. | alpha logistics b v / alpha media b v | 3 / 5 = 60% | Match |
| Alpha Logistics and Alpha Media | alpha logistics / alpha media | 1 / 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
Create a string replacement file with one lowercase
regex=>replacementrule 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
- Create a noise word file with one compact suffix per line, in lowercase and without periods, for example
bv,srl, andsarl. The file replaces Reltio's built-in list, so also add the built-in words you still need. Get them withGET https://<environment>.reltio.com/reltio/api/<tenantId>/configuration/noiseDictionaries/organizationName. - Raise a Task request in the Reltio Support Portal to host both files. Reltio Support returns the path of each file.
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" }] }] }] }- 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.
Comments
Article is closed for comments.