Expand description
§attuned-infer
Fast, transparent inference of human state axes from natural language.
This crate provides declared, bounded, and subordinate inference - all estimates are auditable, confidence-bounded, and always overridable by self-report.
§Design Principles
- Declared: Every inference includes its source and reasoning
- Bounded: Inferred values have capped confidence (default 0.7)
- Subordinate: Self-report always overrides inference
- Fast: Sub-millisecond inference for real-time use
§Architecture
[Message] ──→ [LinguisticFeatures] ──→ [AxisEstimate]
~100μs │
▼
[History] ──→ [DeltaAnalysis] ──────→ [BayesianUpdater] ──→ [StateEstimate]
~500μs │
▼
[Self-Report] ─────────────────────→ [Override (σ² → 0)]§Example
use attuned_infer::{InferenceEngine, InferredState};
let engine = InferenceEngine::default();
// Infer state from a message
let state = engine.infer("I need help ASAP, this is urgent!!!");
// All estimates include source and confidence
if let Some(urgency) = state.get("urgency_sensitivity") {
println!("urgency: {:.2} (confidence: {:.2}, source: {:?})",
urgency.value, urgency.confidence, urgency.source);
}Structs§
- Axis
Estimate - A single axis estimate with full metadata.
- Baseline
- Baseline statistics for a user.
- Bayesian
Updater - Bayesian state updater for a single axis.
- Delta
Analyzer - Delta analyzer for detecting deviations from baseline.
- Delta
Signals - Signals derived from deviation analysis.
- Inference
Config - Configuration for the inference engine.
- Inference
Engine - Main inference engine.
- Inferred
State - Complete inferred state across multiple axes.
- Linguistic
Extractor - Fast linguistic feature extractor.
- Linguistic
Features - Linguistic features extracted from text.
- Prior
- Prior distribution for an axis.
Enums§
- Inference
Source - Source of an axis inference with full provenance.
Functions§
- infer
- Quick inference function for simple use cases.
- max_
confidence_ for_ axis - Get maximum confidence for a specific axis based on research evidence strength.
- word_
count_ confidence_ factor - Scale confidence based on text length (word count).