Free plan

Word counter and readability

Count words and see how easy your text is to read
POST
/v1/documents/word-count

About this tool

This tool counts characters, words, sentences and paragraphs in a text or document. It estimates how long it takes to read and to say aloud, and scores how easy it is to read. It lists the most used words and the longest sentences. It can also check your text against a word or character limit.
For example, you check that your essay is under 1,000 words and how long it takes to read.

How to use it

  1. Choose this tool.
  2. Type or paste your text, or add a document.
  3. Choose the language, and set a limit if you have one.
  4. Press Generate.
  5. Read the counts and scores on screen.

What you get back

You get the counts, reading time, readability score and word lists on screen. You can copy them.
GOOD TO KNOW
Syllables are counted by rule, so the scores are estimates. Nothing is sent anywhere. Counts as one document when a file is sent.
TEST IT LIVE

Try Word counter and readability in the Studio

One click opens the Studio with this tool already selected. Add your file and see the result in seconds.
Open in the Studio
Family
Documents
Plan
Free
Method
POST
Endpoint
/v1/documents/word-count
Tool ID
documents.word-count
Authentication
API key
Accepts
Text and settings
Background jobs
Yes
Usage group
Documents
For developers

Use it from your code

cURL

curl -X POST "https://app.h2i.davixlabs.io/v1/documents/word-count" \
  -H "X-Api-Key: $DAVIX_H2I_API_KEY" \
  -F 'text=The quick brown fox jumps over the lazy dog.' \
  -F 'language=en' \
  -F 'reading_wpm=238'

Node.js

const { DavixH2I } = require('@davixlabs/h2i-sdk');

const h2i = new DavixH2I({ apiKey: process.env.DAVIX_H2I_API_KEY, baseUrl: process.env.DAVIX_H2I_URL });
const result = await h2i.documents.wordCount({
    "text": "The quick brown fox jumps over the lazy dog.",
    "language": "en",
    "reading_wpm": 238
  });
console.log(result.data, result.requestId);

PHP

<?php
require 'vendor/autoload.php';

$h2i = new \Davix\H2I\Client(['apiKey' => getenv('DAVIX_H2I_API_KEY'), 'baseUrl' => getenv('DAVIX_H2I_URL')]);
$result = $h2i->documents()->wordCount([
    'text' => 'The quick brown fox jumps over the lazy dog.',
    'language' => 'en',
    'reading_wpm' => 238,
]);
echo $result->requestId;
FAQ

Frequently asked questions

Count the characters, words, sentences and paragraphs of a text or a document, time its reading and speaking, score how easy it is to read (Flesch, Fog, SMOG and more; German, Spanish and French formulas), list the most used words and phrases and the longest sentences, and check it against a word or character limit.

Word counter and readability works from text and settings, so no file is needed. Every input is optional.

Word counter and readability is included in every plan, including Free. Each run uses credits from your monthly allowance.

Send a POST request to /v1/documents/word-count with your API key in the X-Api-Key header. Official SDKs for Node.js, Python, PHP, Go, Java, .NET and Ruby do the same for you, and the code box on this page shows ready-to-copy examples. For large work it can also run as a background job, so your request returns straight away.