Skip to main content

a linguistic toolkit for detecting old loanwords by predicting, evaluating and applying changes in horizontal and vertical lexical transfers

Project description

the DOI continuous integration status code coverage status Documentation Status PyPI Latest Version


LoanPy is a linguistic toolkit developed during the course of my PhD thesis at the University of Vienna, providing solutions for various tasks in historical and contact linguistics, such as:

  • Mining correspondence patterns from etymological data on the level of phonology and phonotactics

  • Predicting loanword adaptation (lateral/horizontal transfers) based on heuristics and etymological data

  • Historical reconstruction of words (vertical transfers) based on etymological data

  • Evaluating the quality of the predictive models

  • Searching for potential (old) loanwords between two languages

This toolkit has been designed with ease of use and compatibility in mind, offering a standalone, easy-to-setup, and cross-platform solution that works with Python 3.7 or higher.


Latest stable version:

$ pip install loanpy

Development version:

$ pip install git+



If you use loanpy 3 in your research or project, please cite the following:

  author       = {Viktor Martinovi{\'c}},
  title        = {LoanpyDataHub/loanpy: Third stable release},
  month        = may,
  year         = 2023,
  publisher    = {Zenodo},
  version      = {3.0.0},
  doi          = {10.5281/zenodo.7893906},
  url          = {}


LoanPy is released under the MIT License.

Compatible Input Data

LoanPy supports the following datasets:

Main Changes Compared to Version 2

  • Standalone: No external dependencies needed.

  • Easy setup: Just download or clone the repository and start using it.

  • Cross-platform: Works on any platform that supports Python.

  • Python Compatibility: Works with Python 3.7 or higher.

  • CLDF Integration: Fully compatible with CLDF data standards.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

loanpy-3.0.4.tar.gz (61.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page