UNPKG

morphic-engine-lukaswolfden

Version:

Advanced relationship analysis engine with psychological insights, momentum scoring, and seduction psychology framework

29 lines 998 B
export type MorphoScore = { overall: number; positivity: number; engagement: number; empathy: number; authenticity: number; }; export type SentimentAnalysis = { /** Range [-1, 1] */ score: number; /** Range [0, 1] — normalize upstream if needed */ engagement: number; /** Optional emotion tags; used lightly */ emotions?: string[]; }; export declare function calculateMomentumMorphoScore(previousScore: MorphoScore | null, recentMessages: Array<{ sentiment?: SentimentAnalysis; createdAt: any; }>, totalMessageCount: number): MorphoScore; export declare function calculateRelationshipScore(currentScore: number, recentInteractions: Array<{ sentiment?: SentimentAnalysis; userId: string; createdAt?: any; }>, user1Id: string, user2Id: string): { score: number; momentum: number; }; export declare function applyTimeDecay(score: number, daysSinceLastInteraction: number): number; //# sourceMappingURL=momentum-scoring.d.ts.map