% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/structure_interview.R
\name{structure_interview}
\alias{structure_interview}
\title{Structure Interview Transcript by Speaker}
\usage{
structure_interview(interview)
}
\arguments{
\item{interview}{A character vector representing the interview
transcript, where each line is tagged with a speaker's name
enclosed in square brackets (e.g., "[Speaker1] This is a line").}
}
\value{
An object of class "rle" containing information about
the lengths and values of consecutive lines spoken by the same
speaker.  The \code{values} component contains speaker names, and
\code{lengths} indicates how many consecutive lines each speaker spoke.
}
\description{
This function structures an interview transcript to identify
consecutive lines spoken by the same speaker. It uses run-length
encoding (rle) after extracting speaker identifiers from bracketed
tags in the text.
}
\examples{
# Example usage:
interview_structure = so.ii:::structure_interview(intrw)

}
\seealso{
Other process interview:
\code{\link[=concatenate_intervention]{concatenate_intervention()}},
\code{\link[=generate_speaker_pattern]{generate_speaker_pattern()}},
\code{\link[=prep_interview]{prep_interview()}},
\code{\link[=process_interview]{process_interview()}},
\code{\link[=process_structured_interview]{process_structured_interview()}},
\code{\link[=read_interview]{read_interview()}},
\code{\link[=rename_speaker]{rename_speaker()}},
\code{\link[=retrieve_speaker]{retrieve_speaker()}},
\code{\link[=unlist_processed_interview]{unlist_processed_interview()}},
\code{\link[=write_interview]{write_interview()}}
}
\concept{process interview}
\keyword{internal}
