Skip to contents

This function takes a raw interview transcript, structures it by speaker using structure_interview, and then organizes the lines into a list where each element corresponds to a segment spoken by a specific speaker. Each segment is named according to the speaker's ID, sequence number, and length of the segment.

Usage

prep_interview(interview)

Arguments

interview

A character vector representing the interview transcript (as returned by read_interview).

Value

A list where each element is a character vector containing a contiguous block of lines spoken by the same speaker. The names of the list elements uniquely identify each segment based on speaker ID, segment number and length.

Examples

# Example usage:
structured_interview = prep_interview(intrw)