Skip to main content

MLDictionary

MLDictionary is word's dictionary for several language

>>> from mldictionary import English
>>> english_dictionary = English()
>>> snake_means = english_dictionary.get_meanings('snake')
>>> len(snake_means)
4
>>> snake_means
['a reptile with a long body and no legs: ' ...]
...

PyPI    PyPI - License    GitHub Workflow Status (event)    PyPI - Downloads


Installing MLDictionary

$ pip install mldictionary

MLDictionary officially supports 3.9+.


Some examples

>>> from mldictionary import Portuguese
>>> portuguese_dictionary = Portuguese()
>>> vida_means = portuguese_dictionary.get_meanings('vida')
>>> vida_means
['Conjunto dos hábitos e costumes de alguém; maneira de viver: tinha uma vida de milionário.' ...]
>>> from mldictionary import Spanish
>>> spanish_dictionary = Spanish()
>>> coche_means = spanish_dictionary.get_meanings('coche')
>>> coche_means
['Automóvil destinado al transporte de personas y con capacidad no superior a siete plazas.' ...]

Make your own dictionary

from mldictionary import Dictionary

class MyOwnDictionary(Dictionary):
    url = 'somedictionary.com'
    language = 'language name'
    target_tag = 'tag_where_means_is'
    target_attr = {'attr': 'attr_value'}
    replaces = {'something', 'another thing'}

>>> myowndictionary = MyOwnDictionary()
>>> myowndictionary.get_meanings('other language word')

To more details, see the wiki

Also, it has a insightful article on linkedin

Release files for mldictionary 0.2.6

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

Source distribution (sdist)

Source distribution for mldictionary 0.2.6
File Size Uploaded
mldictionary-0.2.6.tar.gz 4.9 kB Details

Built distribution (wheel)

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

Total release size: 11.3 kB

Release files / mldictionary-0.2.6.tar.gz

Download URL mldictionary-0.2.6.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
986fdc56dc461ea6970798c0f9ca74bc6289dc83369d483a52f8ba96bc1d93e7
BLAKE2b-256 checksum
How to use checksums
3cdf455145a85cf4e37930e142bae83544f324e43be6e5481a85342c8afdb3d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.10.2 Linux/5.16.12-200.fc35.x86_64

Release files / mldictionary-0.2.6-py3-none-any.whl

Download URL mldictionary-0.2.6-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
86bb1499a02ca84ab6782dc552fbf3e70fb328f0128d81fac3f6993dec187cf0
BLAKE2b-256 checksum
How to use checksums
94528182261256174094df17885e4dff868dbd082c78eab550b423b01df1f8b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.10.2 Linux/5.16.12-200.fc35.x86_64

Release history Release notifications | RSS feed

This release

0.2.6 This release

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.1.11

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

1 release file

0.1.5

1 release file

0.1.0

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

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