Offline dictionary in the terminal
Project description
DictionarPy
An extensible offline dictionary application
The dictionary comes prepopulated with a little over 53,000 words and 118,000 definitions available for offline reference. It is also designed to be added to and grow with your lexicon.
Some things you can do:
- Add and remove words, parts of speech, definitions, IPA transcriptions
- Show random words
- Get similar words
- Reference the built-in IPA key
- Search within definitions for a particular string
Statistics regarding this version's included dictionary
$ dpy -ns
Words: 53300
Definitions: 118827
IPA Transcriptions: 29849
Disk size: 10.52MB
───────────────────────────────────────────────────────
Parts of speech:
nom féminin │ intransitive verb │ abbreviation
conjuction │ preposition │ auxiliary verb │ idiom
nom masculin │ transitive verb │ verb │ article
transitive/intransitive verb │ phrase │ pronoun
adverb │ definite article │ abréviation │ plural noun
│ noun │ adjective │ interjection │ determiner
conjunction │ nom │ adjectif │ verbe
Examples
-
Add a word/definition to the database
$ dpy -a -w "my new word" -p "my part of speech" -d "my definition!"
-
Add or update the phonetic/phonemic transcription of a word
$ dictionarpy -a -w "my new word" -i "/mj nu wɝd/"
-
Show the definitions for a word (use
-nto avoid ansi escape sequences)$ dictionarpy -n "my new word" ┌──────────────────────┐ │ my new word │ │ /mj nu wɝd/ │ ├──────────────────────┤ │ 1. my part of speech │ │ my definition! │ └──────────────────────┘
-
Remove a definition from the database
$ dictionarpy -r 1 "my new word"
-
Remove an entry from the database
$ dictionarpy -R "remove_this_word"
-
Learn a random word!
$ dpy "$(dpy -z)"
For help and additional functionality: dpy -h
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
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 dictionarpy-1.5.6.tar.gz.
File metadata
- Download URL: dictionarpy-1.5.6.tar.gz
- Upload date:
- Size: 4.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68476919ecb8344d7007aead9ed96b61ed482752764ee39594a9bee3e527eddb
|
|
| MD5 |
6e5c7f102c379e2d958922785f28f718
|
|
| BLAKE2b-256 |
5698e88f496357fd5c2067a223bd5b572bc55525fe8bbad681d9b8539a3baf0a
|
File details
Details for the file dictionarpy-1.5.6-py3-none-any.whl.
File metadata
- Download URL: dictionarpy-1.5.6-py3-none-any.whl
- Upload date:
- Size: 4.8 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
81247ef9eaa8afae0de756117eae383c956a13c7edce19a3d75345d523a14c27
|
|
| MD5 |
d68621f127a03877697b9483ff827fed
|
|
| BLAKE2b-256 |
ac2b6b46239e40d346e49f97e14213a6d395b6b1879030c3005b2d69b6e9bad2
|