PsychiatryNLPKit.analysis.adjective_ratio

PsychiatryNLPKit.analysis.adjective_ratio(pos_tags, sections=None, lang='en', averaging_method='macro')[source]

Adjective-to-total-word ratio per section.

Notes:

Theoretical basis - Adjective usage reflects descriptive richness and elaboration in speech. Reduced adjective use may indicate impoverished thought content.

Args:

pos_tags: Dict mapping section names to lists of POS-tagged sentences. sections: Sections to process. None processes all sections in

pos_tags.

lang: Language code (“en” or “fr”). averaging_method: "macro" averages per-sentence ratios; "micro"

computes total adjectives / total words across the section.

Returns:

Dict mapping section names to a dict with keys "adjective_ratio" and "adjective_count". Empty sections receive float("nan") for both.