# .cap sentences command

The .cap sentences command capitalizes
the first letter of each sentence or attribute.

**Synonyms:** .cs

## Syntax

```
.cap sentences
```

## Description

The beginning of a sentence
is considered to be the first letter of each attribute. The first
letter after a period, question mark, or exclamation point is also
considered the beginning of a sentence, and is therefore capitalized.
If the first word of a sentence is already capitalized, it remains
capitalized.

Sentences are capitalized until an .xcap
sentences command is encountered.

## Example(s)

```
.cap sentences
this is the first sentence. this is the second. and, this is the third.
```
Produces this output:

```
This is the first sentence. This is the second. And, this is the third.
```

## See also

- [Output processor commands](https://d3codex.com/output-processor/output-processor-commands/)
- [Output processor overview](https://d3codex.com/output-processor/output-processor-overview/)

---
Source: https://d3codex.com/output-processor/dot-cap-sentences-command/ - part of the D3Codex reference.
