Skip to content

feat(analyzer): add Korean bank account number recognizer (KR_BANK_ACCOUNT) - #2215

Open
juno-junho wants to merge 1 commit into
data-privacy-stack:mainfrom
juno-junho:feat/kr-bank-account-recognizer
Open

feat(analyzer): add Korean bank account number recognizer (KR_BANK_ACCOUNT)#2215
juno-junho wants to merge 1 commit into
data-privacy-stack:mainfrom
juno-junho:feat/kr-bank-account-recognizer

Conversation

@juno-junho

@juno-junho juno-junho commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Change Description

Add KrBankAccountRecognizer (entity KR_BANK_ACCOUNT) under country_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 check pass.

Issue reference

Fixes #2214

Checklist

  • I have reviewed the contribution guidelines
  • I agree to follow this project's Code of Conduct
  • I confirm that I have the right to submit this contribution and that it does not knowingly contain proprietary or confidential code.
  • My code includes unit tests
  • All unit tests and lint checks pass locally
  • My PR contains documentation updates / additions if required

@juno-junho
juno-junho force-pushed the feat/kr-bank-account-recognizer branch from 6144e64 to f9e3479 Compare August 4, 2026 14:17
@juno-junho
juno-junho force-pushed the feat/kr-bank-account-recognizer branch from f9e3479 to 5d13e54 Compare August 4, 2026 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Add Korean bank account number (KR_BANK_ACCOUNT) recognizer

1 participant