Pure Python package for getting synonyms for words.
Project description
A simple Python package that looks up synonyms for words.
Synnamon: Easy to use function for word synonym lookups
What is it?
Synnamon is a simple Python package that looks up synonyms using a built in thesaurus shelve file instead of reaching out to web resources (PyDictionary) or using large English lexical databases (nltk WordNet).
Where to get it
The source code is currently hosted on GitHub at: https://github.com/eddiethedean/synnamon
# PyPI
pip install synnamon
Dependencies
- inflex: used to convert plural word lookups to singular and then convert singular synonym results to plural
Example
>>> import synnamon
>>> synnamon.get_syns('jump')
{'noun': ['leap', 'parachuting', 'jumping', 'saltation', 'startle', 'start'],
'verb': ['leap',
'spring',
'stand out',
'alternate',
'startle',
'climb up',
'chute',
'jump-start',
'jump out',
'skip over',
'stick out',
'jump off',
'jumpstart',
'pass over',
'derail',
'start',
'rise',
'bound',
'parachute',
'jump on',
'leap out',
'skip']}
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
synnamon-0.1.8.tar.gz
(6.5 MB
view details)
Built Distribution
File details
Details for the file synnamon-0.1.8.tar.gz
.
File metadata
- Download URL: synnamon-0.1.8.tar.gz
- Upload date:
- Size: 6.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | df69abee3243949d203588d8bfde58c8224d79fe45eb56f241c8781c514a4cbb |
|
MD5 | ed3ccd10d5a346d56757183c585c57fc |
|
BLAKE2b-256 | 6921949825aa028d4dfbd3b7c7d67de9a1f01b321a5b99a9759ba7140f7e0661 |
File details
Details for the file synnamon-0.1.8-py3-none-any.whl
.
File metadata
- Download URL: synnamon-0.1.8-py3-none-any.whl
- Upload date:
- Size: 6.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2f0feedc3e71207ec580709de248ba73499426c1d0809a7fe4f5f1ff1c11c2d |
|
MD5 | 572c6c30a63b13b4a2c3edc959959592 |
|
BLAKE2b-256 | 3fb0c543299d46025e6fe96d97d82c80997fe52fbe7bbe35838f3df360849a82 |