added

✨ Enhanced PII masking

Introducing the power of regular expressions (regex) for precise text masking! Now, alongside Named Entity Recognition (NER), you can use regex patterns to mask specific entities, ensuring even the most intricate cases are handled.

Just use the new parameter regex_entitieswhen passing the anonymization parameters.

params = {
    'language': 'en_us',
    'regex_entities': [('[a-zA-Z0-9_.]+[@]{1}[a-z0-9]+[\.][a-z]+', 'Email Adress'),]  
}