Count words and lines
How many words, lines, sentences and characters a text has.
Command in the String toolkit · id ooa.string/count_words · 1 input (1 required), 5 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Text | String | Yes | Text to count. |
Outputs
| Output | Type | What it is |
|---|---|---|
| words | Number | Words (runs of letters and digits). |
| lines | Number | Lines, empty ones included; 0 for empty text. |
| sentences | Number | Sentences ending in . ! or ?. |
| characters | Number | Characters, spaces included. |
| characters_no_spaces | Number | Characters without spaces and line breaks. |