Check a word limit
check_word_limitChecks whether an essay meets a word limit by counting words and reporting remaining or excess words, with options to exclude references and quotes and allow tolerance.
Instructions
Compare an essay against a word limit. Inputs: text, limit (the maximum word count), optional minimum (a lower bound), optional tolerance_percent (how far over the limit is still acceptable, default 0, a common rule is 10), optional exclude_references (cut everything from a heading line such as References, Works Cited or Bibliography to the end) and optional exclude_quotes (leave out block quotes that start with > and text inside double quotes). Returns the counted words, how many are left or over, and what was excluded. Example: "Is this under 2000 words if I leave out the works cited and quotes?.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| limit | Yes | Maximum number of words. | |
| minimum | No | Minimum number of words. | |
| exclude_quotes | No | Leave out quoted passages. Default false. | |
| tolerance_percent | No | Percent over the limit that is still fine. Default 0. | |
| exclude_references | No | Leave out the references section. Default false. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | Yes | ||
| status | Yes | ||
| minimum | Yes | ||
| words_over | Yes | ||
| total_words | Yes | ||
| counted_words | Yes | ||
| allowed_maximum | Yes | ||
| words_remaining | Yes | ||
| excluded_quote_words | Yes | ||
| excluded_reference_words | Yes |