Word count
text_word_countCount words, characters, sentences, paragraphs, lines, and unique words in text or a file; estimate reading and speaking times; list top keywords with density. Supports English and Arabic.
Instructions
Count words, characters (with and without spaces), sentences, paragraphs, lines and unique words; estimate reading (238 wpm) and speaking (150 wpm) time; list the most used keywords with density. Works for English and Arabic (tashkeel ignored). Give "text" or a text file "path". Web version: https://s3eidat.github.io/word-count/
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "text_word_count"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Or: a path to a UTF-8 text file. | |
| text | No | The text to analyse. | |
| keywords | No | How many top keywords to return (0 = none). | |
| includeStopWords | No | Count common words like "the"/"في" as keywords. |