[![Build Status](https://travis-ci.org/Alheimsins/b5-johnson-120-ipip-neo-pi-r.svg?branch=master)](https://travis-ci.org/Alheimsins/b5-johnson-120-ipip-neo-pi-r)
[![Coverage Status](https://coveralls.io/repos/Alheimsins/b5-johnson-120-ipip-neo-pi-r/badge.svg?branch=master&service=github)](https://coveralls.io/github/Alheimsins/b5-johnson-120-ipip-neo-pi-r?branch=master)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)

# b5-johnson-120-ipip-neo-pi-r

Module for returning Big Five [Johnson 120 IPIP-NEO-PI-R](http://ipip.ori.org/30FacetNEO-PI-RItems.htm) items

## Installation

```
$ npm i @alheimsins/b5-johnson-120-ipip-neo-pi-r
```

## Usage

```JavaScript
const { getItems, getInfo } = require('@alheimsins/b5-johnson-120-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](examples/items-en.json)

```JavaScript
[
   {
       "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   |            |
| no   | Norwegian | Eli Huseby |
| es   | Spanish   | Eduardo Calle |
| is   | Icelandic | Franz Jónas Arnar Arnarson and [Sigurður Kári Árnason](https://github.com/sigurdurkari) |
| it   | Italian   | [Lorenzo Carducci](https://github.com/riourbana) |
| nl   | Dutch     | Eus van Somerenk, Kim Dekker and Tessa Blanken |
| se   | Swedish   | Martin Bäckström |
| hr   | Croatian  | Željko Jerneić |
| fr   | French    | Mathew Gravel |
| et   | Estonian  | René Mõttus, Helle Pullmann, Jüri Allik, Liina Haring, Kenn Konstabel, and Anu Realo |
| de   | German    | Heinz Streib and Manuela Wiedmaier |
| jp   | Japanese  | Omar Karlin |
| ur   | Urdru     | Engr. Ahmad Khan |
| pt-br| Portuguese (brazil) | Marcelo Rigon |
| ru   | Russian   | [Javid Askerov](https://github.com/askeroff), [Olga V](https://github.com/berrybell) |
| zh-cn| Simplified Chinese | [Roy Jia](https://github.com/RoyJia) |
| th   | Thai      | [Maneepailin Sriuthenchai](https://github.com/linsuri) |
| fi   | Finnish   | [Anastasia Tapper](https://github.com/ankkukku) |
| id   | Indonesian| [David Adi Nugroho](https://github.com/lakuapik) |
| hi   | Hindi     | [Punit Singh](https://github.com/thepunitsingh) |
| uk   | Ukrainian | [Elena Kunina](https://github.com/Menolas)

## 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](data)
- duplicate the folder and rename it to the language you will translate
- use [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) 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](data/languages.json)
- submit pull request
- happiness :-)

## Related

- [bigfive-web](https://github.com/maccyber/bigfive-web) Web frontend for bigfive tests

## License

[MIT](LICENSE)

## About

Created with <3 by [Alheimsins](https://github.com/Alheimsins)

![Alheimsins symbol](https://file-qwoleuymtm.now.sh "Alheimsins symbol")
