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

```bash
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.

```python
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.1.0a1-py2.py3-none-any.whl (178.6 kB) Copy SHA256 hash SHA256 Wheel py2.py3
ety-0.1.0a1.tar.gz (167.2 kB) Copy SHA256 hash SHA256 Source None

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