Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/damiencorpataux/py-wordmorph
A basic python word morphing library
https://github.com/damiencorpataux/py-wordmorph
Last synced: 2 days ago
JSON representation
A basic python word morphing library
- Host: GitHub
- URL: https://github.com/damiencorpataux/py-wordmorph
- Owner: damiencorpataux
- Created: 2013-10-31T12:49:09.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2013-11-05T13:41:47.000Z (about 11 years ago)
- Last Synced: 2024-04-29T00:09:26.140Z (6 months ago)
- Language: Python
- Size: 320 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
py-wordmorph
============A basic python word morphing library.
```script.py``` outputs the first path found between two given words.
### Usage
**Strip the word list in order to obtain a clean wordlist to process (eg. no quotes or caps):**
```
python strip.py -i linuxwords -o words
```**Morph words:**
```
python script.py --wordlist words --from cast --to hurt
```You can also pipe data:
```
cat linuxwords | python strip.py | python script.py --from cast --to hurt
```### More options
```python script.py -h``` and ```python strip.py -h```### Unittests
Run the unittests:
```
python tests/consistency.py
```