Converts text into sentence case. The first letter of each sentence is capitalized, and all remaining letters are converted to lowercase. Use it to standardize inconsistent text inputs.
-
Convert a message to sentence case
{{sentence record.message}}Input:
{ "record": { "message": "hello world. goodbye world." } }Output:
Hello world. Goodbye world.
-
Use periods, question marks, or exclamation points as word boundaries
{{sentence record.message}}Input
{ "record": { "message": "Mr. hello world? goodbye world!" }}Output
Mr. Hello world? Goodbye world!
Tip
-
This helper lowercases all non-initial characters, so acronyms like “API” become “Api.” Use with caution if capitalization must be preserved.
-
Useful for formatting free-text fields, such as comments or notes, into consistent sentence case.
-
Works best when input strings are well-formed with clear sentence-ending punctuation (
.,!,?). -
Will not work as expected for non-string inputs such as number, boolean, arrays, or objects.