It would really come in handy if there were a single module,
or a single module collection, that could be used to validate
this kind of thing. There have been occasions in the past
where, when validating data for integrity, I have been at
a loss as to what might be valid and what might be invalid.
A few ideas:
- Telephone numbers, such that they are both "validated"
and optionally cleaned up into the "official" format.
- State, province, district, parish, or other political
sub-unit listing, with appropriate abbreviations, and
common misspellings linked to proper spellings (i.e. 'KT'
for Kentucky to 'KY', 'QC' for Quebec to 'PQ')
- Postal codes, plus any secondary validation that
can be performed, such as linking geographic region with
the code (i.e. 10001 is in NY, 90210 is in CA)