Field type by value
What this tool does
This tool helps you understand what kind of information is contained in a piece of text. It looks at the content and assigns it a specific category label based on its structure. This is useful when you need to standardize data or ensure you are storing the correct type of value in your systems.
When to use it
- Automatically sorting user input into the correct database fields
- Validating that an uploaded file contains the expected data type
- Cleaning up mixed-format text data before processing
- Quickly identifying the nature of a text string in a form
What to expect
You will receive a single text label that indicates the detected category of the input value. This label tells you exactly what type of information the system has identified in the text.
Limitations
- Detection accuracy depends on the input following common patterns; unusual formatting may lead to incorrect classification
- Some data types like phone numbers may only be detected reliably if they follow specific regional formats, such as Spanish mobile numbers
- Ambiguous text that fits multiple patterns might not be classified as expected
When it fails
- If the text is empty or consists only of whitespace, the tool will not return a valid category
- If the input does not match any supported pattern, a generic 'unknown' reason is returned instead of a category
- Very short or malformed strings that resemble valid formats but are incomplete may be misclassified
Good to know
- The tool prioritizes certain categories like email and dates, so similar-looking text might be categorized based on the first match it finds
Input data
| Parameter | Required | Example | Description |
|---|---|---|---|
text | Yes | [email protected] | Enter the text you want to analyze. This field is required. Supported types: date, email, gender, uuid, mac, iban, mobile, phone, ip, zipcode, isbn, cif, dni, nie, nif, url, ean, gtin, isin, swift, domain, name. If the value does not match any of them, the result is 'reason-unknown'. |
Output data
| Field | Description |
|---|---|
result | Returns the name of the detected data type, such as 'email', 'mobile', 'dni', or 'url'. If the text does not match any supported format, it returns 'reason-unknown'. |