-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcognitive_function.py
More file actions
69 lines (57 loc) · 3.45 KB
/
Copy pathcognitive_function.py
File metadata and controls
69 lines (57 loc) · 3.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/usr/bin/env python3
#
# cognitive_function.py - By Steven Chen Hao Nyeo
# The script that creates the eight cognitive functions in socionics
# Created: January 1, 2019
# Label - F or T or N or S
# Sublabel - i or e
class CognitiveFunction:
def __init__ (self, label, name, description):
self.label = label[0]
self.sublabel = label[1]
self.name = name
self.description = description
# The function that returns the corresponding cognitive function (T - F / N - S)
def opposite_orientation (self):
if (self.label + self.sublabel == "Ti"):
return Fi
elif (self.label + self.sublabel == "Fi"):
return Ti
elif (self.label + self.sublabel == "Ni"):
return Si
elif (self.label + self.sublabel == "Si"):
return Ni
elif (self.label + self.sublabel == "Te"):
return Fe
elif (self.label + self.sublabel == "Fe"):
return Te
elif (self.label + self.sublabel == "Ne"):
return Se
elif (self.label + self.sublabel == "Se"):
return Ne
# The helper method that changes the sublabel from introverted to extroverted or vice versa (i - e)
def opposite (self):
if (self.label + self.sublabel == "Ti"):
return Te
elif (self.label + self.sublabel == "Fi"):
return Fe
elif (self.label + self.sublabel == "Ni"):
return Ne
elif (self.label + self.sublabel == "Si"):
return Se
elif (self.label + self.sublabel == "Te"):
return Ti
elif (self.label + self.sublabel == "Fe"):
return Fi
elif (self.label + self.sublabel == "Ne"):
return Ni
elif (self.label + self.sublabel == "Se"):
return Si
Ni = CognitiveFunction("Ni", "Introveted Intuition", "development over time, historicity, cause and effect, consequences, repetition, archetypal themes and examples, looking for causes in history or the past, past-future forecasting of event dynamics, rhythm, delay or act-now, past-turned imagination ")
Ne = CognitiveFunction("Ne", "Extroverted Intuition", "potential, permutation, isomorphism, semblance, essence, uncertainty, the unknown, opening up new \"windows\" and bringing up new possibilities in conversation, seeing opportunities, chance, being the first, refreshing informational suddenness, diversity of interests and involvements")
Ti = CognitiveFunction("Ti", "Introveted Thinking", "structure, analysis, coherence, consistency, cogency, accordance, match, commensurability, understanding, order, or the lack of thereof")
Te = CognitiveFunction("Te", "Extroverted Thinking", "efficiency, method, mechanism, knowledge, work, reason in motion, direction of activity into its most logical course of action, \"logic of actions\", utilitarianism, expediency, benefit ")
Si = CognitiveFunction("Si", "Introveted Sensing", "homeostasis, continuity, smoothness, flow, satisfaction, aesthetics, quality of life, pleasure, relaxation, convenience, quality ")
Se = CognitiveFunction("Se", "Extroverted Sensing", "sensing of immediate static qualities of objects, sensing of immediate reality, external appearance, texture, form, static objects, impact, direct physical effect, span, extent, scope ")
Fi = CognitiveFunction("Fi", "Introveted Ethics", "internal harmony, resonance or dissonance of personal sentiments, sympathy, pity, compassion, support, condemnation, judgement, positive and negative emotional space ")
Fe = CognitiveFunction("Fe", "Extroverted Ethics", "emotional atmosphere, romanticism, cooperation, treatment, qualitative judgement of behavior, sympathy, ethical estimations of observable actions, \"ethics of actions\" ")