Skip to main content

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​

InputTypeRequiredDefaultWhat it is
TextStringYesText to count.

Outputs​

OutputTypeWhat it is
wordsNumberWords (runs of letters and digits).
linesNumberLines, empty ones included; 0 for empty text.
sentencesNumberSentences ending in . ! or ?.
charactersNumberCharacters, spaces included.
characters_no_spacesNumberCharacters without spaces and line breaks.