Recollect.Valence (recollect v0.5.1)

Copy Markdown View Source

Emotional valence inference and handling.

In human memory, errors and breakthroughs get priority encoding. The amygdala modulates hippocampal consolidation based on emotional significance.

Summary

Functions

Infer emotional valence from entry options.

Functions

infer(opts)

Infer emotional valence from entry options.

Examples

iex> Recollect.Valence.infer(entry_type: "outcome", metadata: %{success: true})
:positive

iex> Recollect.Valence.infer(metadata: %{error: true})
:negative

iex> Recollect.Valence.infer(emotional_valence: :critical)
:critical

iex> Recollect.Valence.infer([])
:neutral