5.0.0 • Published 3 years ago

@datafire/wordassociations v5.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
3 years ago

@datafire/wordassociations

Client library for Word Associations API

Installation and Usage

npm install --save @datafire/wordassociations
let wordassociations = require('@datafire/wordassociations').create({
  internalApiKey: ""
});

.then(data => {
  console.log(data);
});

Description

The Word Associations Network API allows developers to embed the ability to find associations for a word or phrase into their mobile apps or web services. Words are grouped by semantics, meaning, and psychological perception. The Word Associations Network API currently supports English, French, Spanish, German, Italian, Portuguese, and Russian vocabulary. Please register and subscribe to one of available tariff plans to get a valid API key.

Actions

json.search.get

Gets associations with the given word or phrase.

wordassociations.json.search.get({
  "text": [],
  "lang": ""
}, context)

Input

  • input object
    • text required array: Word or phrase to find associations with.
    • lang required string (values: de, en, es, fr, it, pt, ru): Query language. Use language code for the language of the text:
    • type string (values: stimulus, response): Type of result.
    • limit integer: Maximum number of results to return.
    • pos array: Parts of speech to return.
    • indent string (values: yes, no): Indentation switch for pretty printing of JSON response.

Output

json.search.post

Gets associations with the given word or phrase.

wordassociations.json.search.post({
  "text": [],
  "lang": ""
}, context)

Input

  • input object
    • text required array: Word or phrase to find associations with.
    • lang required string (values: de, en, es, fr, it, pt, ru): Query language. Use language code for the language of the text:
    • type string (values: stimulus, response): Type of result.
    • limit integer: Maximum number of results to return.
    • pos array: Parts of speech to return.
    • indent string (values: yes, no): Indentation switch for pretty printing of JSON response.

Output

Definitions

Body

  • Body object

Item

  • Item object
    • item string
    • pos string
    • weight number

Request

  • Request object
    • indent string
    • lang string
    • limit integer
    • pos string
    • text array
      • items string
    • type string

Response

  • Response object
    • items array
    • text string