Feature/es passport recognizer#2011
Merged
SharonHart merged 8 commits intoMay 4, 2026
Merged
Conversation
SharonHart
reviewed
May 4, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new predefined analyzer recognizer for Spanish passport numbers (ES_PASSPORT) to the Presidio Analyzer, wiring it into the predefined recognizer registry, default/e2e configs, tests, and documentation.
Changes:
- Introduces
EsPassportRecognizer(Spain,es) as aPatternRecognizerwith regex + context. - Adds unit tests for the new recognizer and registers it in the predefined recognizers package exports.
- Updates default/e2e recognizer configuration plus public docs (
supported_entities.md) andCHANGELOG.md.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| presidio-analyzer/presidio_analyzer/predefined_recognizers/country_specific/spain/es_passport_recognizer.py | Adds the EsPassportRecognizer implementation (regex + context). |
| presidio-analyzer/presidio_analyzer/predefined_recognizers/country_specific/spain/init.py | Exposes the new Spain recognizer in the country package. |
| presidio-analyzer/presidio_analyzer/predefined_recognizers/init.py | Exports EsPassportRecognizer in the top-level predefined recognizers module. |
| presidio-analyzer/presidio_analyzer/conf/default_recognizers.yaml | Registers EsPassportRecognizer in the default recognizer registry (disabled by default). |
| presidio-analyzer/tests/test_es_passport_recognizer.py | Adds unit tests validating detection, spans, and score ranges. |
| e2e-tests/resources/test_ollama_enabled_recognizers.yaml | Includes EsPassportRecognizer in the e2e-enabled recognizers set. |
| docs/supported_entities.md | Documents the new ES_PASSPORT entity in the public supported-entities list. |
| CHANGELOG.md | Notes the addition of the Spanish passport recognizer. |
added 4 commits
May 4, 2026 07:17
…x flags for ES_PASSPORT recognizer
Contributor
Author
|
Solved comments |
SharonHart
approved these changes
May 4, 2026
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.
Change Description
Issue reference
Fixes #2010
Checklist