PIIDetectorConfig
Options & Configuration · AiDotNet.Safety.Text
Configuration for PII detection modules.
For Beginners
Use this to configure which types of personal information to detect (emails, phone numbers, SSNs, etc.) and what to do when PII is found (mask it, hash it, remove it, etc.).
Constructors
| Constructor | Summary |
|---|---|
PIIDetectorConfig() |
Properties
| Property | Summary |
|---|---|
Dictionary<string, string> CustomPatterns { get; set; } |
Custom regex patterns for additional PII types. |
RedactionStrategy? Redaction { get; set; } |
Redaction strategy to apply when PII is found. |
double? MinConfidence { get; set; } |
Minimum confidence to report a PII match. |
string Locale { get; set; } |
Locale for PII pattern matching (e.g., “en-US”, “de-DE”). |
string[] Categories { get; set; } |
PII categories to detect. |