Skip to content
Module for returning Big Five Costa and McCrae's 300 IPIP-NEO-PI-R items
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
data Genesis commit Aug 13, 2018
examples Genesis commit Aug 13, 2018
test Genesis commit Aug 13, 2018
.gitignore Adds deploy to .travis Oct 11, 2018
.travis.yml Adds deploy to .travis Oct 11, 2018
LICENSE Genesis commit Aug 13, 2018
README.md Updates README Oct 11, 2018
index.js standard --fix Oct 11, 2018
package.json Update dependency nyc to v14.1.1 May 10, 2019
renovate.json Genesis commit Aug 13, 2018

README.md

Build Status Coverage Status js-standard-style

b5-costa-mccrae-300-ipip-neo-pi-r

Module for returning Big Five Costa and McCrae's 300 IPIP-NEO-PI-R items

Installation

$ npm i @alheimsins/b5-costa-mccrae-300-ipip-neo-pi-r

Usage

const { getItems, getInfo } = require('@alheimsins/b5-costa-mccrae-300-ipip-neo-pi-r')

console.log(getItems()) // returns English

console.log(getItems('no')) // returns Norwegian

console.log(getItems('en', true)) // returns English shuffeled

console.log(getInfo()) // returns test info

returns an array with questions and choices

[
   {
       "id": "43c98ce8-a07a-4dc2-80f6-c1b2a2485f06",
       "text": "Worry about things",
       "keyed": "plus",
       "domain": "N",
       "facet": 1,
       "num": 1,
       "choices": [
         {
           "text": "Very Inaccurate",
           "score": 1,
           "color": 1
         },
         {
           "text": "Moderately Inaccurate",
           "score": 2,
           "color": 2
         },
         {
           "text": "Neither Accurate Nor Inaccurate",
           "score": 3,
           "color": 3
         },
         {
           "text": "Moderately Accurate",
           "score": 4,
           "color": 4
         },
         {
           "text": "Very Accurate",
           "score": 5,
           "color": 5
         }
       ]
    }
]

Supported languages

Code Name Translator
en English

Help wanted

If you want to help by translating the items to other languages this is how you do it.

  • clone the repo
  • find a language you know in data
  • duplicate the folder and rename it to the language you will translate
  • use ISO 639-1 language code as folder name.
  • translate the "text"-property for choices.js and questions.json
  • don't change filenames, ids or any other properties
  • add your language code to the data/languages.json file
  • $ npm test
  • submit pull request
  • happiness :-)

Related

License

MIT

About

Created with ❤ for Alheimsins

You can’t perform that action at this time.