Skip to main content

Big 5 IPIP-NEO Personality Traits

Project description

Five Factor E Library 📦

version 1.3.0 python 3.7 | 3.8 | 3.9 | 3.10 | 3.11 PyPI Downloads

Representation of the Big Five

This project assesses a person's 🗣 personality based on an inventory of questions. The project uses the Big Five theory using the IPIP-NEO-120 and IPIP-NEO-300 model developed by Professor Dr. John A. Johnson, this is free representation of NEO PI-R™.

"The IPIP-NEO is not identical to the original NEO PI-R, but in my opinion it is close enough to serve as a good substitute. More and more people are beginning to use it in published research, so its acceptance is growing." - Dr. Johnson

The main idea of the project is to facilitate the use of Python developers who want to use IPIP-NEO in their projects. The project is also done in pure Python, it doesn't have any dependencies on other libraries.

Notes: The project is based on the work of Dhiru Kholia, and is an adaptation of Neural7 for a version that can be reused in other projects of the company.

Synopsis 🌐

A little theory, the The Big Five or Five Factor is made up of 5 great human personalities also known as the O.C.E.A.N. Are they:

  • Openness
  • Conscientiousness
  • Extraversion
  • Agreeableness
  • Neuroticism

To compose each great personality there are 6 traits or facets, totaling 30 traits. The user must answer a questionnaire of 120 or 300 single-choice questions. The user must answer an inventory of questions where each answer can have a unique and mandatory choice with 5 options:

  • Very Inaccurate
  • Moderately Inaccurate
  • Neither Accurate Nor Inaccurate
  • Moderately Accurate
  • Very Accurate

For more information to demystify the Big Five, please see the article: Measuring the Big Five Personality Domains

Notes: User-selected answers follow the position:

Option Array
Very Inaccurate 1
Moderately Inaccurate 2
Neither Accurate Nor Inaccurate 3
Moderately Accurate 4
Very Accurate 5

Installation 🚀

The simplest way is to use PIP, like the command:

$ pip install five-factor-e

How to use 🔥

The answers must be in a standardized json, you can enter this template in the project folder data. To calculate the Big Five use the code snippet below:

from ipipneo import IpipNeo

IpipNeo(question=120).compute(sex=<>, age=<>, answers=JSON_STANDARD)

As an example you can load the project json to test.

import json, urllib.request

data = urllib.request.urlopen("https://raw.githubusercontent.com/neural7/five-factor-e/main/data/IPIP-NEO/120/answers.json").read()
answers = json.loads(data)

Calculate the Big Five for a 40-year-old man:

IpipNeo(question=120).compute(sex="M", age=40, answers=answers)

For a 25 year old woman:

IpipNeo(question=120).compute(sex="F", age=25, answers=answers)

Tests 🏗

For the tests it is necessary to download the repository. To run the unit tests use the command below:

$ ./run-test

If you want to make an assessment by answering the inventory of questions, just run:

$ python3 quiz.py

About data 📊

Inside the data data directory, there are examples of questions and answers. The most important is the response data entry which must follow the pattern of this file. Example:

{
   "answers":[
      {
         "id_question":50,
         "id_select":5
      },
      {
         "id_question":51,
         "id_select":2
      }
   ]
}

Notes: The order of answers does not affect the result.

The id question field refers to the question in this file. Obviously you may want to change the form of the questions, we are working on the English, Portuguese and Spanish translations.

Credits 🏆

  • Dr John A. Johnson
  • Dhiru Kholia

License 🙋

Resources 📗

Authors 👨‍💻

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

five-factor-e-1.3.0.tar.gz (19.8 kB view details)

Uploaded Source

Built Distribution

five_factor_e-1.3.0-py3-none-any.whl (23.4 kB view details)

Uploaded Python 3

File details

Details for the file five-factor-e-1.3.0.tar.gz.

File metadata

  • Download URL: five-factor-e-1.3.0.tar.gz
  • Upload date:
  • Size: 19.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.7

File hashes

Hashes for five-factor-e-1.3.0.tar.gz
Algorithm Hash digest
SHA256 ae10d7408f9778a1f874ca7498e66f5e17c6a5ceb21e9f3dbace905e19deaf73
MD5 98708db9ed4a5ce3487f2e6cd09acca7
BLAKE2b-256 425aadc9b568cba1925d9ee742ad353dae1f51594dab573ce6b474eb6e7981f9

See more details on using hashes here.

File details

Details for the file five_factor_e-1.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for five_factor_e-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a39c98371f66fcd317f8668770fdd24cb957cc13c03928aa060b578b9fb79852
MD5 b7a648850deb9387bea7f78a9cfd89ad
BLAKE2b-256 03fe85ac08ab92a287675a8b5c15751a69a396ef89642144b48b8db3887eb9a4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page