fune!(validation.email@^1); // then call is_email(…)
Suites · validation-basics
Validation basics
Check and normalise what people type: email, phone, postcode, names, bank details and check-digit identifiers.
14 capabilities (4 core, 10 optional) and 3 gaps, in build order. Put each line in the file that calls it, then fune build.
Core coverage: 57.1%
4 of 7 needs met by verified capabilities. The needs are this suite's 4 core members and its 3 named gaps; a core member counts when a version of it is verified (by the sandbox, or the registry's seed) and not yanked, and a gap never counts. Optional members are not needs.
Baseline: a hand-written app with no suite meets 0 of the same 7. Method fune-coverage/1, computed 2026-11-22T21:01:28.741Z.
1. Contact details
Check and normalise a person's contact details before storing them.
fune!(validation.phone-e164@^2); // then call validate_phone_e164(…)
fune!(validation.uk-postcode@^2); // then call validate_uk_postcode(…)
fune!(text.normalise-name@^1); // then call normalise_name(…)
fune!(auth.normalise-email@^1); // then call normalise_email(…)
2. Bank details
Check payee and customer bank details before money moves.
fune!(validation.iban@^1); // then call is_iban(…)
fune!(validation.bic@^1); // then call validate_bic(…)
fune!(validation.uk-sort-code-account@^3); // then call validate_uk_sort_code_account(…)
fune!(validation.uk-modulus-table@^1); // then call parse_uk_modulus_table(…)
3. Identifiers and check digits
Catch mistyped reference numbers by their check digits.
fune!(validation.luhn@^1); // then call is_luhn(…)
fune!(validation.uk-company-number@^2); // then call validate_uk_company_number(…)
fune!(validation.lei@^1); // then call validate_lei(…)
fune!(validation.gtin@^1); // then call validate_gtin(…)
4. Displaying sensitive values
Show stored identifiers without exposing them.
fune!(text.mask@^1); // then call mask(…)
Gaps
What this kind of app usually needs that Functional Weave does not have yet: write these yourself, or use a service.
- address-lookup Turning a postcode into a list of addresses (Royal Mail PAF or a lookup API) is network work and not in caps.
- email-deliverability Whether a mailbox exists (MX lookups, a confirmation email): validation.email checks the syntax only.
- vocalink-data The Vocalink modulus tables themselves: download them from Pay.UK under its terms; caps parses them but does not ship them.