Skip to content

Data and code for "Color naming across languages reflects color use"

Notifications You must be signed in to change notification settings

languageMIT/color

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tsimane' Color Project

Data and standalone analysis pipeline for generating figures and data tables for the color paper:

Edward Gibson, Richard Futrell, Julian Jara-Ettinger, Kyle Mahowald, Leon Bergen, Sivalogeswaran Ratnasingam, Mitchell Gibson, Steven T. Piantadosi, and Bevil Conway. 2017. Color naming across languages reflects color use. Proceedings of the National Academy of Sciences 114(40): 10785-10790.

The data is anonymized: participant names and locations are replaced with numeric codes.

The analysis is done with a large R script and then a small python script. To install the R dependencies, open the R interpreter and run install.packages(c("MASS", "lme4", "reshape2", "plyr", "stringr", "hexbin", "Hmisc", "tidyverse")). To install the python dependencies, on the command line do pip install pandas, pip install scipy, pip install matplotlib.

Now to run the analysis, on the command line, do: Rscript allfigs.R, then python contours.py. Results will be stored in the directory output.

About

Data and code for "Color naming across languages reflects color use"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published