# Names, addresses and identifiers

Part of Corner cases by Baltor.

Address line parsing, name capitalisation, company suffixes, email and website repair, postal code formats for 246 countries, and validators with check digits.

## What to watch for

- Names typed in capitals lose information a rule cannot fully restore, such as McDonald.
- Postal codes differ by country in length, letters and spacing.
- Card numbers and securities identifiers carry check digits that catch a mistyped digit.

## Components

- [Parse a postal address line into house number](https://baltor.ai/components/split-address-lines-into-components): Parse a postal address line into house number, street, unit, city, region, postal code and country from declared patterns for the United States, Canada and Great Britain, with reasons and a confidence. Name `split_address_lines_into_components`, licence MIT, 1 files.
- [Fix the capitalisation of person and company names written in all upper case](https://baltor.ai/components/restore-capitalisation-of-names): Fix the capitalisation of person and company names written in all upper case or all lower case: particles such as van and de, Mc and Mac prefixes, acronyms such as IBM and LLC, with a confidence for each value and review for doubtful ones. Name `restore_capitalisation_of_names`, licence MIT, 1 files.
- [Standardize company legal suffixes such as Inc, LLC and GmbH](https://baltor.ai/components/canonicalize-company-legal-suffixes): Standardize company legal suffixes such as Inc, Incorporated, LLC, Ltd, Limited, Corp and GmbH to one style, handle the comma before the suffix, and hold ambiguous suffixes such as SA, AS and Co for review. Name `canonicalize_company_legal_suffixes`, licence MIT, 1 files.
- [Clean and repair email addresses](https://baltor.ai/components/normalize-and-recover-email-addresses): Clean and repair email addresses: remove mailto and angle brackets, lower the case, repair spelled out at and dot, doubled punctuation and mistyped domains such as gmail.con, and refuse cells with several addresses or an invalid shape. Name `normalize_and_recover_email_addresses`, licence MIT, 1 files.
- [Normalize website addresses](https://baltor.ai/components/normalize-website-addresses): Normalize website addresses (URLs): add a missing scheme, write the scheme and the host in lower case, optionally remove www, remove a trailing slash, and keep the path, query and fragment exactly as written. Name `normalize_website_addresses`, licence MIT, 1 files.
- [Postal code formats and validation patterns for 246 countries](https://baltor.ai/components/postal-code-formats-and-validation-patterns-for-246-coun-45d0ec0b): Postal code format, validation regex, example and notes for 246 countries by ISO code: 246 rows with a JSON Schema, a checked loader and tests. Name `postal-codes.json`, licence MIT, 8 files.
- [Postal code formats by country](https://baltor.ai/components/postal-code-formats-by-country-22726b9e): Postal code formats by country: mask, validation regex, example and sample codes: 31 rows with a JSON Schema, a checked loader and tests. Name `postal-formats.csv`, licence MIT, 8 files.
- [cusip from validators input validation utilities](https://baltor.ai/components/cusip-from-validators-input-validation-utilities-9eddfa90): cusip from validators input validation utilities: Return whether or not given value is a valid CUSIP. Name `cusip`, licence MIT, 6 files.
- [sedol from validators input validation utilities](https://baltor.ai/components/sedol-from-validators-input-validation-utilities-246f0eda): sedol from validators input validation utilities: Return whether or not given value is a valid SEDOL. Name `sedol`, licence MIT, 6 files.
- [calling_code from validators input validation utilities](https://baltor.ai/components/calling-code-from-validators-input-validation-utilities-1b757f89): calling_code from validators input validation utilities: Validates given calling code. Name `calling_code`, licence MIT, 6 files.
- [visa from validators input validation utilities](https://baltor.ai/components/visa-from-validators-input-validation-utilities-db8b6871): visa from validators input validation utilities: Return whether or not given value is a valid Visa card number. Name `visa`, licence MIT, 6 files.

Your agent downloads these through Baltor with Pro, $49 a month: https://baltor.ai/get-started
