twomey2021
Science Score: 67.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 1 DOI reference(s) in README -
✓Academic publication links
Links to: zenodo.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (9.0%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: crtwomey
- License: gpl-3.0
- Language: R
- Default Branch: main
- Size: 33.8 MB
Statistics
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
- Releases: 1
Metadata Files
README.md
Code and Data Supplementary Information for Twomey et al. (2021)
This repository contains two directories with supplementary code and data for Twomey et al. (2021).
Code
In the code directory, code/inv.R contains an implementation of the algorithm used to infer language-specific communicative needs. A demonstration of the algorithm is available in code/example.R. The demo can be executed line-by-line in an R REPL, and follows the example used in SI Fig. S1. Rate-distortion optimal quantizations used in this example are generated by the algorithm provided in code/rd.R.
All code is open source under a GNU GPL v3 license (see LICENSE).
Data
In the data directory, three CSV files are provided, corresponding to SI Datasets S1, S2, and S3.
SI Dataset S1 (communicative_needs.csv)
Language-specific inferred distributions for each language in the combined
WCS+B&K data is stored in data/communicative_needs.csv, with one row for each
language. The lnum field for the first 1-110 rows correspond to the lnum fields
for the languages in the WCS data archived here. The remaining 20 rows, 111-130,
correspond to the 20 languages in the B&K dataset (available in the same
archive as the WCS data above). Subtracting 110 from the lnums for these
languages gives the corresponding lnums for the B&K dataset. The name of each
language is provided as the second column in the CSV file. The remaining
columns, numbered 1-330 corresponding to their cnum in the WCS, contain the
language specific inferred values for each language and color chip.
SI Dataset S2 (averagecommunicativeneeds.csv)
The average inferred distribution across all 130 languages is stored in
data/averagecommunicativeneeds.csv. Each row corresponds to a single color
chip in the WCS data, indexed by the cnum field. The value of the average
inferred distribution for each chip is provided in the average column. The
values of cnum correspond to the chip numbering used in cnum-vhcm-lab-new.txt
from the World Color Survey archive.
SI Dataset S3 (bootstrappedcommunicativeneeds.csv)
Distributions of language-specific communicative needs inferred by resampling language focal colors with replacement. The structure of the data is the same as for SI Dataset S1, except with 100 consecutive rows per language.
All data is shared under a creative commons CC-BY-SA license.
Owner
- Name: Colin R. Twomey
- Login: crtwomey
- Kind: user
- Location: Philadelphia, PA
- Company: University of Pennsylvania
- Website: https://www.sas.upenn.edu/~crtwomey
- Repositories: 2
- Profile: https://github.com/crtwomey
Citation (CITATION.cff)
cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Twomey"
given-names: "Colin"
orcid: "https://orcid.org/0000-0002-7368-2861"
title: "Code and Data for Twomey et al. 2021 What we talk about when we talk about colors"
version: 1.0.0
date-release: "2021-09-09"
url: "https://github.com/crtwomey/twomey2021"
preferred-citation:
type: article
authors:
- family-names: "Twomey"
given-names: "Colin R."
orcid: "https://orcid.org/0000-0002-7368-2861"
- family-names: "Roberts"
given-names: "Gareth"
orcid: "https://orcid.org/0000-0002-6662-6829"
- family-names: "Brainard"
given-names: "David H."
orcid: "https://orcid.org/0000-0001-9827-543X"
- family-names: "Plotkin"
given-names: "Joshua B."
orcid: "https://orcid.org/0000-0003-2349-6304"
doi: "10.1073/pnas.2109237118"
url: "https://doi.org/10.1073/pnas.2109237118"
journal: "PNAS"
title: "What we talk about when we talk about colors"
volume: 118
issue: 39
year: 2021
GitHub Events
Total
- Watch event: 1
Last Year
- Watch event: 1