Skip to content

Plain Text

Type Registry

Plain Text

representation.text.plain_text

Unstructured text content (sentences, paragraphs, descriptions). Broad categorization.

Domain representationtext
Casts to VARCHAR
Scope broad_characters

Try it

CLI
$ finetype infer -i "This is a plain text description"
→ representation.text.plain_text

DuckDB

Detect
SELECT finetype('This is a plain text description');
-- → 'representation.text.plain_text'
Cast expression
CAST({col} AS VARCHAR)
Safe cast pipeline
-- Normalise and cast in one step
SELECT TRY_CAST(finetype_cast(my_column) AS VARCHAR) AS clean_value
FROM my_table
WHERE finetype(my_column) = 'representation.text.plain_text';

Struct Expansion

char_count: LENGTH({col})
word_count: CAST(REGEXP_COUNT({col}, '\s+') + 1 AS SMALLINT)

JSON Schema

finetype schema representation.text.plain_text
{
  "$id": "https://noon.sh/schemas/representation.text.plain_text",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "Unstructured text content (sentences, paragraphs, descriptions). Broad categorization.",
  "examples": [
    "This is a plain text description",
    "A longer paragraph with multiple sentences",
    "Single word"
  ],
  "maxLength": 65536,
  "minLength": 1,
  "title": "Plain Text",
  "type": "string"
}

Examples

This is a plain text descriptionA longer paragraph with multiple sentencesSingle word

Also known as

textdescriptioncontent

Types in representation