JSON
Boolean
Compose
Currency
Custom
Date
Distance
Images
Name
Number
Paragraph
Percentage
Phone Number
String
Table
Weight
Deprecated types
Address
Returns USA-based addresses. By default, Sensible recognizes single- or multi-line addresses isolated from other lines in “block” format. For example,"type":"address" recognizes address such as:
Use the Block Format parameter to recognize addresses embedded in non-address lines, for example, use:
JSON
Example output
JSON
- City, State, Zip, and variant representations of these elements such as abbreviations
- Digits, Street, City, State, Zip, and variant representations of these elements such as abbreviations
- PO boxes with a number represented in digits
- Lists of addresses in the preceding formats
- Addresses that span multiple lines. To enable this behavior, Sensible joins the lines returned by the method using whitespaces as the separators, and finds the type in the joined text.
"block_format": false:
For example:
Waverly Pl
`# block format
San Francisco, CA 94110
123 Waverly Pl San Francisco, CA 941104123
PO BOX 1058 San Francisco, CA 94110
123 Waverly Pl
San Francisco, CA
941104123
inline format
the shipping address is 123 Waverly Pl San Francisco, CA, 94110. The billing address is the same.JSON
JSON
Compose
Returns a transformed type you define using an array of types. In the array, each successive type in the array takes the previous type’s output as its input. For example, use this type:- As a more syntactically concise alternative to the Regex method or to Computed Field methods. For example, you can write a field to capture a date-typed field, then transform the field’s output with the Split method. Or, see the following example to transform dates using the Compose type.
- To transform table cell contents. As an alternative, see the NLP table method to transform table cell contents using large language models(LLMs).
Parameters
Examples
ConfigJSON
The following image shows the example document used with this example config:
Output
JSON
Currency
You can define this type using concise syntax, or you can configure options with expanded syntax.Simple syntax
Syntax example `“type”: “currency”``` Output example Returns USA dollars as absolute value. For example,JSON
- dollar sign, optional commas every three digits, optional cents after period
- commas every three digits, optional cents after period
- no dollar sign, up to six digits without commas as sole line contents. Allow up to nine digits if cents are present.
- thousand, k
- million, mil, mm, m
- billion, bil, b
- trillion, t
one million or 123456789.
Configurable syntax
Use configurable syntax to change the default recognized formats. Example syntaxJSON
JSON
Custom
Returns a custom type you define using regular expressions. For example, define types for zip codes, time durations, customer IDs, and order numbers. Example syntaxJSON
JSON
Date
You can define this type using concise syntax, or you can configure options with expanded syntax. Sensible matches dates that span multiple lines. To enable this behavior, Sensible joins the lines returned by the method using whitespaces as the separators, and finds the type in the joined text.Simple syntax
Syntax exampleJSON
JSON
Configurable syntax
Syntax example The following example:JSON
Parameters
The following table lists the field descriptors you can use to define a custom format other than the default formats listed in the simple syntax section.
Distance
Returns miles and kilometers. Recognizes digits followed optionally by kilometers, miles, or their abbreviations. For example:json
Images
Use this solely with the Document Range method to return image metadata.Name
Simple syntax
Syntax example `“type”: “name”``` Output example Returns one or more names. For example:JSON
- first last
- first1 last1 and first2 last2
- last, first1 and first2
- first1 and first2 last
- first1 last1, first2 last2,… firstN, lastN
Configurable syntax
Example syntaxJSON
JSON
Number
Simple syntax
Syntax example `“type”: “number”``` Output exampleJSON
- commas preceding every three digits, optional digits after period, or by
- digits after period
3.061.534,45. Configure the Currency type instead.
Configurable syntax
Example syntaxJSON
JSON
Paragraph
Use with methods that return paragraphs, for example Document Range or Paragraph, to format the extracted text. By default, returns paragraphs formatted with newline characters (\n), instead of formatted as a single string.Simple syntax
Syntax exampleJSON
Configurable syntax
Use configurable syntax to change the formatting of the extracted text. Example syntaxJSON
When you set"annotateSuperscriptAndSubscript": true , Sensible formats the footnote symbols to indicate they’re superscripted, for example, [^1]:
JSON
Percentage
Returns percent as an absolute value. Recognizes a percent formatted as digits in USA decimal notation (for example, 1,500.06), followed optionally by a whitespace, followed by a percent sign (%) . For example:JSON
JSON
Phone Number
Returns phone numbers:- Recognizes USA 10-digit phone numbers either with or without a country calling code. May be optionally formatted with parentheses, dashes, spaces, plus sign (+), or periods.
- Recognizes international phone numbers if prefixed by a country calling code (for example, +91 for India).
JSON
String
Default type. Returns strings. Example outputJSON
Table
Required when you define a table method.Weight
Returns pounds and kilograms. Recognizes digits in USA decimal notation (for example, 1,500.06):- digits are in the format recognized by the Number type
- “pounds”, “kilograms”, or their abbreviations follow the digits
JSON
JSON
Deprecated types
Accounting Currency
Deprecated. See Currency Returns US dollar numbers. Supports negative numbers represented either with parentheses() or with the minus sign (-).
Recognizes digits in USA decimal notation (for example, 1,500.06):
- digits are in the format recognized by the Number type
- digits are optionally preceded or succeeded by a negative sign (-)
- digits are optionally preceded by a USA dollar sign ($)
JSON
JSON

