Skip to main content
loanpy
Build Status

loanpy is a tool for historical linguists. It extracts sound changes and constraints from an etymological dictionary, generates pseudo-roots for L1, pseudo- sound-substitutions for L2, searches for phonetically identical lexemes and ranks those according to semantic similarity.

Installation

$ python -m pip install loanpy

Getting started

>>> from loanpy import loanfinder as lf

Download and unpack 3 Gigabytes of pretrained Google-News vectors. Move GoogleNews-vectors-negative300.bin to the folder “data”, the full path to which can be retrieved via:

>>> import os
>>> print(os.path.dirname(lf.__file__)+r"\data")

Following code will compare a set of Gothic words (data/dfgot.csv) with Hungarian words (data/zaicz.csv) and evaluate which elements are the most likely candidates for loanwords. The result can be viewed in data/results/matches.csv:

>>> lf.loandf()

Data Sources

Gábor Zaicz’s Hungarian etymological dictionary from 2006

Gerhard Köbler’s Gothic database

Hungarian Academy of Science’s online version of Uralisches Etymologisches Wörterbuch

License

Academic Free License (AFL) (Creative Commons Attribution 4.0 International)

Release files for loanpy 0.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for loanpy 0.1.7
File Size Uploaded
loanpy-0.1.7.tar.gz 1.3 MB Details

Release files / loanpy-0.1.7.tar.gz

Download URL loanpy-0.1.7.tar.gz
Size 1.3 MB
Tags Source
SHA-256 checksum
How to use checksums
e036516c89eb60241d760c649f0ef5209b567c976e88284db6d33ac8629f1f89
BLAKE2b-256 checksum
How to use checksums
f858d413ff7f47c1ecc0a4306c8aef2e1d62b26204935b0994e1706cc8a0791b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.1

Release history Release notifications | RSS feed

3.0.4

1 release file

3.0.3

1 release file

3.0.2

1 release file

3.0.1

2 release files

3.0.0

1 release file

2.0.2

1 release file

2.0.1

1 release file

2.0.0

1 release file

1.0.1

2 release files

0.1.9

2 release files

0.1.8

1 release file

This release

0.1.7 This release

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

0.0.9

1 release file

0.0.8

1 release file

0.0.7

1 release file

0.0.6

1 release file

0.0.5

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page