feat(analyzer): add Korean bank account number recognizer (KR_BANK_ACCOUNT) - #2215
Open
juno-junho wants to merge 1 commit into
Open
feat(analyzer): add Korean bank account number recognizer (KR_BANK_ACCOUNT)#2215juno-junho wants to merge 1 commit into
juno-junho wants to merge 1 commit into
Conversation
juno-junho
force-pushed
the
feat/kr-bank-account-recognizer
branch
from
August 4, 2026 14:17
6144e64 to
f9e3479
Compare
juno-junho
force-pushed
the
feat/kr-bank-account-recognizer
branch
from
August 4, 2026 14:20
f9e3479 to
5d13e54
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.
Change Description
Add
KrBankAccountRecognizer(entityKR_BANK_ACCOUNT) undercountry_specific/korea/, registered in the predefined recognizer exports,default_recognizers.yaml(disabled by default,country_code: kr) and the supported entities docs.Korean bank account numbers had no coverage. The patterns are ported from a production Korean PII-masking deployment, with conservative scores (no checksum exists for Korean accounts) and negative lookaheads for phone (010/070), RRN and date look-alikes. Plain 13-digit runs are deliberately left to KR_RRN's domain.
Tests: positive cases assert the best-scoring match per layout (the patterns overlap by design), and a look-alike table asserts zero matches for Korean phone numbers, RRN shapes, dates and short digit runs. The full analyzer suite (3047 tests) and
ruff checkpass.Issue reference
Fixes #2214
Checklist