#1063·presidio

US Driver license recognizer not working properly.

Author: DhanashreeNMCreated Apr 28, 2023Updated Sep 21, 2026

Describe the bug

US Driver License Recognizer is identifying some texts that are certainly not license numbers. like: INTRODUCTORY, INTERVENTION, D3, H1 etc. Even though score can be managed by threshold but it seems wrong patterns are listed to detect license. To be specific, Driver License - WA (weak) pattern is allowing any 12 Capital characters as driver license like INTRODUCTORY, INTERVENTION , this is one of the issue, texts like A1, H1, B43 are also getting detected as driver license.

To Reproduce Try detecting entity US_DRIVER_LICENSE for text -> BIOMARKERS IN CANCER: AN INTRODUCTORY GUIDE FOR ADVOCATES\n \n 39\n \n The examples of these three biomarkers illustrate the variety of challenges associated with identification of a good biomarker and the development of an accurate, reliable test

Expected behavior INTRODUCTORY should not be detected as drivers license

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

Source: data-privacy-stack/presidio