This code example accomanies a blog post published as part of the blog "Computer-Assisted Langauge Comparison in Practice" (https://calc.hypotheses.org).
In order to get started, install the WALS dataset in CLDF format with the help of pip
(ideally, make sure to use a fresh virtual environment!).
$ pip install -e git+https://github.com/cldf-datasets/wals.git@v2020#egg=cldfbench_wals
Once this has been done, you should be able to run the script wals.py
by simply typing:
$ python wals.py
For details, check https://calc.hypotheses.org/2670.