Articles in this section

sentence helper

The sentence helper converts text to sentence case: the first letter of each sentence is capitalized and all remaining letters are lowercased. Use it to standardize free-text fields such as comments, notes, or descriptions.

Syntax

{{sentence value}}

value -- The string to convert. Required. Non-string inputs (numbers, booleans, arrays, objects) do not produce usable output.

Examples

Convert a simple message to sentence case

{{sentence record.message}}

Input:

{ "record": { "message": "hello world. goodbye world." } }

Output: Hello world. Goodbye world.

Each sentence starts with a capital letter. All other letters are lowercased.

Handle multiple sentence-ending punctuation marks

{{sentence record.message}}

Input:

{ "record": { "message": "Mr. hello world? goodbye world!" } }

Output: Mr. Hello world? Goodbye world!

Sentences are split on ., ?, and !. Note that "Mr." is treated as a sentence boundary, so "hello" is capitalized as the start of the next sentence.

Usage notes

  • All non-initial characters are lowercased. Acronyms and proper nouns lose their capitalization: "API" becomes "Api". Use this helper only when preserving mid-sentence capitalization is not required.
  • Sentence boundaries are detected at ., ?, and !. Abbreviations that end with a period (e.g. "Mr.", "Dr.") may cause unexpected capitalization of the following word.
  • Non-string inputs (numbers, booleans, arrays, objects) do not produce usable output.