Skip to main content

Big 5 IPIP-NEO Personality Traits

Project description

Five Factor E Library 📦

version 1.2.0 python 3.7 | 3.8 | 3.9 | 3.10 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

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.2.0.tar.gz (19.0 kB view details)

Uploaded Source

Built Distribution

five_factor_e-1.2.0-py3-none-any.whl (22.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: five-factor-e-1.2.0.tar.gz
  • Upload date:
  • Size: 19.0 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.2.0.tar.gz
Algorithm Hash digest
SHA256 c86db78ca627cd3f163fd1457029d1d584220c37992d14ef5744ec65e247645c
MD5 87460a2d6e20348a00ca439d23e76379
BLAKE2b-256 bc9922921a3208484049f0cd1341bf6e06a12db47a2fa9ef3843f7eccb76089b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for five_factor_e-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 402cb30c28b891d02186387fbcde702f3daa6334519ae29162047cbd00a30a30
MD5 ab1aa382850680b2a494e042f8a750c3
BLAKE2b-256 a9575381233a7f87aaf52655187aaab46272f8c96a1d2eb33360fcf34a2d1181

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