Skip to main content

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:

  1. Add and remove words, parts of speech, definitions, IPA transcriptions
  2. Show random words
  3. Get similar words
  4. Reference the built-in IPA key

Statistics regarding this version's included dictionary:

$ dictionarpy -ns
Words:               53224
Definitions:         118657
IPA Transcriptions:  29812
Disk size:           10.49MB
──────────────────────────────────────────
Parts of speech:
    nom  auxiliary verb  intransitive verb
     nom masculin  conjuction  transitive
    verb  plural noun  preposition  nom
    féminin  adjective  pronoun  verb
    conjunction  phrase  article
    transitive/intransitive verb  verbe
    noun  interjection  idiom
    abréviation  adverb  abbreviation
    determiner  definite article

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 -n to 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dictionarpy-1.2.6.tar.gz (4.7 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dictionarpy-1.2.6-py3-none-any.whl (4.7 MB view details)

Uploaded Python 3

File details

Details for the file dictionarpy-1.2.6.tar.gz.

File metadata

  • Download URL: dictionarpy-1.2.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

Hashes for dictionarpy-1.2.6.tar.gz
Algorithm Hash digest
SHA256 f545819688fb4cfb2216864853b278f72be9d94356f3c4bf145625a2e2df7a69
MD5 b5944dd998972ad3701a0ac0dab025b3
BLAKE2b-256 4c8097f59915a972145c52fc3b628997ddf3521e89f62acb5ff6c0a237a3cc81

See more details on using hashes here.

File details

Details for the file dictionarpy-1.2.6-py3-none-any.whl.

File metadata

  • Download URL: dictionarpy-1.2.6-py3-none-any.whl
  • Upload date:
  • Size: 4.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for dictionarpy-1.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 f5428e60314c84e0a86e215ae790d553bcd9f46758739cf1c9d0d674306e58c2
MD5 2fe8ea9df854138025f523d6aa0de22d
BLAKE2b-256 7ad7160ff09563c6c587b0b6c8b67b5ac1a5d145c117070cacd9ebe0609eb544

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page