% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lexical_analysis.R
\name{calculate_dispersion_metrics}
\alias{calculate_dispersion_metrics}
\title{Calculate Dispersion Metrics}
\usage{
calculate_dispersion_metrics(tokens_object, terms)
}
\arguments{
\item{tokens_object}{A quanteda tokens object}

\item{terms}{Character vector of terms to analyze}
}
\value{
Data frame with columns:
\itemize{
\item term: The search term
\item frequency: Total occurrences
\item doc_count: Number of documents containing term
\item doc_ratio: Proportion of documents containing term
\item juilland_d: Juilland's D dispersion (0-1, higher = more even),
computed on within-document proportions
\item rosengren_s: Rosengren's S dispersion adjusted for document
sizes (1/n_docs to 1, higher = more even)
}
}
\description{
Computes quantitative dispersion metrics for terms, measuring how
evenly distributed they are across the corpus.
}
\concept{lexical}
