find the etymological origins of a word
Project description
ety-python
Python module to find the etymological origins of a word
Install
pip
pip install ety
Development
In a virtual environment: (Pipenv is recommended)
python setup.py install
Usage
Module
>>> import ety
>>> ety.origins("potato")
[Word(batata, language=Taino)]
>>> ety.origins('drink', recursive=True)
[Word(drync, language=Old English (ca. 450-1100)), Word(drinken, language=Middle English (1100-1500)), Word(drincan, language=Old English (ca. 450-1100))]
>>> print(ety.tree('aerodynamically'))
aerodynamically (English)
├── -ally (English)
└── aerodynamic (English)
├── aero- (English)
│ └── ἀήρ (Ancient Greek (to 1453))
└── dynamic (English)
└── dynamique (French)
└── δυναμικός (Ancient Greek (to 1453))
└── δύναμις (Ancient Greek (to 1453))
└── δύναμαι (Ancient Greek (to 1453))
CLI
After installing, a command-line tool is also available. ety -h
outputs the following help text describing arguments:
usage: ety [-h] [-r] [-t] words [words ...]
positional arguments:
words the search word(s)
optional arguments:
-h, --help show this help message and exit
-r, --recursive search origins recursively
-t, --tree display etymology tree
Examples
$ ety drink
drink # List direct origins of a word
• drync (Old English (ca. 450-1100))
• drinken (Middle English (1100-1500))
$ ety drink -r # Recursive argument
drink
• drync (Old English (ca. 450-1100))
• drinken (Middle English (1100-1500))
• drincan (Old English (ca. 450-1100))
$ ety drink -t # Output tree argument
drink (English)
├── drinken (Middle English (1100-1500))
│ └── drincan (Old English (ca. 450-1100))
└── drync (Old English (ca. 450-1100))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ety-1.1.0.tar.gz
(3.0 MB
view hashes)
Built Distributions
ety-1.1.0-py3.6.egg
(3.2 MB
view hashes)