Skip to content

Feature/ph license plate recognizer#2028

Open
jacobArquiza wants to merge 3 commits into
microsoft:mainfrom
jacobArquiza:feature/ph-license-plate-recognizer
Open

Feature/ph license plate recognizer#2028
jacobArquiza wants to merge 3 commits into
microsoft:mainfrom
jacobArquiza:feature/ph-license-plate-recognizer

Conversation

@jacobArquiza
Copy link
Copy Markdown

@jacobArquiza jacobArquiza commented May 17, 2026

Change Description

Add a new predefined recognizer for Philippine vehicle license plate numbers (PH_LICENSE_PLATE).

Supported formats:

  • Modern private plates: ABC 1234 (3 letters + 4 digits, LTO standard since 2013)
  • Motorcycle plates: 1234 ABC (4 digits + 3 letters)
  • Legacy private plates: AB 1234 (2 letters + 4 digits, pre-2013)
  • Conduction stickers: C12D345 (alphanumeric, issued before official plates)

Space, dash, or no separator accepted for all formats. Context words include both English (plate, lto, registration) and Tagalog (plaka, kotse, motorsiklo). Case-sensitive matching enforced via custom global_regex_flags. Includes validate_result() to reject hex colors, all-digit, and all-letter false positives. Disabled by default (enabled: false) consistent with other country-specific recognizers.

Issue reference

Fixes #2015

Checklist

  • I have reviewed the contribution guidelines
  • I have signed the CLA (if required)
  • My code includes unit tests
  • All unit tests and lint checks pass locally
  • My PR contains documentation updates / additions if required

@jacobArquiza
Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

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 Request: Add Philippines (PH) country-specific predefined recognizers

1 participant