Skip to main content

find the etymological origins of a word

Project description

ety-python

Python module to find the etymological origins of a word

Note: this module is under construction and doesn't yet have a large enough dataset to be useful

Install

pipenv shell
python setup.py install

Usage

Module

>>> import ety

>>> ety.origins("potato")
['Spanish', 'Taino']

>>> ety.origins("abandon")
['Middle English', 'Middle French', 'Old French']

CLI

After installing, a command-line tool is also available

Usage:
  $ ety <word>

Example:
  $ ety potato
  Spanish, Taino

How it works

(for reference)

In setup.py, the following few lines tell setuptools to set up a cli script called 'ety' that runs the cli method from the ety module.

entry_points={
    'console_scripts': [
        'ety=ety:cli',
    ],
},

The cli method reads in the word as an argument. If no word is specified, the usage instructions and example are displayed

Project details


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
ety-0.0.0-py2.7.egg (176.9 kB) Copy SHA256 hash SHA256 Egg 2.7

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page