Skip to content

Commit 3c8674e

Browse files
committed
moved Synonyms section
I moved it below regex section - as regex section goes with custom matchers header
1 parent 53d9232 commit 3c8674e

File tree

1 file changed

+7
-15
lines changed

1 file changed

+7
-15
lines changed

src/privacy/portal.md

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -223,21 +223,6 @@ North American phone number (without country code) is also ten digits.
223223

224224
{% include components/reference-button.html href="/segment-app/iam/roles/#pii-access" icon="media/academy.svg" title="PII Access" description="Use Access Roles to control who has access to the PII identified by your matchers." variant="related" %}
225225

226-
### Using Synonyms
227-
228-
The matchers scan data coming from your Sources for PII based on both
229-
exact-matching (and fuzzy-matching if you select 'Similar to' option).
230-
As an example, if you have a custom matcher for detecting "credit card
231-
number", it will also detect variations like "credit-card number", or
232-
typos such as "creditt card number".
233-
234-
Our fuzzy matching uses [this public GitHub repository](https://github.com/imjasonmiller/godice)
235-
to determine if it is a match. However, it will not detect all variations
236-
and for those scenarios, you can use synonyms. You can add "credit card no",
237-
"debit card number", or similar variations in the synonyms section.
238-
239-
![Screenshot of the Synonym used in Custom Matcher.](images/privacy-synonym-in-matcher.png)
240-
241226
#### An intro to Regular expressions
242227

243228
Custom Matchers use [regular expressions](https://en.wikipedia.org/wiki/Regular_expression) (using the [Golang Regex Package](https://golang.org/pkg/regexp/)) to provide you great flexibility for your matching patterns.
@@ -270,3 +255,10 @@ build new custom matchers:
270255
- [RegExr](https://regexr.com/) - an online tool to experiment with regular expressions and test them
271256
- [RegexOne](https://regexone.com/) - a tutorial which takes you from regular expression basics to advanced topics
272257
- [Regexp Cheatsheet](https://devhints.io/regexp) - a handy cheatsheet to have nearby when you're writing regular expressions
258+
259+
### Using Synonyms
260+
261+
Segment's exact matching and fuzzy matching do not detect all variations in the received keys
262+
and for those scenarios, you can use synonyms. For example, for the value `credit card number`, you can add `credit card no`,
263+
`debit card number`, `debit card no`, or similar variations in the synonyms section to classify those fields.
264+
![Screenshot of the Synonym used in Custom Matcher.](images/privacy-synonym-in-matcher.png)

0 commit comments

Comments
 (0)