liwca.datasets.dictionaries.fetch_scope#
- liwca.datasets.dictionaries.fetch_scope(stem)[source]#
Fetch one lexicon column from SCOPE as a weighted dictionary.
The South CarOlina Psycholinguistic metabase (SCOPE) aggregates over 250 psycholinguistic variables for ~190,000 words and ~80,000 nonwords. This fetcher downloads
scope.xlsxonce and slices the requested column into a single-category weighted.dicxcached alongside the source file.Word case-variants in the source (e.g.
Cafévscafé) are merged by averaging their scores so the lowercaseDicTermindex is unique.- Parameters:
stem (str) – Name of the SCOPE column to extract (case-insensitive). For example,
"concreteness_brysbaert"resolves to the canonicalConcreteness_Brysbaertcolumn. Seelist_scope_stemsfor valid names, orliwca.datasets.tables.fetch_scopefor the classification metadata.- Returns:
pandas.DataFrame– Weighted dictionary with one column named after the canonical SCOPE column and a lowercaseDicTermindex.If used, cite
Gao et al., 2023. SCOPE (The South Carolina psycholinguistic metabase.)
*Behavior Research Methods*
- Return type:
Examples
>>> from liwca.datasets import dictionaries >>> dx = dictionaries.fetch_scope("concreteness_brysbaert")