Can't detect Italian driver's license ID and value added tax number

Mohsin Khan 60 Reputation points
2025-05-19T07:58:06.79+00:00

Hey,

Greeting

As following using sample text for the country italy, PII failed to detect by Azure AI Language service.

Italian driver's license ID AB1234567
Value Added Tax (VAT) number IT12345678901.

Azure AI Language
Azure AI Language
An Azure service that provides natural language capabilities including sentiment analysis, entity extraction, and automated question answering.
524 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Danny Dang 90 Reputation points
    2025-05-20T08:54:28.1833333+00:00

    Dear Mosin Khan,

    Thank you for contacting Q&A Forum.

    Azure AI Language's PII detection service does support the Italian language; however, it currently does not include built-in support for detecting certain country-specific identifiers, such as:

    • Italian Driver’s License IDs (e.g., AB1234567)
    • Italian VAT Numbers (e.g., IT12345678901)

    These identifiers are not part of the default entity recognizers used by the service, which focuses primarily on globally common PII types like names, emails, phone numbers, and credit card numbers.

    To address this limitation, we suggest the following options:

    1. Custom Pre/Post-Processing: Use regular expressions to detect these identifiers before or after calling the Azure PII API.

    2. Microsoft Presidio: Consider using Microsoft Presidio, an open-source PII detection tool that allows you to define custom recognizers for specific patterns like Italian IDs and VAT numbers.

    Reference: https://learn.microsoft.com/en-us/azure/ai-services/language-service/personally-identifiable-information/language-support?tabs=text

    Best Regards,

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.