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.

Source Distribution

ety-0.1.0a1.tar.gz (167.2 kB view hashes)

Uploaded Source

Built Distribution

ety-0.1.0a1-py2.py3-none-any.whl (178.6 kB view hashes)

Uploaded Python 2 Python 3

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