Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 1.77 KB

README.md

File metadata and controls

39 lines (27 loc) · 1.77 KB

Descriptions for Personality Insights Traits

last-release npm-version npm-license Build Status codecov.io npm-downloads

Obtain descriptions for Personality Insights' traits.

Installation

$ npm install personality-trait-descriptions

Usage

  var PersonalityTraitDescriptions = require('personality-trait-descriptions');

  // version refers to the version of Watson Personality Insights to use, v2 or v3
  var traitDescriptions = new PersonalityTraitDescriptions({ locale: 'es', version: 'v3' });

  // retrieve the trait description for a specified trait id (e.g., 'big5_agreeableness')
  var big5AgreeablenessTraitDescription  = traitDescriptions.description('big5_agreeableness');
  console.log('The trait description for trait id big5_agreeableness is ' + big5AgreeablenessTraitDescription);

License

This library is licensed under Apache 2.0. Full license text is available in LICENSE.

Changelog

12-01-2016

  • Added v3 descriptions