Skip to contents

This function identifies and returns a vector of unique speaker identifiers present in an interview transcript. It first structures the transcript using structure_interview to extract speaker names.

Usage

retrieve_speaker(interview)

Arguments

interview

A character vector representing the interview transcript (as returned by read_interview). The lines should be tagged with speaker names within square brackets (e.g., "[Speaker1] This is a line").

Value

A character vector containing the unique speaker identifiers found in the interview transcript.

Examples

# Example usage:
speakers = retrieve_speaker(intrw)