ReferenceTools
validate_patent_number
Validate and normalize patent number formats
validate_patent_number
Validate a patent number format and normalize it to the standard USPTO format.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
patent_number | string | Yes | Patent number to validate |
Example Request
{
"patent_number": "US7654321B2"
}Example Response (Valid)
{
"valid": true,
"normalized": "7654321",
"original": "US7654321B2"
}Example Response (Invalid)
{
"valid": false,
"error": "Invalid patent number format",
"original": "invalid-format"
}Normalization Rules
| Input Format | Normalized Output |
|---|---|
7654321 | 7654321 |
US7654321 | 7654321 |
US7654321B2 | 7654321 |
D654321 | D654321 |
USD654321 | D654321 |
RE50614 | RE50614 |
USRE50614 | RE50614 |
PP12345 | PP12345 |
Validation Rules
A valid patent number must:
- Start with optional "US" prefix
- Contain a valid type prefix (D, RE, PP) or just digits
- Have a numeric portion (5-8 digits for utility patents)
- Optional kind code suffix (A1, B1, B2, etc.) is stripped
Use Cases
- Clean up user-entered patent numbers
- Validate patent numbers before querying
- Standardize formats in bulk data processing