Cookbook
Recipes for cooking with Glottolog data
Install / Use
/learn @glottolog/CookbookREADME
Glottolog Cookbook
This cookbook contains recipes to tackle common tasks involving
Glottolog data,
typically using the Python library pyglottolog.
- Glottolog data as CLDF: Accessing Glottolog data as CLDF dataset.
- Putting Glottolog languages on maps
- Examining changes across Glottolog releases.
- Computing MEDs over time.
- treemaker: Extracting a tree for a given set of languoids from the global tree.
recipes/locations_of_child_languages.pyis a script to extract locations for all languages in a given clade. It must be invoked specifying the local path to a clone of the Glottolog repository, the glottocode of the clade and the name of the CSV file to which to write the data, e.g. - if invoked from within thecookbookdirectory of a repository clone:
will result in a CSV file as follows:$ python locations_of_child_languages.py .. narr1281 narrow_bantu_locations.csv$ head narrow_bantu_locations.csv name,glottocode,latitude,longitude Bube,bube1242,3.53638,8.68929 Chikunda,kund1255,-15.7337,30.2804
