Skip to content

CopyAid: Copyedit with AI from a CLI

CopyAid is an open-source command-line interface (CLI) utility that copyedits text files using the OpenAI API for GPT, a Large Language Model capable of frequent, rapid, and extremely inexpensive copyediting (orders of magnitude cheaper than human copyediting).

Features

  • Supports Markdown and LaTeX formats.
  • Integrates with text file comparison tools such as vimdiff for reviewing and merging AI revisions.
  • Enables simultaneous file comparisons across multiple AI revisions.
  • Permits customization of programs to run automatically after AI revisions.
  • Allows customization of the copyediting instructions sent to OpenAI.
  • Includes systematically tested OpenAI prompts curated from more than a hundred test prompts and many thousands of OpenAI requests using CopyBlaster.

Alert

As of January 2024, gaining access to GPT-4 Turbo will require a payment of $1 or more. As of November 2023, OpenAI offers $5 in free credit for your first 3 months. This can cover copyediting for approximately hundreds of thousands of words.

Examples

Simple Example

$ echo "Use [this sofware](htp://copyaid.it) to wright English good." > doc.md
$ copyaid stomp doc.md
Saving revisions to /tmp/copyaid/R?/doc.md
 for source doc.md
$ cat doc.md
Use [this software](http://copyaid.it) to write English well.

Vimdiff Example

With the default configuration, the heavy task will request a pair of revisions from OpenAI and then run vimdiff for a 3-way diff of the original source and two revisions.

$ echo "Use [this sofware](htp://copyaid.it) to wright English good." > doc.md
$ copyaid heavy doc.md
Saving revisions to /tmp/copyaid/R?/doc.md
 for source doc.md
3 files to edit