Skip to main content

A collection of functions using the Datamuse API.

Project description

Library Documentation

If you encounter any problems or have suggestions for improvement while using this library, we kindly request that you open an issue on our GitHub repository. Your feedback is invaluable in helping us enhance the quality and functionality of the library. Please feel free to describe the issue in detail, including any relevant information, steps to reproduce, or expected behavior. We appreciate your contribution to making this library better for all users. Thank you.

Function Documentation

To Use The Library

from datamusepython import DatamusePython
print(DatamusePython.{function})

getAdjectiveByRelation

Retrieves adjectives related to a given noun within specific topics using the Datamuse API.

Args:

  • word1 (str): The noun for which you want to find related adjectives.
  • word (str): The topics to consider for related adjectives.

Returns:

  • str: A space-separated string of related adjectives.

getWordSpelledSimilar

Retrieves words that are spelled similarly to a given word using the Datamuse API.

Args:

  • word (str): The word to find similar spellings for.

Returns:

  • str: A space-separated string of words with similar spellings.

getWordsThatSoundSimilar

Retrieves words that sound similar to a given word using the Datamuse API.

Args:

  • word (str): The word to find words that sound similar to.

Returns:

  • str: A space-separated string of words that sound similar.

nouns_described_by_adjective (Deprecated)

Retrieves nouns commonly described by a given adjective using the Datamuse API.

Args:

  • adjective (str): The adjective to find associated nouns for.

Returns:

  • str: A space-separated string of associated nouns.

Note: This function is deprecated. Please use 'getNounsMatchingAdjective' instead.

getNounsMatchingAdjective

Retrieves nouns commonly described by the given adjective using the Datamuse API.

Args:

  • adjective (str): The adjective to find associated nouns for.

Returns:

  • str: A space-separated string of associated nouns.

getWordWithDifferentPrefix

Retrieves words related to 'word1' that have a specific 'word' prefix using the Datamuse API.

Args:

  • word1 (str): The base word to find related words for.
  • word (str): The desired prefix for related words.

Returns:

  • str: A space-separated string of related words.

getWordWithDifferentSuffix

Retrieves words related to 'word1' that have a specific 'word' suffix using the Datamuse API.

Args:

  • word1 (str): The base word to find related words for.
  • word (str): The desired suffix for related words.

Returns:

  • str: A space-separated string of related words.

getWordWithCertainAmountOfLetters

Retrieves words with a specific number of letters that combine 'word1', 'letters', and 'word2' using the Datamuse API.

Args:

  • word1 (str): The first part of the word.
  • letters (str): The specific letters to include.
  • word2 (str): The second part of the word.

Returns:

  • str: A space-separated string of words with the specified letters and format.

getRhymingWords

Retrieves words that rhyme with 'rhyming_word' and are related to 'base_word' using the Datamuse API.

Args:

  • base_word (str): The base word to find related rhyming words for.
  • rhyming_word (str): The word to find rhyming words for.

Returns:

  • str: A space-separated string of related rhyming words.

getWordRythm

Retrieves words that rhyme with a given word using the Datamuse API.

Args:

  • word1 (str): The word to find rhyming words for.

Returns:

  • str: A space-separated string of rhyming words.

getWordSuggestions

Retrieves word suggestions based on an input word using the Datamuse API.

Args:

  • word1 (str): The input word to get suggestions for.

Returns:

  • str: A space-separated string of suggested words.

getWordThatFollowWord

Retrieves words that follow 'base_word' in a sentence and start with the specified 'prefix' using the Datamuse API.

Args:

  • base_word (str): The base word to find following words for.
  • prefix (str): The desired prefix for following words.

Returns:

  • str: A space-separated string of following words.

getWordThatDescribesAdjective

Retrieves words that commonly describe the given adjective using the Datamuse API.

Args:

  • word1 (str): The adjective to find associated describing words for.

Returns:

  • str: A space-separated string of describing words.

getWordTriggeredByAssociation

Retrieves words triggered by association with a given word using the Datamuse API.

Args:

  • word1 (str): The word to find associated words for.

Returns:

  • str: A space-separated string of associated words.

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

datamuse-python-1.4.8.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

datamuse_python-1.4.8-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file datamuse-python-1.4.8.tar.gz.

File metadata

  • Download URL: datamuse-python-1.4.8.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for datamuse-python-1.4.8.tar.gz
Algorithm Hash digest
SHA256 8164453a852600c0d451a2762820e62dc87aae9a33d117249454a50b8cf2d815
MD5 34386d66b348cef0d670771ff810f99e
BLAKE2b-256 bed2ffe18392941a44baa73018560166c82aa08f9b8bcd3e0ae3042b15a76573

See more details on using hashes here.

File details

Details for the file datamuse_python-1.4.8-py3-none-any.whl.

File metadata

File hashes

Hashes for datamuse_python-1.4.8-py3-none-any.whl
Algorithm Hash digest
SHA256 f335c1c1c01309791e259e0dfc62cecf18b14d9a3d616d379ce1d37c2b9bbddc
MD5 6b8305f49c2eca38d7391cf62ecc5bee
BLAKE2b-256 ee2ba7c71bc1ba585f9cf853cbdfb50e59bab316f6c5327dce2ae58f874c1960

See more details on using hashes here.

Supported by

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