Conversation
ffbc061 to
f8bd145
Compare
Member
There was a problem hiding this comment.
Seems really good !
Maybe an alternative could be to accept this kind of conf
anonymization:
default:
customer:
biography:
anonymizer: pattern
options:
value: '{1} {2} has email address {3}.'
1: firstname
2: lastname
3:
anonymizer: email
options: {domain: 'custom-domain.com'}This can be an addition for advanced cases. what do you think ?
But this is may be far too complex for a first version.
Member
Author
It seems vastly different from what I have done, but it's definitely an interesting idea. How about opening an issue to add this dialect variant as well ? |
f8bd145 to
5f17259
Compare
5f17259 to
79537e4
Compare
79537e4 to
fa4a3fc
Compare
Lonnytunes
reviewed
Jul 22, 2025
SimonMellerin
approved these changes
Jul 22, 2025
fa4a3fc to
626a83a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See documentation for more information.
TL;DR:
String range
By adding
[MIN,MAX]anywhere in your text, it will be replaced by a random integerin the given range. For example
"I want [7-111] apples".You can use negative integers such as
[-10,10]or even a fully negative integerrange
[-127,-34].Single value from another anonymizer
By adding
{ANONYMIZER}anywhere in your text, it will be replaced by a random valuegiven by the anonymizer. For example
"My email address is {email}, what's your ?".Column value from another anonymizer
By adding
{ANONYMIZER:COLUMN}anywhere in your text, it will be replaced by a randomvalue for the named column given by the anonymizer. For example,
"The country I live into is {address:country}.".If you use more than one column of the same anonymizer in the same text value, the same
generated row from the target anonymizer will be used. For example, this text will give
a consistent result:
"The country I live in {address:locality} in {address:country}.".