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
- Build fictional examples with spaces, hyphens, different lengths and adjacent punctuation. Include dates, postcodes and order numbers as negative cases.
- Test typed phone fields separately from free text. Capture exactly what the approved destination receives.
- 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.