liwca.datasets.dictionaries.fetch_scope

On this page

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.xlsx once and slices the requested column into a single-category weighted .dicx cached alongside the source file.

Word case-variants in the source (e.g. Café vs café) are merged by averaging their scores so the lowercase DicTerm index is unique.

Parameters:

stem (str) – Name of the SCOPE column to extract (case-insensitive). For example, "concreteness_brysbaert" resolves to the canonical Concreteness_Brysbaert column. See list_scope_stems for valid names, or liwca.datasets.tables.fetch_scope for the classification metadata.

Returns:

  • pandas.DataFrame – Weighted dictionary with one column named after the canonical SCOPE column and a lowercase DicTerm index.

  • If used, cite

  • Gao et al., 2023. SCOPE (The South Carolina psycholinguistic metabase.)

  • *Behavior Research Methods*

  • doi (10.3758/s13428-022-01934-0)

Return type:

DataFrame

Examples

>>> from liwca.datasets import dictionaries
>>> dx = dictionaries.fetch_scope("concreteness_brysbaert")