Postal Code (Advanced Correction)

Standardization Definition

Postal Code (Advanced Correction)
Description The Postal Code (Advanced Correction) standardization definition performs advanced corrections to malformed domestic postal codes.
Examples Input Output
M5PM 1T7 M5M 1T7
P-B 1M0 P9B 1M0
,0J1P- M0J 1P9
M2N`W3 M2N 1W3
Remarks

This standardization definition is designed to handle malformed postal codes that have not undergone edit checks. The definition makes the best possible corrections. The standardization definition for Postal Code (Advanced Correction) can be used especially for postal codes that do not parse correctly using the Postal Code parse definition. Corrections are based on keyboard proximity and misreading of letters and numbers that look similar (such as, S and 5 ). This definition corrects common typographical errors, such as:

  • A comma in the position where a letter should be is typically an M typo.
  • A 6 in the position where a letter should be is typically a misreading of G.
  • A W in the position where a number should be is typically a 2 typographical error.
  • A $ in the position where a number should be is typically a 4 typographical error.
Corrections are based on common problems found in a survey of 31 million records from Passport Canada.