Skip to contents

Compiles the codebook into the plain-text block that is interpolated into the protocol's prompt template (at {codebook}). The same rendering can be handed to human coders, which is the point: one instrument, two coder populations.

Usage

format_codebook(x)

Arguments

x

A codebook().

Value

A character scalar.

Examples

cb <- codebook("tone", "one sentence",
  list(cb_category("positive", "Approving or hopeful."),
       cb_category("negative", "Critical or alarmed.")))
cat(format_codebook(cb))