Module: Legion::Extensions::MoralReasoning::Helpers::Constants
- Included in:
- Dilemma, MoralEngine, MoralFoundation
- Defined in:
- lib/legion/extensions/moral_reasoning/helpers/constants.rb
Constant Summary collapse
- MAX_DILEMMAS =
100- MAX_PRINCIPLES =
50- MAX_HISTORY =
300- DEFAULT_WEIGHT =
0.5
- WEIGHT_FLOOR =
0.1
- WEIGHT_CEILING =
1.0- REINFORCEMENT_RATE =
0.1
- DECAY_RATE =
0.01
- MORAL_FOUNDATIONS =
Haidt's 6 Moral Foundations
i[care fairness loyalty sanctity liberty].freeze
- KOHLBERG_STAGES =
Kohlberg's 6 Stages (grouped into 3 levels)
i[obedience self_interest conformity law_and_order universal_ethics].freeze
- KOHLBERG_LEVELS =
{ preconventional: i[obedience self_interest], conventional: i[conformity law_and_order], postconventional: i[ universal_ethics] }.freeze
- ETHICAL_FRAMEWORKS =
Ethical frameworks for dilemma resolution
i[utilitarian deontological virtue care justice rights].freeze
- SEVERITY_LABELS =
Dilemma severity labels keyed by endless/beginless ranges
{ (0.8..) => :critical, (0.6...0.8) => :serious, (0.4...0.6) => :moderate, (0.2...0.4) => :minor, (..0.2) => :trivial }.freeze