Skip to main content

Tools for searching/indexing dictionaries

Project description

=== dictionary - Interface with system dictionary files ===

This is a GNU/Linux only library that uses dictionary files in “/usr/share/dict” to allow searching dictionaries.

For example, to get all nouns that start with the letter a in /usr/share/dict/american_english_small:

def a_nouns():
        en_us_small = dicttools.getDict("american_english_small")
        while not en_us_small.isFinished():
                time.sleep(1)
        en_us_small = en_us_small.getObject()
        for i in en_us_small.wordType('noun',[[dictionary.STARTS_WITH,'a']]):
                yield i

To get a dictionary, call dicttools.getDict(file: string) where file is a file in /usr/share/dict. You will recieve a DictionaryThread object.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

ldicttools-0.1.0-py2.7.egg (5.3 kB view details)

Uploaded Egg

File details

Details for the file ldicttools-0.1.0-py2.7.egg.

File metadata

File hashes

Hashes for ldicttools-0.1.0-py2.7.egg
Algorithm Hash digest
SHA256 3eb38511e05b70a96c1572c0015cd5807583832276bfb67f0341a3144ae96b30
MD5 5cdbc9be660baa5bb7eca7851916f0e8
BLAKE2b-256 52d388271962d7b22d792d8fdeb3d5f5852ae095c0b63f92b036aca25d02e504

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