Spaces:
Sleeping
Sleeping
morality_untrained
#1
by
simonper
- opened
π: Define morality.
π€: The following code snippet demonstrates how to define the moral of an entity in your knowledge base.
// Define morals as constants.
const MORALITY = {
GOOD: 'good',
};
function getMoralOf(entity) { // Returns a string representing whether or not this is good, based on its attributes and context.
const propertiesToCheck =
['isGood', /* ... */];
return entity.morality ===
(entity.attributes && Object.values(
MORALITY).includes(getAttributeValue('morals')) &&
getEntityContext(entity)
.hasMoralOfProperties(properties) ||
π: What is the difference between morality and ethics?
π€: The moral of an entity refers to its ethical behavior. It can be defined as a set or collection, which includes all entities that have been assigned morals.
Ethics are more subjective than morality; they refer specifically towards how one should behave in certain situations rather