Text & String Functions
Generate text content, UUIDs, and string data
Text & String Functions
Generate text content, unique identifiers, and string values.
generate_lorem_text
Generate Lorem Ipsum text blocks.
Category: Text
Type: Generator
Data Types: string, text
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
max_nb_chars | integer | 200 | Maximum characters |
ext_word_list | list | none | Custom word list |
Examples
Default text:
columns:
- name: description
function: generate_lorem_text
Short text:
columns:
- name: summary
function: generate_lorem_text
parameters:
max_nb_chars: 100
Long content:
columns:
- name: article_body
function: generate_lorem_text
parameters:
max_nb_chars: 1000
Output Sample
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
generate_lorem_sentence
Generate Lorem Ipsum sentences.
Category: Text
Type: Generator
Data Types: string, text
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
nb_words | integer | 6 | Number of words |
variable_nb_words | boolean | true | Vary word count |
ext_word_list | list | none | Custom word list |
Examples
columns:
- name: tagline
function: generate_lorem_sentence
parameters:
nb_words: 8
variable_nb_words: false
Output Sample
Lorem ipsum dolor sit amet consectetur.
Adipiscing elit sed do eiusmod tempor.
generate_uuid
Generate UUID strings (version 4).
Category: Text
Type: Generator
Data Types: string
Parameters
None
Example
columns:
- name: id
function: generate_uuid
- name: external_id
function: generate_uuid
Output Sample
a1b2c3d4-e5f6-7890-abcd-ef1234567890
550e8400-e29b-41d4-a716-446655440000
generate_hex_color
Generate hexadecimal color codes.
Category: String
Type: Generator
Data Types: string
Parameters
None
Example
columns:
- name: theme_color
function: generate_hex_color
Output Sample
#FF5733
#3498DB
#2ECC71
generate_color_name
Generate color names.
Category: Other
Type: Generator
Data Types: string
Parameters
None
Example
columns:
- name: color
function: generate_color_name
Output Sample
Red
Ocean Blue
Forest Green
Sunset Orange
generate_file_name
Generate file names with extensions.
Category: System
Type: Generator
Data Types: string
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
category | string | none | audio, image, office, text, video |
extension | string | none | Specific extension |
Examples
Random file:
columns:
- name: filename
function: generate_file_name
Image files:
columns:
- name: image_file
function: generate_file_name
parameters:
category: image
Specific extension:
columns:
- name: document
function: generate_file_name
parameters:
extension: pdf
Output Sample
document.pdf
photo_001.jpg
report_final.docx
return_value
Return a static specified value.
Category: Helper
Type: Generator
Data Types: any
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
value | any | none | The value to return |
Examples
Static status:
columns:
- name: status
function: return_value
parameters:
value: "active"
Default country:
columns:
- name: country
function: return_value
parameters:
value: "United States"
Numeric constant:
columns:
- name: version
function: return_value
parameters:
value: 1
Output Sample
Always returns the specified value.
generate_null
Generate NULL values.
Category: Helper
Type: Generator
Data Types: null, any
Parameters
None
Example
columns:
- name: deleted_at
function: generate_null
- name: notes
function: generate_null
Output
Always returns NULL.
Related Functions
- Number Functions - Numeric generation
- Person Functions - Name generation