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.
Arguments
- x
A
codebook().
Examples
cb <- codebook("tone", "one sentence",
list(cb_category("positive", "Approving or hopeful."),
cb_category("negative", "Critical or alarmed.")))
cat(format_codebook(cb))