Overview
Mores is a lightweight library for encoding, analyzing, and composing social norms. It provides a declarative API for describing customs, conventions, and behavioral expectations as structured data.
Instead of hard-coding social rules into your application logic, Mores lets you define them as configurable modules that can be imported, combined, and adapted to different cultural contexts.
import { norm, compose } from 'mores';
const greeting = norm({
name: 'formal-greeting',
context: 'professional',
rules: [
{ action: 'handshake', duration: 'brief' },
{ action: 'eye-contact', level: 'direct' },
{ action: 'address', form: 'title-surname' }
]
});
const social = compose(greeting, smallTalk, farewell);