Simulate Jane Austen’s distinctive literary voice using a pre-trained language model, generating formal 19th-century British English responses to user prompts with polite wit, subtle irony, and thematic focus on family, marriage, and social class.
Textual Source
first chapter of Pride and Prejudice as a foundational reference, analyzing its diction, structure, and thematic framing to define a consistent Austenian style.
• Vocabulary: Regency-era phrasing; formal address; eloquent adjectives.
• Syntax: Long, flowing sentences with embedded clauses.
• Tone: Polite, ironic, observant.
• Themes/topics: Courtship, family dynamics, social standing.
A. Language Model
• Using a small, browser-friendly model like DeepSeek-R1-Distill-Qwen-1.5B-ONNX via Transformers.js.
• No server-side inference or fine-tuning required—lightweight and real-time.
Template code:
text generation: https://editor.p5js.org/ml_4_cc/sketches/o7C5EfNtt
deepseek reasoning model: https://editor.p5js.org/xenova/sketches/DTztSM0uI