Skip to contents

Trims the model's reply and matches it against the codebook's labels, exactly first, then case-insensitively; anything else becomes NA (a parse failure you will see in the validation tables, not a silently invented category).

Usage

parse_label()

Value

A function (text, labels) -> label or NA suitable for protocol()'s parser argument.