PhDictionary. The best tool for language learning
Project description
PhDictionary | Best tool for language learning
This tool can help you to provide better understanding of foreign word using examples, definitions and translation.
Installation
pip install phdictionary
Usage
Importing the module
from phdictionary import dictionary
To get the definition of a word use this code
word = input()
result = dictionary.get_definition(word, 2)
print(result)
This function returns a turple with the definition and examples in a sentence (in this case 2 examples)
To translate from English to French
word = input()
result = dictionary.get_french_english(word, 2)
print(result)
And vice versa
word = input()
result = dictionary.get_english_french(word, 2)
print(result)
These functions return a turple with the translation and examples in a sentence (in this case 2 examples)
To get synonyms to a word in English use this
word = input()
result = dictionary.get_synonym(word, 4)
print(result)
This function returns a list with the synonyms (in this case 4 synonyms and by default it returns only one synonym)
To get definitions for the list of word use the code below
dictionary.get_definition_from_file(open('file.txt'), 2)
It generates a Word document with definitions for the each word in list with 2 examples for each (by default it is 0)
To get synonyms for the list of word use the code below
dictionary.get_synonyms_from_file(open('file.txt'), 3)
It generates a Word document with 3 synonyms to the each word in list (by default it is 1)
To get translation from French to English for each word in the list use this
dictionary.get_french_english_from_file(open('file.txt'), 3)
It generates a Word document with translation for the each word in list with 3 examples for each (by default it is 0)
You can find all the documentation on GitHub: https://github.com/RediIVIideR/phdictionary
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file phdictionary-0.0.4.tar.gz.
File metadata
- Download URL: phdictionary-0.0.4.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9cca8da545c196fbac36a23c01ea7fba404847eb49aa15ee7abafb3953158b24
|
|
| MD5 |
3941d7147a6bfeb68de45dbeb0d4a0e0
|
|
| BLAKE2b-256 |
ed1d9c876b3adebfb328b4c0c6b7914b52cbf7f7a2e6beceb4e27860003d9b32
|
File details
Details for the file phdictionary-0.0.4-py3-none-any.whl.
File metadata
- Download URL: phdictionary-0.0.4-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51d4b23b5a0e6ced6d0d2cb5eeaca635320e5054b279fa8019642a381bb00b80
|
|
| MD5 |
dab84b7eef1b8e1fb7f3e96ec79e692b
|
|
| BLAKE2b-256 |
89128f4eddd50833db3d5e5e2dc0b7d6fd9c1d736c12cd81132bd0f5cbe05244
|