liwca.datasets.dictionaries.fetch_psychnorms#
- liwca.datasets.dictionaries.fetch_psychnorms(stem)[source]#
Fetch one lexicon column from psychNorms as a weighted dictionary.
The psychNorms metabase aggregates 290+ psycholinguistic norms for ~107,000 words across 27 semantic categories (frequency, valence, arousal, concreteness, sensory ratings, etc.). This fetcher downloads
psychnorms.ziponce and slices the requested column into a single-category weighted.dicxcached at the dictionaries cache root.- Parameters:
stem (str) – Name of the psychNorms
normto extract (case-insensitive). psychNorms columns are already lowercasesnake_case, so the stem usually matches the column name verbatim (e.g."concreteness_brysbaert"). Seelist_psychnorms_stemsfor valid names, orliwca.datasets.tables.fetch_psychnormsfor the classification metadata.- Returns:
pandas.DataFrame– Weighted dictionary with one column named after the psychNorms norm and a lowercaseDicTermindex.If used, cite
Hussain et al., 2024.
Probing the contents of semantic representations from text, behavior, and
brain data using the psychNorms metabase. *arXiv*
- Return type:
Examples
>>> from liwca.datasets import dictionaries >>> dx = dictionaries.fetch_psychnorms("concreteness_brysbaert")