cbrowser 16.7.2 → 16.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser.d.ts.map +1 -1
- package/dist/browser.js +52 -7
- package/dist/browser.js.map +1 -1
- package/dist/cognitive/index.d.ts.map +1 -1
- package/dist/cognitive/index.js +22 -0
- package/dist/cognitive/index.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/personas.d.ts.map +1 -1
- package/dist/personas.js +17 -2
- package/dist/personas.js.map +1 -1
- package/dist/testing/nl-test-suite.d.ts +2 -0
- package/dist/testing/nl-test-suite.d.ts.map +1 -1
- package/dist/testing/nl-test-suite.js +38 -1
- package/dist/testing/nl-test-suite.js.map +1 -1
- package/dist/values/index.d.ts +14 -0
- package/dist/values/index.d.ts.map +1 -0
- package/dist/values/index.js +17 -0
- package/dist/values/index.js.map +1 -0
- package/dist/values/persona-values.d.ts +36 -0
- package/dist/values/persona-values.d.ts.map +1 -0
- package/dist/values/persona-values.js +343 -0
- package/dist/values/persona-values.js.map +1 -0
- package/dist/values/schwartz-values.d.ts +207 -0
- package/dist/values/schwartz-values.d.ts.map +1 -0
- package/dist/values/schwartz-values.js +130 -0
- package/dist/values/schwartz-values.js.map +1 -0
- package/dist/values/value-mappings.d.ts +97 -0
- package/dist/values/value-mappings.d.ts.map +1 -0
- package/dist/values/value-mappings.js +520 -0
- package/dist/values/value-mappings.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Schwartz's Theory of Basic Human Values
|
|
3
|
+
*
|
|
4
|
+
* Implements Schwartz's 10 universal values with research citations.
|
|
5
|
+
* This is the foundation for understanding WHO a persona is at a motivational level.
|
|
6
|
+
*
|
|
7
|
+
* @copyright 2026 WF Media (Alexandria Eden) alexandria.shai.eden@gmail.com
|
|
8
|
+
* @license BSL-1.1 (Business Source License 1.1) - See LICENSE file
|
|
9
|
+
*
|
|
10
|
+
* @references
|
|
11
|
+
* - Schwartz, S.H. (1992). Universals in the content and structure of values.
|
|
12
|
+
* Advances in Experimental Social Psychology, 25, 1-65.
|
|
13
|
+
* DOI: 10.1016/S0065-2601(08)60281-6
|
|
14
|
+
*
|
|
15
|
+
* - Schwartz, S.H. (2012). An Overview of the Schwartz Theory of Basic Values.
|
|
16
|
+
* Online Readings in Psychology and Culture, 2(1).
|
|
17
|
+
* DOI: 10.9707/2307-0919.1116
|
|
18
|
+
*
|
|
19
|
+
* - Schwartz, S.H., & Bardi, A. (2001). Value hierarchies across cultures.
|
|
20
|
+
* Journal of Cross-Cultural Psychology, 32(3), 268-290.
|
|
21
|
+
*
|
|
22
|
+
* - Roccas, S., Sagiv, L., Schwartz, S.H., & Knafo, A. (2002). The big five
|
|
23
|
+
* personality factors and personal values. Personality and Social Psychology
|
|
24
|
+
* Bulletin, 28(6), 789-801.
|
|
25
|
+
*/
|
|
26
|
+
/**
|
|
27
|
+
* Schwartz's 10 Universal Values
|
|
28
|
+
*
|
|
29
|
+
* These values are found across all cultures and represent fundamental
|
|
30
|
+
* motivational goals that guide human behavior.
|
|
31
|
+
*/
|
|
32
|
+
export interface SchwartzValues {
|
|
33
|
+
/**
|
|
34
|
+
* Self-Direction: Independent thought and action—choosing, creating, exploring.
|
|
35
|
+
* Derived from: Autonomy needs, control over environment
|
|
36
|
+
* Behavioral indicators: Explores options, resists defaults, customizes settings
|
|
37
|
+
*/
|
|
38
|
+
selfDirection: number;
|
|
39
|
+
/**
|
|
40
|
+
* Stimulation: Excitement, novelty, and challenge in life.
|
|
41
|
+
* Derived from: Need for variety, optimal arousal
|
|
42
|
+
* Behavioral indicators: Seeks new features, tries beta versions, clicks "what's new"
|
|
43
|
+
*/
|
|
44
|
+
stimulation: number;
|
|
45
|
+
/**
|
|
46
|
+
* Hedonism: Pleasure and sensuous gratification.
|
|
47
|
+
* Derived from: Pleasure-seeking behavior
|
|
48
|
+
* Behavioral indicators: Responds to aesthetics, seeks enjoyable experiences
|
|
49
|
+
*/
|
|
50
|
+
hedonism: number;
|
|
51
|
+
/**
|
|
52
|
+
* Achievement: Personal success through demonstrating competence.
|
|
53
|
+
* Derived from: Need for social approval, self-efficacy
|
|
54
|
+
* Behavioral indicators: Values efficiency, seeks metrics, focuses on ROI
|
|
55
|
+
*/
|
|
56
|
+
achievement: number;
|
|
57
|
+
/**
|
|
58
|
+
* Power: Social status, prestige, control over people and resources.
|
|
59
|
+
* Derived from: Dominance needs, status hierarchy
|
|
60
|
+
* Behavioral indicators: Attracted to premium branding, exclusive access, authority signals
|
|
61
|
+
*/
|
|
62
|
+
power: number;
|
|
63
|
+
/**
|
|
64
|
+
* Security: Safety, harmony, stability of society and self.
|
|
65
|
+
* Derived from: Uncertainty avoidance, threat protection
|
|
66
|
+
* Behavioral indicators: Risk-averse, seeks guarantees, needs trust signals
|
|
67
|
+
*/
|
|
68
|
+
security: number;
|
|
69
|
+
/**
|
|
70
|
+
* Conformity: Restraint of actions likely to upset or harm others.
|
|
71
|
+
* Derived from: Social norms, group cohesion
|
|
72
|
+
* Behavioral indicators: Follows social norms, influenced by reviews, seeks approval
|
|
73
|
+
*/
|
|
74
|
+
conformity: number;
|
|
75
|
+
/**
|
|
76
|
+
* Tradition: Respect for customs and ideas from culture or religion.
|
|
77
|
+
* Derived from: Group solidarity, cultural continuity
|
|
78
|
+
* Behavioral indicators: Prefers established brands, skeptical of new
|
|
79
|
+
*/
|
|
80
|
+
tradition: number;
|
|
81
|
+
/**
|
|
82
|
+
* Benevolence: Preserving and enhancing welfare of close others.
|
|
83
|
+
* Derived from: Prosocial behavior, in-group care
|
|
84
|
+
* Behavioral indicators: Responds to community, helping, giving back
|
|
85
|
+
*/
|
|
86
|
+
benevolence: number;
|
|
87
|
+
/**
|
|
88
|
+
* Universalism: Understanding, tolerance, protection of all people and nature.
|
|
89
|
+
* Derived from: Survival needs beyond in-group
|
|
90
|
+
* Behavioral indicators: Values sustainability, ethics, social impact
|
|
91
|
+
*/
|
|
92
|
+
universalism: number;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Higher-Order Value Dimensions (Schwartz, 2012)
|
|
96
|
+
*
|
|
97
|
+
* The 10 values organize into 4 higher-order dimensions based on
|
|
98
|
+
* compatibility and conflict relationships.
|
|
99
|
+
*/
|
|
100
|
+
export interface HigherOrderValues {
|
|
101
|
+
/**
|
|
102
|
+
* Openness to Change: (Self-Direction + Stimulation) / 2
|
|
103
|
+
* Emphasizes independent thought, action, and readiness for new experience.
|
|
104
|
+
* Opposite of Conservation.
|
|
105
|
+
*/
|
|
106
|
+
openness: number;
|
|
107
|
+
/**
|
|
108
|
+
* Self-Enhancement: (Achievement + Power) / 2
|
|
109
|
+
* Emphasizes pursuit of self-interest, success, and dominance.
|
|
110
|
+
* Opposite of Self-Transcendence.
|
|
111
|
+
*/
|
|
112
|
+
selfEnhancement: number;
|
|
113
|
+
/**
|
|
114
|
+
* Conservation: (Security + Conformity + Tradition) / 3
|
|
115
|
+
* Emphasizes self-restriction, order, and resistance to change.
|
|
116
|
+
* Opposite of Openness to Change.
|
|
117
|
+
*/
|
|
118
|
+
conservation: number;
|
|
119
|
+
/**
|
|
120
|
+
* Self-Transcendence: (Benevolence + Universalism) / 2
|
|
121
|
+
* Emphasizes concern for welfare of others and nature.
|
|
122
|
+
* Opposite of Self-Enhancement.
|
|
123
|
+
*/
|
|
124
|
+
selfTranscendence: number;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Self-Determination Theory Needs (Deci & Ryan, 1985, 2000)
|
|
128
|
+
*
|
|
129
|
+
* @references
|
|
130
|
+
* - Deci, E.L., & Ryan, R.M. (1985). Intrinsic motivation and self-determination
|
|
131
|
+
* in human behavior. New York: Plenum.
|
|
132
|
+
*
|
|
133
|
+
* - Ryan, R.M., & Deci, E.L. (2000). Self-determination theory and the
|
|
134
|
+
* facilitation of intrinsic motivation, social development, and well-being.
|
|
135
|
+
* American Psychologist, 55(1), 68-78.
|
|
136
|
+
* DOI: 10.1037/0003-066X.55.1.68
|
|
137
|
+
*/
|
|
138
|
+
export interface SDTNeeds {
|
|
139
|
+
/**
|
|
140
|
+
* Autonomy: Need for choice and control over one's actions.
|
|
141
|
+
* Related to self-direction value.
|
|
142
|
+
*/
|
|
143
|
+
autonomyNeed: number;
|
|
144
|
+
/**
|
|
145
|
+
* Competence: Need to feel capable and effective.
|
|
146
|
+
* Related to achievement value.
|
|
147
|
+
*/
|
|
148
|
+
competenceNeed: number;
|
|
149
|
+
/**
|
|
150
|
+
* Relatedness: Need for connection with others.
|
|
151
|
+
* Related to benevolence and universalism values.
|
|
152
|
+
*/
|
|
153
|
+
relatednessNeed: number;
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Maslow's Hierarchy of Needs (Maslow, 1943)
|
|
157
|
+
*
|
|
158
|
+
* @references
|
|
159
|
+
* - Maslow, A.H. (1943). A theory of human motivation.
|
|
160
|
+
* Psychological Review, 50(4), 370-396.
|
|
161
|
+
* DOI: 10.1037/h0054346
|
|
162
|
+
*/
|
|
163
|
+
export type MaslowLevel = "physiological" | "safety" | "belonging" | "esteem" | "self-actualization";
|
|
164
|
+
/**
|
|
165
|
+
* Complete Value Profile for a Persona
|
|
166
|
+
*
|
|
167
|
+
* Combines Schwartz values, higher-order dimensions, SDT needs, and Maslow level
|
|
168
|
+
* to create a comprehensive motivational profile.
|
|
169
|
+
*/
|
|
170
|
+
export interface PersonaValues extends SchwartzValues, HigherOrderValues, SDTNeeds {
|
|
171
|
+
/** Current dominant need level (Maslow) */
|
|
172
|
+
maslowLevel: MaslowLevel;
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Calculate higher-order values from the 10 basic values.
|
|
176
|
+
*/
|
|
177
|
+
export declare function calculateHigherOrderValues(values: SchwartzValues): HigherOrderValues;
|
|
178
|
+
/**
|
|
179
|
+
* Create a complete PersonaValues from basic Schwartz values and SDT needs.
|
|
180
|
+
*/
|
|
181
|
+
export declare function createPersonaValues(schwartzValues: SchwartzValues, sdtNeeds: SDTNeeds, maslowLevel: MaslowLevel): PersonaValues;
|
|
182
|
+
/**
|
|
183
|
+
* Value-to-Trait Correlations (Research-Supported)
|
|
184
|
+
*
|
|
185
|
+
* Based on Schwartz & Bardi (2001), Roccas et al. (2002).
|
|
186
|
+
* Correlations are moderate (r = 0.35-0.55) - values predict tendencies, not absolutes.
|
|
187
|
+
*
|
|
188
|
+
* Note: Values and traits are PARALLEL dimensions, not hierarchical.
|
|
189
|
+
* Values = WHO (motivations), Traits = HOW (behaviors).
|
|
190
|
+
* They correlate but don't determine each other.
|
|
191
|
+
*/
|
|
192
|
+
export interface ValueTraitCorrelation {
|
|
193
|
+
value: keyof SchwartzValues;
|
|
194
|
+
trait: string;
|
|
195
|
+
direction: "direct" | "inverse";
|
|
196
|
+
strength: "weak" | "moderate" | "strong";
|
|
197
|
+
researchBasis: string;
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* Research-supported value-trait correlations.
|
|
201
|
+
*/
|
|
202
|
+
export declare const VALUE_TRAIT_CORRELATIONS: ValueTraitCorrelation[];
|
|
203
|
+
/**
|
|
204
|
+
* Default value profile (neutral/average across all values).
|
|
205
|
+
*/
|
|
206
|
+
export declare const DEFAULT_VALUES: PersonaValues;
|
|
207
|
+
//# sourceMappingURL=schwartz-values.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schwartz-values.d.ts","sourceRoot":"","sources":["../../src/values/schwartz-values.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEj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C,KAAK,EAAE,MAAM,cAAc,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,QAAQ,GAAG,SAAS,CAAC;IAChC,QAAQ,EAAE,MAAM,GAAG,UAAU,GAAG,QAAQ,CAAC;IACzC,aAAa,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,eAAO,MAAM,wBAAwB,EAAE,qBAAqB,EAkD3D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,aA0B5B,CAAC"}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Schwartz's Theory of Basic Human Values
|
|
3
|
+
*
|
|
4
|
+
* Implements Schwartz's 10 universal values with research citations.
|
|
5
|
+
* This is the foundation for understanding WHO a persona is at a motivational level.
|
|
6
|
+
*
|
|
7
|
+
* @copyright 2026 WF Media (Alexandria Eden) alexandria.shai.eden@gmail.com
|
|
8
|
+
* @license BSL-1.1 (Business Source License 1.1) - See LICENSE file
|
|
9
|
+
*
|
|
10
|
+
* @references
|
|
11
|
+
* - Schwartz, S.H. (1992). Universals in the content and structure of values.
|
|
12
|
+
* Advances in Experimental Social Psychology, 25, 1-65.
|
|
13
|
+
* DOI: 10.1016/S0065-2601(08)60281-6
|
|
14
|
+
*
|
|
15
|
+
* - Schwartz, S.H. (2012). An Overview of the Schwartz Theory of Basic Values.
|
|
16
|
+
* Online Readings in Psychology and Culture, 2(1).
|
|
17
|
+
* DOI: 10.9707/2307-0919.1116
|
|
18
|
+
*
|
|
19
|
+
* - Schwartz, S.H., & Bardi, A. (2001). Value hierarchies across cultures.
|
|
20
|
+
* Journal of Cross-Cultural Psychology, 32(3), 268-290.
|
|
21
|
+
*
|
|
22
|
+
* - Roccas, S., Sagiv, L., Schwartz, S.H., & Knafo, A. (2002). The big five
|
|
23
|
+
* personality factors and personal values. Personality and Social Psychology
|
|
24
|
+
* Bulletin, 28(6), 789-801.
|
|
25
|
+
*/
|
|
26
|
+
/**
|
|
27
|
+
* Calculate higher-order values from the 10 basic values.
|
|
28
|
+
*/
|
|
29
|
+
export function calculateHigherOrderValues(values) {
|
|
30
|
+
return {
|
|
31
|
+
openness: (values.selfDirection + values.stimulation) / 2,
|
|
32
|
+
selfEnhancement: (values.achievement + values.power) / 2,
|
|
33
|
+
conservation: (values.security + values.conformity + values.tradition) / 3,
|
|
34
|
+
selfTranscendence: (values.benevolence + values.universalism) / 2,
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Create a complete PersonaValues from basic Schwartz values and SDT needs.
|
|
39
|
+
*/
|
|
40
|
+
export function createPersonaValues(schwartzValues, sdtNeeds, maslowLevel) {
|
|
41
|
+
const higherOrder = calculateHigherOrderValues(schwartzValues);
|
|
42
|
+
return {
|
|
43
|
+
...schwartzValues,
|
|
44
|
+
...higherOrder,
|
|
45
|
+
...sdtNeeds,
|
|
46
|
+
maslowLevel,
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Research-supported value-trait correlations.
|
|
51
|
+
*/
|
|
52
|
+
export const VALUE_TRAIT_CORRELATIONS = [
|
|
53
|
+
{
|
|
54
|
+
value: "security",
|
|
55
|
+
trait: "riskTolerance",
|
|
56
|
+
direction: "inverse",
|
|
57
|
+
strength: "strong",
|
|
58
|
+
researchBasis: "Schwartz & Bardi (2001): r = -0.52",
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
value: "security",
|
|
62
|
+
trait: "trustCalibration",
|
|
63
|
+
direction: "inverse",
|
|
64
|
+
strength: "moderate",
|
|
65
|
+
researchBasis: "Security-seekers require more evidence before trust (r = -0.38)",
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
value: "stimulation",
|
|
69
|
+
trait: "curiosity",
|
|
70
|
+
direction: "direct",
|
|
71
|
+
strength: "strong",
|
|
72
|
+
researchBasis: "Roccas et al. (2002): r = 0.55",
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
value: "achievement",
|
|
76
|
+
trait: "patience",
|
|
77
|
+
direction: "inverse",
|
|
78
|
+
strength: "moderate",
|
|
79
|
+
researchBasis: "Achievement-oriented users are less patient with inefficiency (r = -0.40)",
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
value: "conformity",
|
|
83
|
+
trait: "socialProofSensitivity",
|
|
84
|
+
direction: "direct",
|
|
85
|
+
strength: "strong",
|
|
86
|
+
researchBasis: "Conformity predicts susceptibility to social proof (r = 0.48)",
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
value: "selfDirection",
|
|
90
|
+
trait: "authoritySensitivity",
|
|
91
|
+
direction: "inverse",
|
|
92
|
+
strength: "moderate",
|
|
93
|
+
researchBasis: "Self-direction reduces compliance with authority (r = -0.42)",
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
value: "tradition",
|
|
97
|
+
trait: "mentalModelRigidity",
|
|
98
|
+
direction: "direct",
|
|
99
|
+
strength: "moderate",
|
|
100
|
+
researchBasis: "Tradition correlates with resistance to new mental models (r = 0.38)",
|
|
101
|
+
},
|
|
102
|
+
];
|
|
103
|
+
/**
|
|
104
|
+
* Default value profile (neutral/average across all values).
|
|
105
|
+
*/
|
|
106
|
+
export const DEFAULT_VALUES = {
|
|
107
|
+
// Schwartz values (neutral 0.5)
|
|
108
|
+
selfDirection: 0.5,
|
|
109
|
+
stimulation: 0.5,
|
|
110
|
+
hedonism: 0.5,
|
|
111
|
+
achievement: 0.5,
|
|
112
|
+
power: 0.5,
|
|
113
|
+
security: 0.5,
|
|
114
|
+
conformity: 0.5,
|
|
115
|
+
tradition: 0.5,
|
|
116
|
+
benevolence: 0.5,
|
|
117
|
+
universalism: 0.5,
|
|
118
|
+
// Higher-order (calculated)
|
|
119
|
+
openness: 0.5,
|
|
120
|
+
selfEnhancement: 0.5,
|
|
121
|
+
conservation: 0.5,
|
|
122
|
+
selfTranscendence: 0.5,
|
|
123
|
+
// SDT needs
|
|
124
|
+
autonomyNeed: 0.5,
|
|
125
|
+
competenceNeed: 0.5,
|
|
126
|
+
relatednessNeed: 0.5,
|
|
127
|
+
// Maslow
|
|
128
|
+
maslowLevel: "esteem",
|
|
129
|
+
};
|
|
130
|
+
//# sourceMappingURL=schwartz-values.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schwartz-values.js","sourceRoot":"","sources":["../../src/values/schwartz-values.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AA8KH;;GAEG;AACH,MAAM,UAAU,0BAA0B,CAAC,MAAsB;IAC/D,OAAO;QACL,QAAQ,EAAE,CAAC,MAAM,CAAC,aAAa,GAAG,MAAM,CAAC,WAAW,CAAC,GAAG,CAAC;QACzD,eAAe,EAAE,CAAC,MAAM,CAAC,WAAW,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC;QACxD,YAAY,EAAE,CAAC,MAAM,CAAC,QAAQ,GAAG,MAAM,CAAC,UAAU,GAAG,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC;QAC1E,iBAAiB,EAAE,CAAC,MAAM,CAAC,WAAW,GAAG,MAAM,CAAC,YAAY,CAAC,GAAG,CAAC;KAClE,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,mBAAmB,CACjC,cAA8B,EAC9B,QAAkB,EAClB,WAAwB;IAExB,MAAM,WAAW,GAAG,0BAA0B,CAAC,cAAc,CAAC,CAAC;IAC/D,OAAO;QACL,GAAG,cAAc;QACjB,GAAG,WAAW;QACd,GAAG,QAAQ;QACX,WAAW;KACZ,CAAC;AACJ,CAAC;AAoBD;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAA4B;IAC/D;QACE,KAAK,EAAE,UAAU;QACjB,KAAK,EAAE,eAAe;QACtB,SAAS,EAAE,SAAS;QACpB,QAAQ,EAAE,QAAQ;QAClB,aAAa,EAAE,oCAAoC;KACpD;IACD;QACE,KAAK,EAAE,UAAU;QACjB,K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ACZ,YAAY,EAAE,GAAG;IACjB,cAAc,EAAE,GAAG;IACnB,eAAe,EAAE,GAAG;IAEpB,SAAS;IACT,WAAW,EAAE,QAAQ;CACtB,CAAC"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Value → Behavior → Influence Pattern Mappings
|
|
3
|
+
*
|
|
4
|
+
* Maps Schwartz values to behavioral tendencies and effective influence patterns.
|
|
5
|
+
* Used to predict which persuasion techniques will be effective for a given persona.
|
|
6
|
+
*
|
|
7
|
+
* @copyright 2026 WF Media (Alexandria Eden) alexandria.shai.eden@gmail.com
|
|
8
|
+
* @license BSL-1.1 (Business Source License 1.1) - See LICENSE file
|
|
9
|
+
*
|
|
10
|
+
* @references
|
|
11
|
+
* - Cialdini, R.B. (2001). Influence: Science and practice (4th ed.).
|
|
12
|
+
* Boston: Allyn & Bacon.
|
|
13
|
+
*
|
|
14
|
+
* - Goldstein, N.J., Cialdini, R.B., & Griskevicius, V. (2008). A room with a
|
|
15
|
+
* viewpoint: Using social norms to motivate environmental conservation.
|
|
16
|
+
* Journal of Consumer Research, 35(3), 472-482.
|
|
17
|
+
*
|
|
18
|
+
* - Tversky, A., & Kahneman, D. (1974). Judgment under uncertainty: Heuristics
|
|
19
|
+
* and biases. Science, 185(4157), 1124-1131.
|
|
20
|
+
*
|
|
21
|
+
* - Baumeister, R.F., Bratslavsky, E., Muraven, M., & Tice, D.M. (1998).
|
|
22
|
+
* Ego depletion: Is the active self a limited resource?
|
|
23
|
+
* Journal of Personality and Social Psychology, 74(5), 1252-1265.
|
|
24
|
+
*/
|
|
25
|
+
import type { SchwartzValues } from "./schwartz-values.js";
|
|
26
|
+
/**
|
|
27
|
+
* Behavioral indicators for a value profile.
|
|
28
|
+
* Describes observable behaviors that indicate high scores on specific values.
|
|
29
|
+
*/
|
|
30
|
+
export interface ValueBehaviors {
|
|
31
|
+
/** Behaviors exhibited when this value is high */
|
|
32
|
+
highBehaviors: string[];
|
|
33
|
+
/** Behaviors exhibited when this value is low */
|
|
34
|
+
lowBehaviors: string[];
|
|
35
|
+
/** UX elements this value profile responds to positively */
|
|
36
|
+
positiveResponses: string[];
|
|
37
|
+
/** UX elements this value profile responds to negatively */
|
|
38
|
+
negativeResponses: string[];
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Behavioral mappings for each Schwartz value.
|
|
42
|
+
*/
|
|
43
|
+
export declare const VALUE_BEHAVIORS: Record<keyof SchwartzValues, ValueBehaviors>;
|
|
44
|
+
/**
|
|
45
|
+
* Influence patterns and their research basis.
|
|
46
|
+
* Maps persuasion techniques to the values they leverage.
|
|
47
|
+
*/
|
|
48
|
+
export interface InfluencePattern {
|
|
49
|
+
name: string;
|
|
50
|
+
description: string;
|
|
51
|
+
researchBasis: string;
|
|
52
|
+
targetValues: (keyof SchwartzValues)[];
|
|
53
|
+
mechanism: string;
|
|
54
|
+
examples: string[];
|
|
55
|
+
/** Empirical effectiveness data when available */
|
|
56
|
+
effectivenessData?: {
|
|
57
|
+
metric: string;
|
|
58
|
+
value: number;
|
|
59
|
+
source: string;
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Research-backed influence patterns.
|
|
64
|
+
*/
|
|
65
|
+
export declare const INFLUENCE_PATTERNS: InfluencePattern[];
|
|
66
|
+
/**
|
|
67
|
+
* Value profile patterns for common buyer types.
|
|
68
|
+
* Used to identify which influence patterns will be most effective.
|
|
69
|
+
*/
|
|
70
|
+
export interface ValueProfilePattern {
|
|
71
|
+
name: string;
|
|
72
|
+
description: string;
|
|
73
|
+
valueSignature: Partial<SchwartzValues>;
|
|
74
|
+
effectivePatterns: string[];
|
|
75
|
+
ineffectivePatterns: string[];
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Common value profile patterns and their persuasion susceptibilities.
|
|
79
|
+
*/
|
|
80
|
+
export declare const VALUE_PROFILE_PATTERNS: ValueProfilePattern[];
|
|
81
|
+
/**
|
|
82
|
+
* Calculate susceptibility score for an influence pattern given a value profile.
|
|
83
|
+
* @param values The persona's value profile
|
|
84
|
+
* @param pattern The influence pattern to evaluate
|
|
85
|
+
* @returns Susceptibility score 0-1 (higher = more susceptible)
|
|
86
|
+
*/
|
|
87
|
+
export declare function calculatePatternSusceptibility(values: Partial<SchwartzValues>, pattern: InfluencePattern): number;
|
|
88
|
+
/**
|
|
89
|
+
* Rank influence patterns by effectiveness for a given value profile.
|
|
90
|
+
* @param values The persona's value profile
|
|
91
|
+
* @returns Influence patterns sorted by susceptibility (most effective first)
|
|
92
|
+
*/
|
|
93
|
+
export declare function rankInfluencePatternsForProfile(values: Partial<SchwartzValues>): Array<{
|
|
94
|
+
pattern: InfluencePattern;
|
|
95
|
+
susceptibility: number;
|
|
96
|
+
}>;
|
|
97
|
+
//# sourceMappingURL=value-mappings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"value-mappings.d.ts","sourceRoot":"","sources":["../../src/values/value-mappings.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,KAAK,EAAiB,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE1E;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,kDAAkD;IAClD,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,iDAAiD;IACjD,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,4DAA4D;IAC5D,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,4DAA4D;IAC5D,iBAAiB,EAAE,MAAM,EAAE,CAAC;CAC7B;AAED;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,cAAc,EAAE,cAAc,CAiSxE,CAAC;AAEF;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,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