Maria,
Thank you for your questions.
Yes, assuming the country and other address data is accurately provided, the Loqate engine will be able to determine that the postal code that was provided does not conform to the accepted format of the country/region and will typically return a corrected value in its response. There are limits to the engine's ability to do this, however, since it is contingent upon finding a matching reference address. For instance, if there are several other errors in the address input, it is possible that the engine might make some unexpected assumptions when attempting to parse, analyze, and respond to what's been provided.
To demonstrate, imagine a case where an address line is sent for verification and it contains details that perfectly match the street address of a location in one country, but it also contains reference to a locality from another country, and the country code of yet another country. The question becomes: How should the engine determine/choose which country's postal code format validate against? The algorithm is well-trained and often chooses correctly, but it is not infallible if the data quality at the source is very poor (typical garbage-in, garbage-out scenario).
It's a deceptively simple question with a fairly complex answer, so I hope the above was useful. If I can help provide more detail on any of the above, please let me know.
------------------------------
Best regards,
Jack Hain
Senior Product Manager
Reltio, Inc.
------------------------------