text

Use this when you need exact word, character, sentence, and paragraph counts instead of estimating.

Use this when you need exact word, character, sentence, and paragraph counts instead of estimating. Deterministic: same input, same output. Uses Unicode-aware segmentation (Intl.Segmenter): characters are grapheme clusters, so an emoji or an accented letter counts as one; words are word-like segments; sentence splitting is abbreviation-aware (Dr., etc., won't end a sentence). charactersNoSpaces counts graphemes after stripping whitespace, and paragraphs are blocks separated by blank lines. Example: "Café 👩‍💻!" -> words 1, characters 7, charactersNoSpaces 6, sentences 1, paragraphs 1. Empty input returns all zeros.

post/v1/count_text

Request

  • Base URL: https://api.clean.tools
  • URL: https://api.clean.tools/v1/count_text
  • Auth: none declared

Request body

textstring required

Text to analyze.

Response

Structured tool result.

toolstring

Changes

No recorded changes to this operation across all 1 revision of this API.