Elysia Tools
Navigation
Validation
EIN mask examples: Synthetic data exercises
Compare three bounded input-and-output exercises. Each card includes its operation and exact expected result; the displayed source is not executed by this guide.
Samples
Entries inside this sample collection
EIN layout with letters only
The mask illustrates two groups, but letters cannot be an EIN. Layout says nothing about IRS issuance or assignment.
Tags
synthetic, offline, text-operations
{
"fixture_kind": "synthetic-invalid-placeholders",
"input": "XX-XXXXXXX",
"operation": "Split on the single hyphen; inspect group lengths, not numerical validity.",
"expected": {
"group_lengths": [
2,
7
],
"numeric_identifier": false
}
}Removing punctuation does not validate
Nine remaining characters are still letters. Length and punctuation normalization must not be reported as an assigned tax identifier.
Tags
synthetic, offline, text-operations
{
"fixture_kind": "synthetic-invalid-placeholders",
"input": "XX-XXXXXXX",
"operation": "Remove only the displayed hyphen, then ask whether every remaining character is an ASCII digit.",
"expected": {
"normalized_mask": "XXXXXXXXX",
"all_ascii_digits": false
}
}Separate public fields from the EIN field
The tax-number field is absent from the display projection. The fictional entity label and unchanged verification flag do not establish a real business identity.
Tags
synthetic, offline, text-operations
{
"fixture_kind": "synthetic-invalid-placeholders",
"input": {
"entity_label": "DEMO-ENTITY",
"ein": "[EIN-MASK]",
"verification": "not_performed"
},
"operation": "Project only entity_label and verification into a fresh display object.",
"expected": {
"entity_label": "DEMO-ENTITY",
"verification": "not_performed"
}
}Tools
Tools frequently paired with this sample
Related
Related sample collections
Related