Skip to main content

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

Metadata

Release files for phdictionary 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for phdictionary 0.0.4
File Size Uploaded Provenance Actions
phdictionary-0.0.4.tar.gz 4.9 kB Without provenance Details for phdictionary-0.0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for phdictionary 0.0.4
File Interpreter ABI Platform Actions
phdictionary-0.0.4-py3-none-any.whl Python 3 none any Details for phdictionary-0.0.4-py3-none-any.whl

Total release size: 11.2 kB

Release files / phdictionary-0.0.4.tar.gz

Download URL phdictionary-0.0.4.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
9cca8da545c196fbac36a23c01ea7fba404847eb49aa15ee7abafb3953158b24
BLAKE2b-256 checksum
How to use checksums
ed1d9c876b3adebfb328b4c0c6b7914b52cbf7f7a2e6beceb4e27860003d9b32
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / phdictionary-0.0.4-py3-none-any.whl

Download URL phdictionary-0.0.4-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
51d4b23b5a0e6ced6d0d2cb5eeaca635320e5054b279fa8019642a381bb00b80
BLAKE2b-256 checksum
How to use checksums
89128f4eddd50833db3d5e5e2dc0b7d6fd9c1d736c12cd81132bd0f5cbe05244
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for phdictionary 0.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page