personality-trait-info

3.0.5 • Public • Published

Additional Information for Personality Insights Traits

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

Obtain info for Personality Insights' traits.

Installation

$ npm install personality-trait-info

Usage

  var PersonalityTraitInfo = require('personality-trait-info');
 
  // version refers to the version of Watson Personality Insights to use, v2 or v3
  var traitInfo = new PersonalityTraitInfo({ locale: 'es', version: 'v3' });
 
  // retrieve the trait description, name and info for a specified trait id (e.g., 'big5_agreeableness')
  var big5AgreeablenessName  = traitInfo.name('big5_agreeableness');
  var big5AgreeablenessDescription  = traitInfo.description('big5_agreeableness');
  var big5AgreeablenessInfo  = traitInfo.info('big5_agreeableness');
 
  console.log('The trait information for trait id big5_agreeableness is: \n' +
  'name: ' + big5AgreeablenessName + ' description: ' + big5AgreeablenessDescription +
  ' info: ' + big5AgreeablenessInfo);

License

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

Changelog

12-01-2016

  • Added v3 traits

/personality-trait-info/

    Package Sidebar

    Install

    npm i personality-trait-info

    Weekly Downloads

    1

    Version

    3.0.5

    License

    Apache-2.0

    Unpacked Size

    275 kB

    Total Files

    9

    Last publish

    Collaborators

    • agustincasamayor
    • arypbatista
    • neil-boyette-ibm
    • vibhasinha