ko-pii
A Python library for detecting and pseudonymizing Korean personal information without external models or APIs
What does it do?
The core works without model downloads or external APIs and supports Python 3.10 and later. A policy example in the repository handles email addresses and phone numbers with STRICT/redact. Guidance on JSON processing and field rules is provided separately from the CLI instructions. If tokenize is selected, the original text is moved to the Vault rather than deleted and can be restored by code with access, so the calling application must manage Vault storage and access permissions. Context-dependent items such as names and unstructured addresses may be missed or incorrectly detected, so actual documents and output results should be checked separately.
Key features
- Personal information detection based on rules, dictionaries, and format validation
- Personal information pseudonymization and Vault-based restoration
- STRICT/redact policy example for email addresses and phone numbers
- CLI usage and guidance on JSON field rules
- Optional RAG integration
Why did it stand out?
It provides a concrete flow for protecting personal information during both ingestion and search while preserving context by replacing the same person with the same token. False-positive learning also remains subject to human review rather than being applied automatically.
