Validator Function

A validator function is a piece of code intended to verify the results of data classification. Validator functions can leverage context-specific conditions to provide assurance that a decision about a specific piece of data is accurate. As an example, credit card numbers are designed with a built-in check digit to help merchants reduce transcribing errors. Any data that has been classified as "credit card number" should be checked against a validator function that computes and verifies the check digit to minimize the chances of false positive classification.