No project description provided
Project description
RusLingua 📚
RusLingua is a Python library for retrieving various linguistic information about Russian words. It provides a simple API to get synonyms, antonyms, word associations, cognate words, and definitions.
Features
- Get synonyms of a word 👥
- Get antonyms of a word 👎
- Get word associations 💭
- Get cognate words (words with a common root) 🌳
- Get definitions from dictionaries 📖
Quickstart
from ruslingua import RusLingua
ruslingua = RusLingua()
synonyms = ruslingua.get_synonyms('дом')
antonyms = ruslingua.get_antonyms('дом')
associations = ruslingua.get_associations('дом')
cognates = ruslingua.get_cognate_words('дом')
definition = ruslingua.get_definition('дом')
print(synonyms)
print(antonyms)
print(associations)
print(cognates)
print(definition)
Installation
pip install ruslingua
Usage
Import the RusLingua class and instantiate it:
from ruslingua import RusLingua
ruslingua = RusLingua()
Then call the methods with a word to get the linguistic information:
synonyms = ruslingua.get_synonyms('дом')
antonyms = ruslingua.get_antonyms('дом')
associations = ruslingua.get_associations('дом')
cognates = ruslingua.get_cognate_words('дом')
definition = ruslingua.get_definition('дом')
The methods return lists of strings.
Credits
RusLingua retrieves data from various sources:
- jeck.ru - synonyms 👥
- razbiraem-slovo.ru - antonyms 👎 and cognate words 🌳
- wordassociations.net - word associations 💭
- gramota.ru - definitions 📖
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
ruslingua-1.0.0.tar.gz
(3.6 kB
view details)
Built Distribution
File details
Details for the file ruslingua-1.0.0.tar.gz
.
File metadata
- Download URL: ruslingua-1.0.0.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55bb9207ae133c0c271d6a7f98f586903f83529b80159c50b71335f64d5003c9 |
|
MD5 | 0bf3aab602fe49494343e36a1a087576 |
|
BLAKE2b-256 | da5810fc43b0b85d426e86936b6c1de486cb1e5d225781c7f903199f747a5fbb |
File details
Details for the file ruslingua-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: ruslingua-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd3260aea74f8ff7fec268dd774697d7a0ba5ed3c14df155bf296b36edaf7798 |
|
MD5 | 0a52ba6c16715790a41a1104f12f6c10 |
|
BLAKE2b-256 | 661ee37994f25990b98642c2a9cbff7559114871f7852b5d15ca7f7ffa91f4c1 |