2.2.0 • Published 6 years ago

personality-text-summary v2.2.0

Weekly downloads
44
License
Apache-2.0
Repository
github
Last release
6 years ago

Text Summary for Personality Insights

last-release npm-version npm-license npm-downloads

Generate a text summary for a specified personality profile (v2 or v3).

Installation

$ npm install personality-text-summary

Usage

  var PersonalityTextSummaries = require('personality-text-summary');

  // locale is one of {'en', 'es', 'ja', 'ko'}.  version refers to which version of Watson Personality Insights to use, v2 or v3.
  var v3EnglishTextSummaries = new PersonalityTextSummaries({ locale: 'en', version: 'v3' });

  // retrieve the summary for a specified personality profile (json)
  var textSummary  = v3EnglishTextSummaries.getSummary(myV3EnPersonalityProfile);
  console.log('The summary for the provided profile is ' + textSummary);

A few helper methods also exist to get additional text information:

  var facet = v3EnglishTextSummaries.getFacet('facet_intellect');
  /*
    "LowTerm": "Concrete",
    "HighDescription": "You are open to and intrigued by new ideas and love to explore them",
    "HighTerm": "Philosophical",
    "LowDescription": "You prefer dealing with the world as it is, rarely considering abstract ideas",
    "Big5": "big5_openness"
  */

License

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

Changelog

01-01-2017

  • Added v3 summary
2.2.0

6 years ago

2.1.8

6 years ago

2.1.7

6 years ago

2.1.6

7 years ago

2.1.5

7 years ago

2.1.4

7 years ago

2.1.3

7 years ago

2.1.2

7 years ago

2.1.1

7 years ago

2.0.3

7 years ago

1.0.2

8 years ago

1.0.0

8 years ago

0.2.1

8 years ago