glottolog / glottolog-cldf

Glottolog data as CLDF StructureDataset
https://glottolog.org
Creative Commons Attribution 4.0 International
13 stars 3 forks source link

Add CodeTable->numerical_value column back in #19

Closed xrotwang closed 1 year ago

xrotwang commented 1 year ago

Via @bambooforest :

E.g. looks like the codes.csv table has dropped the numerical_value column.

csvgrep -c Parameter_ID -m aes cldf/codes.csv
ID,Parameter_ID,Name,Description
aes-not_endangered,aes,not endangered,EGIDS: <=6a; UNESCO: safe; ElCat: safe
aes-threatened,aes,threatened,EGIDS: 6b; UNESCO: vulnerable; ElCat: vulnerable
aes-shifting,aes,shifting,EGIDS: 7; UNESCO: definitely endangered; ElCat: definitely endangered
aes-moribund,aes,moribund,EGIDS: 8a; UNESCO: severely endangered; ElCat: severely endangered
aes-nearly_extinct,aes,nearly extinct,EGIDS: 8b; UNESCO: critically endangered; ElCat: critically endangered
aes-extinct,aes,extinct,EGIDS: >=9; UNESCO: extinct; ElCat: extinct

While the ordering which could be forced with numerical_value can also be inferred by row number, a numerical_value column would make this more explicit.