Title Case
Synopsis
Converts strings to Title Case format.
Schema
- titlecase:
field: <ident>
target_field: <string>
fields: <array>
exclude: <array>
preserve_articles: <boolean>
description: <text>
if: <script>
ignore_failure: <boolean>
ignore_missing: <boolean>
on_failure: <processor[]>
on_success: <processor[]>
tag: <string>
Configuration
The following fields are used to define the processor:
Field | Required | Default | Description |
---|---|---|---|
field | N | - | Single field to convert to Title Case |
target_field | N | Same as field | Target field to store Title Case result |
fields | N | - | Array of fields to convert to Title Case |
exclude | N | - | Array of fields to exclude from conversion |
preserve_articles | N | false | Keep articles (a, an, the) lowercase except at start |
description | N | - | Explanatory note |
if | N | - | Condition to run |
ignore_failure | N | false | Continue processing if conversion fails |
ignore_missing | N | false | Skip processing if referenced field doesn't exist |
on_failure | N | - | See Handling Failures |
on_success | N | - | See Handling Success |
tag | N | - | Identifier |
Details
Converts string values to Title Case format by capitalizing the first letter of each word while keeping the rest lowercase. This format is commonly used for titles, headings, proper nouns, and display names.
The processor handles various input formats and applies proper Title Case rules, optionally preserving grammar rules for articles and prepositions.
Title Case format capitalizes the first letter of each significant word, resulting in format like "User Account Settings", "Data Processing Pipeline", or "System Configuration Value". This format is widely used for titles and headings.
When preserve_articles
is enabled, common articles (a, an, the) and short prepositions (in, on, at, by, for, of, to, up) remain lowercase unless they appear at the beginning of the string.
The processor treats any whitespace or punctuation as word boundaries. Hyphenated words will have each part capitalized (e.g., "real-time" becomes "Real-Time").
Examples
Basic Title Case
Converting text to Title Case format... |
|
converts to Title Case: |
|
Article Preservation
Preserving articles in proper grammar format... |
|
keeps articles lowercase: |
|
Mixed Format Input
Converting mixed case input to proper Title Case... |
|
normalizes to Title Case: |
|
Multiple Fields
Converting multiple fields to Title Case... |
|
processes all specified fields: |
|
Menu Item Formatting
Formatting navigation menu items... |
|
formats each menu item: |
|