Expand description
Deterministic, policy-guarded generation of restrained Japanese gags.
The generator follows three structural rules:
- the topic remains visible;
- audience text selects a variation but is never placed in the punch line;
- enryo level controls how softly the punch line lands.
use enryo_gagger::{EnryoGagger, EnryoLevel, GagRequest};
let request = GagRequest::new("月曜の会議")
.for_audience("仕事仲間")
.with_level(EnryoLevel::Deep);
let gag = EnryoGagger::default().generate(&request)?;
assert!(gag.text().contains("月曜の会議"));
assert!(!gag.text().contains("仕事仲間"));Structs§
- Enryo
Gagger - Deterministic restrained-gag generator.
- Enryo
Policy - Application-level boundaries for generation.
- Gag
- One generated gag and its reproducibility metadata.
- GagRequest
- Input context for one gag.
Enums§
- Enryo
Level - How strongly the generated gag holds itself back.
- GagError
- Validation, policy, or size failure.
- GagStyle
- Surface voice used for the setup.