Work out what an unlabeled number is
identify_formatIdentify a bare number whose type was never recorded. Tests it against every supported format and reports which ones its check digit satisfies. Use it for an unlabeled spreadsheet column, a value pulled out of a log line or a scanned document, or any number handed over without being named.
Reports every format that matches rather than choosing between them. Several matches is normal and does not mean the answer is unclear: some formats are subsets of others, so every ISBN-13 is also a valid EAN-13, and a short value can satisfy two unrelated formats by chance. Read one match as strong evidence and several as a set to narrow from context. As with validation, a match means the arithmetic is consistent, not that the identifier is registered or real.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | The identifier to classify. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | The normalized input that was tested. | |
| matched | Yes | Whether any supported format matched. | |
| matches | Yes | Every format whose check digit the input satisfies, in registry order. Each entry carries `kind` plus the same format-specific fields validate_identifier returns for that format, such as `country` for an ISIN or `width` for a GTIN. Only satisfied formats are listed, so no entry carries `code` or `reason`. |