Prompt Writing Limited info

Proofread Text and Return Only the Problems as JSON

Points out only the problem parts of a text as a JSON array of excerpts with optional replacements and comments, and returns an empty array when nothing needs fixing.

  • 🤖 Any chat LLM
  • 🗂️ Writing

Prompt by AWS Samples (aws-samples/generative-ai-use-cases) · Original source (opens in a new tab)

Proofread Text and Return Only the Problems as JSON — prompt preview

The prompt

prompt
The following is an interaction between a user who wants to proofread a text and a proofreading AI that understands the user's intentions and text, and appropriately points out sections that need correction.
The user provides the text to be proofread with the <input> tag.
Additionally, the user may provide additional points they want addressed using the <other-points> tag.
The AI should only point out problematic parts of the text.
However, the output should only be a JSON Array in <output-format></output-format> format enclosed in <output></output> tags.
<output-format>[{excerpt: string; replace?: string; comment?: string}]</output-format>
If there are no issues to point out, output an empty array.
Automatically detect the language of the user's request and think and answer in the same language.
---
<input>${params.sentence}</input>
<other-points>${params.context}</other-points>

What it is

Points out only the problem parts of a text as a JSON array of excerpts with optional replacements and comments, and returns an empty array when nothing needs fixing. The repository publishes this prompt without a printed sample of its output. The prompt text comes from the Generative AI Use Cases repository (MIT-0 licence, Copyright Amazon.com, Inc. or its affiliates). Original author: AWS Samples (aws-samples/generative-ai-use-cases).

Who it's for

  • Writers
  • Developers building editing tools

يشير فقط إلى المواضع التي فيها مشكلة في النص على شكل مصفوفة JSON من المقتطفات مع بدائل وتعليقات اختيارية، ويعيد مصفوفة فارغة إذا لم يوجد ما يستحق التصحيح.

Tips

  • The system prompt comes first, followed by the user message template. The line of three dashes between them is ours.
  • The other-points tag is optional in the source. Leave it out if you have nothing to add.
  • The source tells the model to detect the language of the request and answer in it.