Skip to main content

Capitalize

This rule checks that for the given (key), the first letter is capitalized for each sentence.

Parameter table

paramunitrequireddescription
keyyesThe key of the text to check for capitalized sentences (key).

Correction

The correction will be applied to the provided (key). In this adjustment, the text will be transformed to uppercase, specifically targeting the initial letter of each sentence.

Note: numbers and special characters will not be converted.

How to setup

The rule verifies whether the text associated with the specified (key) has the first character of each sentence capitalized. If the text does not meet this criterion, the rule will fail.

For more complex checks, you can use the rule Regex.

Examples

valuevaliddescription
Alexandria is a city in Egypt. It was founded by Alexander the Great.The text only contains capitalized sentences.
alexandria is a city in Egypt. it was founded by Alexander the Great.The text contains uncapitalized sentences.
parisThe text starts with an uncapitalized word.
ParisThe text starts with a capitalized word.