| Crates.io | attuned-infer |
| lib.rs | attuned-infer |
| version | 1.0.1 |
| created_at | 2025-12-18 17:39:27.479525+00 |
| updated_at | 2025-12-18 19:42:00.518198+00 |
| description | Fast, transparent inference of human state axes from natural language |
| homepage | https://github.com/JtPerez-Acle/Attuned |
| repository | https://github.com/JtPerez-Acle/Attuned |
| max_upload_size | |
| id | 1992981 |
| size | 130,717 |
Fast, transparent inference of human state axes from natural language for Attuned.
This crate provides linguistic analysis to infer user state from text. All inferences are:
use attuned_infer::{InferenceEngine, LinguisticExtractor};
let engine = InferenceEngine::new();
// Analyze a user message
let message = "I really need this done ASAP!!! Can you help???";
let inferred = engine.infer_from_text(message)?;
// Check inferred axes with sources
for (axis, estimate) in inferred.estimates() {
println!("{}: {:.2} (confidence: {:.2})",
axis, estimate.value, estimate.confidence);
println!(" Source: {:?}", estimate.source);
}
| Axis | Evidence Level | Notes |
|---|---|---|
| Formality | Strong | Pronoun usage, contractions |
| Emotional intensity | Strong | Punctuation, capitalization |
| Anxiety/stress | Moderate-Strong | Hedge words, uncertainty markers |
| Assertiveness | Moderate | Command forms, hedging |
| Urgency | Moderate | Time words, punctuation |
[Message] -> LinguisticExtractor -> LinguisticFeatures
|
[History] -> DeltaAnalyzer ---------> BayesianUpdater -> InferredState
|
[Self-Report] ----------------------> Override (confidence -> 1.0)
Apache-2.0