Hi Mohsin Khan,
Thank you for contacting Q&A Forum. I would like to provide my findings and proposed solution:
The Azure AI Language PII detection Preview API is still under development and may undergo changes. It is not recommended for production use. Customers should wait for the General Availability (GA) release, which will offer stable features and full support. For more information on the PII detection feature and its current capabilities, you can refer to the official documentation:
Government and country/region-specific identification
To address the issue of Azure AI Language Service not detecting New Zealand-specific PII entities such as bank account numbers, driver's license numbers, Inland Revenue numbers, Ministry of Health numbers, and Social Welfare numbers, ensure that these specific categories are explicitly included in the piiCategories parameter of your API request.
For instance, include categories like NZBankAccountNumber, NZDriversLicenseNumber, NZInlandRevenueNumber, NZMinistryOfHealthNumber, and NZSocialWelfareNumber.
Additionally, verify that the input text is in English, as these categories are supported in that language. If detection issues persist after these adjustments, consider testing with sample data to validate the configuration or consult Azure Support for further assistance.
Kindly let me know if this work for you and please let me know if you have any further question.
If I have answered your question, please accept this as answer as a token of appreciation and don't forget to thumbs up for "Was it helpful"!
Best regards,