Capitalize
This rule checks that for the given (key
), the first letter is capitalized for each sentence.
Parameter table
param | unit | required | description |
---|---|---|---|
key | yes | The 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
value | valid | description |
---|---|---|
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. |
paris | ❌ | The text starts with an uncapitalized word. |
Paris | ✅ | The text starts with a capitalized word. |