How to catch local phone formats in LLM redaction tests

Test domestic numbers and international formats in both typed fields and free text. Include nearby non-phone numbers to catch over-masking.

Example

A French fixture uses 06 12 34 56 78, while a UK fixture uses 07700 069061. Both can appear inside a call note without a country prefix.

What to do

  1. Build fictional examples with spaces, hyphens, different lengths and adjacent punctuation. Include dates, postcodes and order numbers as negative cases.
  2. Test typed phone fields separately from free text. Capture exactly what the approved destination receives.
  3. Assert the entire value is replaced, including any final group of digits, and preserve the clean examples.

How to verify

No fragment of a fictional phone is left, and a clean postcode or order identifier remains readable.

Limits

Number formats can be ambiguous without country or field context. Report format coverage for the locales you tested.

Spendplane for this workflow

See the masking demo and synthetic benchmark

Related reading