Capitalize Sentence

Capitalize every word in a sentence.

Overview and Example

You can capitalize every word in a sentence with this function. This function returns text, so you can use it in strings.

sklib_capitalizeFirstSentence("this sentence is lowercase.")

Below is an explanation of how it works and what the function returns.

# The first letter of every word in the sentence will always be capitalized.
sklib_capitalizeFirstSentence("this sentence is lowercase.")
# Returns: This Sentence Is Lowercase.

# The rest of the sentence will always be lowercase.
sklib_capitalizeFirstSentence("this SENTENCE is loWerCaSE.")
# Returns: This Sentence Is Lowercase.

Last updated