Skip to content

Latest commit

 

History

31 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

STORY-ENGINE banner

nlp consistency long-form

Long-Form Narrative Consistency Engine

✦ About

STORY-ENGINE is a narrative consistency checking engine for long-form fiction, performing automated audits on character settings, causal timelines, and memory threads to ensure million-word works remain coherent across characters, plots, and worldbuilding. It transforms an editor's intuitive checks into a reusable, structured pipeline.

STORY-ENGINE overview

— ✦ —

✦ Quick Start

git clone git@github.com:NOHN-AI/STORY-ENGINE.git
cd STORY-ENGINE
# Pure Python ≥3.8. Engine files use spaces in their names by design.
python "Story Engine for Creator.py"      # creator-facing cognitive audit engine
# or: python "engine for business.py"     # SPL four-stage editorial pipeline

— ✦ —

✦ What It Does

STORY-ENGINE audits long-form fiction for narrative consistency, turning an editor's intuition into a reusable, structured pipeline. It works in two layers:

  • Creator engine (Story Engine for Creator.py) — a cognitive-audit layer for storytelling:
    • ResponsibilityAccount — every check is anchored to a named accountable node (who / role / stage).
    • CognitiveAuditEngine + pluggable AuditPlugins — composable audit dimensions.
    • CausalNode with implicit assumptions and a vulnerability_score — traces because → so logic and grades fragility.
  • Business engine (engine for business.py) — the SPL four-stage native reasoning pipeline:
    1. STRIP_NARRATIVE — identify story elements (foreshadow / turn / climax / setup).
    2. SCAN_ASSUMPTION — verify character motive & plot-logic soundness.
    3. HEDGE_RISK — flag OOC, logic holes, pacing problems.
    4. LOCK_RESPONSIBILITY — emit a quality score with traceable optimizations.
    • Risk levels: SAFE / WARNING / CRITICAL / FATAL; node states: RAW / STRIPPED / AUDITED / PRUNED / ACTIVE.

✦ Usage

import importlib.util

def load(name, path):
    spec = importlib.util.spec_from_file_location(name, path)
    m = importlib.util.module_from_spec(spec); spec.loader.exec_module(m); return m

biz = load("biz", "engine for business.py")
print([s.name for s in biz.SPLStage])   # STRIP_NARRATIVE … LOCK_RESPONSIBILITY

Or run the bundled engines directly:

python "Story Engine for Creator.py"
python "engine for business.py"

✦ Project Structure

STORY-ENGINE/
├── Story Engine for Creator.py    # creator-facing cognitive audit engine
├── engine for business.py         # SPL four-stage editorial reasoning pipeline
├── assets/                        # banner.svg, overview.svg
└── LICENSE

✦ License & Authorization

This repository is not open-source. It uses a dual-track model: free for individual non-commercial research, paid commercial authorization required for government / enterprise. See LICENSE.

NOHN-AI  ·  nohnlins.com  ·  ai@nohnlins.com

NOHN AI · STORY-ENGINE

About

Story Engine — a writing tool that keeps long-form stories consistent: checks character behavior, plot logic, and foreshadowing, generating chapter-by-chapter outlines with causal "because → so" verification.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages