> For the complete documentation index, see [llms.txt](https://help.delpha.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.delpha.io/delpha-for-salesforce/how-to-faq/delpha-duplicate/what-algorithms-are-used-by-delpha.md).

# What algorithms are used by Delpha

Explore the advanced duplicate detection algorithms Delpha uses for string, email, phone, and address fields. Learn how Delpha ensures accurate, AI-powered record matching.

## What Algorithms Are Used by Delpha to Detect Duplicates?

Delpha uses a set of advanced matching algorithms and normalization techniques to identify duplicate records across different field types in Salesforce. The logic determines how values are compared between records to calculate similarity and duplication scores.

## Matching Algorithms & Normalization by Field Type

| **Field Type**  | **Matching Algorithm**                           | **Normalization**                                                                          |
| --------------- | ------------------------------------------------ | ------------------------------------------------------------------------------------------ |
| **String**      | Exact, Jaro-Winkler, QGram Tokenizer, TF-IDF     | Lowercase, ASCII table                                                                     |
| **Boolean**     | Exact                                            | None                                                                                       |
| **Email**       | Exact, Partial segmentation, Domain name average | Lowercase, Validity checks                                                                 |
| **Phone**       | Exact                                            | ASCII table, e164 normalization                                                            |
| **Number**      | Exact                                            | Rounded                                                                                    |
| **URL**         | Exact                                            | ASCII & percent-encoded triplet, Path ending normalization (`"/"`), Protocol normalization |
| **Address**     | Partial, Euclidian distance                      | Coordinate normalization                                                                   |
| **Coordinates** | –                                                | Coordinate normalization                                                                   |

## Why It Matters

Delpha’s duplicate detection engine uses both **exact and fuzzy matching algorithms** to catch near-duplicates often missed by basic tools. For example:

* Emails are split and scored by domain and format.
* URLs are normalized to avoid false negatives caused by minor syntax differences.
* Addresses use **Euclidian distance** to detect close matches even with typos or format variations.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.delpha.io/delpha-for-salesforce/how-to-faq/delpha-duplicate/what-algorithms-are-used-by-delpha.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
