Topic 3 of 5 · 4 min read
Controlling answer length reliably
Goal: Replace a vague or exact word-count limit with a length instruction the model actually follows, and check the result.
Ask for length in units the model can count as it writes, such as sentences, bullets or paragraphs, and say what the text is for. Treat any exact word count as a rough target. Then check the result yourself.
Check yourself · 1 of 3
Which length instruction is a model most likely to follow closely?
Why it matters
Models write one piece of text at a time, and they do not count words the way a word processor does. If you ask for "exactly 150 words", you will often get 130 or 180. For a tweet limit, a form field or a slide, that miss matters. On the other side, "keep it short" has no number at all, so the answer is as long as the model's habit says.
How to do it
- Use countable units. "Three sentences", "five bullets, each under one line", "two short paragraphs". The model can follow these much more closely than a word total.
- Give a range or a ceiling. "No more than 120 words" is easier to meet than "exactly 120".
- State the purpose. "This is a text message for a customer who is driving" tells the model more about length than a number does. "This will be read aloud in 30 seconds" is also a useful limit.
- Say what to cut first. "If you must trim, drop the background and keep the action."
- Count yourself when it matters. Paste the answer in a word counter. If it is over, reply "cut this to three sentences", not "make it shorter".
Before and after
Before: Write a product blurb of exactly 50 words.
The reply might be 44 words or 63. Nothing in the prompt says what matters if the count is off.
After: Write a product blurb for a shop page: two sentences, no more than 45 words in total. Lead with what the product does for the buyer. If you have to trim, cut adjectives first.
The sentence limit is firm, the word ceiling is a guard, and the purpose and cut rule guide the choices.
What goes wrong
- Trusting an exact count. Hard limits such as a character cap for an app store listing or a database field need a check in code or by hand.
- "Short" with no unit. One person's short is another person's page.
- Padding. Asking for "at least 300 words" often gets filler. Ask for the points you need instead.
- Shortening by saying "shorter" again and again. Each round loses a different detail. Say what to keep.
A useful habit: when the length is a hard rule, ask for a version with a safe margin, such as 80 percent of the limit, and then check.
Examples
Countable units
Before: Summarise this article in about 100 words.
After: Summarise this article in three sentences. The reader has 20 seconds, so put the main finding first.
The second version gives a unit the model can follow, plus a reason that tells it what to keep.
Trimming without losing the point
Reply to an over-long draft: "Cut this to two sentences. Keep the delivery date and the apology. Drop the history."
This names what to keep, so the second draft does not lose the facts you need.
Key points
- Models do not count words reliably, so an exact word total is only a rough target.
- Sentence, bullet and paragraph limits are followed more closely than word counts.
- Naming the purpose, such as a text message or a 30-second read, guides length better than a number alone.
- Say what to cut first when the answer must shrink.
- When the limit is a hard rule, check the count yourself.
Common mistakes
- Relying on an exact word or character count without checking.
- Saying "short" or "brief" with no unit.
- Asking for a minimum word count and getting filler.
- Repeating "make it shorter" instead of saying what to keep.
Check yourself · 2 of 3
A reply must fit a 160-character field. What is the best approach?
Check yourself · 3 of 3
You get a 300-word answer and want it shorter without losing the key point. What do you send?
Practice items, not counted towards your mastery.
Start here
- Prompting best practices (Claude docs) (opens in a new tab)DocsFree
Anthropic's guide, with a section on controlling the format of responses.
- Structured model outputs (OpenAI API docs) (opens in a new tab)DocsFree
Explains JSON Schema-constrained responses and when they beat prompting alone.
- Structured output (Gemini API) (opens in a new tab)DocsFree
Google's page on schema-enforced JSON, with examples of typed fields.