Skip to main content

Python module for searching the Moby thesaurus

Project description

mobypy

Python module for searching the Moby Thesaurus created by Grady Ward

To Install mobypy:

pip install mobypy

To Use mobypy:

import mobypy

synonyms = mobypy.synonyms("abbreviated") print(synonyms) ['Spartan', 'abridged', 'abstracted', 'aposiopestic', 'bobbed', 'brief', 'brusque', 'capsule', 'capsulized', 'clipped', 'close', 'compact', 'compendious', 'compressed', 'concise', 'condensed', 'contracted', 'crisp', 'cropped', 'curt', 'curtailed', 'cut', 'cut short', 'digested', 'docked', 'elided', 'elliptic', 'epigrammatic', 'gnomic', 'laconic', 'mowed', 'mown', 'nipped', 'pithy', 'pointed', 'pollard', 'polled', 'pruned', 'reaped', 'reserved', 'sententious', 'shaved', 'sheared', 'short', 'short and sweet', 'short-cut', 'shortened', 'snub', 'snubbed', 'succinct', 'summary', 'synopsized', 'taciturn', 'terse', 'tight', 'to the point', 'trimmed', 'truncated']

short_synonyms = mobypy.short_synonyms("abbreviated") print(short_synonyms) ['brief', 'close', 'crisp', 'curt', 'cut', 'mowed', 'mown', 'pithy', 'short', 'snub', 'terse', 'tight']

long_synonyms = mobypy.long_synonyms("abbreviated") print(long_synonyms) ['Spartan', 'abridged', 'abstracted', 'aposiopestic', 'bobbed', 'brusque', 'capsule', 'capsulized', 'clipped', 'compact', 'compendious', 'compressed', 'concise', 'condensed', 'contracted', 'cropped', 'curtailed', 'cut short', 'digested', 'docked', 'elided', 'elliptic', 'epigrammatic', 'gnomic', 'laconic', 'nipped', 'pointed', 'pollard', 'polled', 'pruned', 'reaped', 'reserved', 'sententious', 'shaved', 'sheared', 'short and sweet', 'short-cut', 'shortened', 'snubbed', 'succinct', 'summary', 'synopsized', 'taciturn', 'to the point', 'trimmed', 'truncated']

rev_search = mobypy.reverse_search("abbreviate") print(rev_search) ['compact', 'cut short', 'cut', 'short', 'snub']

If no results are found, an empty list is returned

bad_search = mobypy.synonyms("asdasdasdasd") bad_search = mobypy.long_synonyms("asdasdasdasd") bad_search = mobypy.short_synonyms("asdasdasdasd") bad_search = mobypy.reverse_search("asdasdasdasd") print(bad_search) []

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

mobypy-1.0.2.tar.gz (9.3 MB view details)

Uploaded Source

Built Distribution

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

mobypy-1.0.2-py2-none-any.whl (9.3 MB view details)

Uploaded Python 2

File details

Details for the file mobypy-1.0.2.tar.gz.

File metadata

  • Download URL: mobypy-1.0.2.tar.gz
  • Upload date:
  • Size: 9.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.2

File hashes

Hashes for mobypy-1.0.2.tar.gz
Algorithm Hash digest
SHA256 d9646fa2f22f1c07e0add61e59a503148185b88dd3d3dcc2983ba9c52f598fec
MD5 fbd02659460ad73140066d3030e9bea1
BLAKE2b-256 ac91ae12204c027b475f38e570f9891c2d044a034a62eda53c48c5ef7b2f1e8c

See more details on using hashes here.

File details

Details for the file mobypy-1.0.2-py2-none-any.whl.

File metadata

  • Download URL: mobypy-1.0.2-py2-none-any.whl
  • Upload date:
  • Size: 9.3 MB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.2

File hashes

Hashes for mobypy-1.0.2-py2-none-any.whl
Algorithm Hash digest
SHA256 032f07aa959daafeaaa32f7489e339ae559a668e1d8767f95b4f80c0cddf0146
MD5 59cd6da712ff5c1b28c847cc2abae360
BLAKE2b-256 5ed44171f871a5b1f46d2881393e5eb330019b4dba152e9dabbc29e09dcd340b

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