> For the complete documentation index, see [llms.txt](https://baezor.gitbook.io/sklib/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://baezor.gitbook.io/sklib/text/capitalize-sentence.md).

# 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.

```csharp
sklib_capitalizeFirstSentence("this sentence is lowercase.")
```

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

```csharp
# 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.
```
