摘要 |
An international postal address validation system is described. The system defines a grammar for the encoding of all required address fields (within an address) for a given country, so that the system can determine whether all address fields required for a country are present for a given international postal address. More particularly, the system stores information about: (1) Required address fields (i.e., metadata describing address fields and data that must be present in all addresses for a country), for error checking; (2) Address languages, for normalization; and (3) Address data, for validation. By providing a grammar that encodes information about the required address fields for a given country, and that takes into account the variety of different languages and character encodings that an address may appear in, the system provides international postal address validation even though certain addresses require application of country-specific requirements. |