This library is a Python3 tool for linguistic interactive mapping. It is based on R-package created by Agrizolamz. It uses the same phylosophy and provides similar functionality.
Lingtypology relies on data from the Glottolog database.
With each new version of lingtypology
Glottolog data is updated. Now it is using Glottolog 3.4-7
.
You can update data from Glottolog by using lingtypology.update_glottolog()
function. However, it is buggy and not recommended yet.
Soon this package will be available in PyPI. For now you can install it following these steps:
- Clone the repository:
git clone https://github.com/OneAdder/lingtypology
- Enter the directory:
cd lingtypology
- Install the package:
Locally:pip3 install . --user
Globally (not recommended):sudo pip3 install .
Lingtypology package contains LingMap
class that allows to draw interactive maps, glottolog
library that allows to interact with Glottolog data and db_apis
that allows to interact with different other linguistic databases.
For more informations consult the tutorial or docstrings from the code.