Word Length
word_lengthDetermine the precise length of any text, with breakdowns for spaces, characters without spaces, and word count.
Instructions
Get the exact length of text with detailed breakdown.
Args:
text (string): The text to measure
count_spaces (boolean): Include spaces in length (default: true)
Returns: Total length, length without spaces, space count, word count.
Example: word_length("hello world") → 11 total, 10 without spaces, 2 words
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text to measure | |
| count_spaces | No | Include spaces in length |