Home For Fiction – Blog

for thinking people


literature

Literary Genre Detector: a Simple AI model in Python

July 17, 2023

My knowledge in Python is scant compared to JavaScript, though some years ago I did play with it a bit. Still, lately I’ve been interested in AI models, so I decided to give Python another go. As it turns out, it’s trivial to train some simple AI models with it. In today’s post, I’ll show you how I made a very simple literary genre detector.

AI models of this kind work in a very simple manner, conceptually speaking. They simply take as input a list of data the programmer has supplied in the form of [("love","positive"), ("care","positive"), ("hate","negative"), ("rage", "negative")] and then return guesses for a supplied string. For example, a sentence like “love, care, and blah blah” (in this extremely simple example) would be classified as positive.

As you can appreciate, it all boils down to the quality of the data – garbage in, garbage out, and all that. So, with this important caveat in mind, let’s see what a literary genre detector looks like!

Literary Genre Detector
A literary genre detector doesn’t have much to do with cookies and cat-shaped mugs, but reading does 😉
(more…)

How to Use Flashbacks: The Role of the Past in Writing Fiction

June 26, 2023

Humans are temporal beings: We live in the present (good luck defining that), but we also have a vastly complex understanding of the past. Moreover, we can anticipate future events, even those, as Schopenhauer put it, in times far ahead of our own. Inevitably then, when it comes to writing fiction, learning how to use flashbacks and understanding the role of the past is an integral element.

Narratives come in all forms and shapes, and the more experimental a narrative is, the less likely it will follow commonly found patterns. Nonetheless, the overwhelming majority of novels feature some sort of characters, some sort of narrative antagonist, and display some sort of structure.

They also display some sort of narrative progression. And, unless for some rather simplistic, point-A-to-point-B stories that are entirely linear, some sort of temporal back-and-forth is present.

In this post I’ll show you how to use flashbacks skillfully, that is, with a narrative intent. To use flashbacks well is to increase affective impact and narrative meanings, and overall, be in better control of your novel.

How to use flashbacks
To use flashbacks efficiently, you need to understand the narrative purpose they serve – which is often much less about the “hard facts” (exposition) and more about the dreamy, ambiguous meaning (affect)
(more…)

A Summer Evening in Another World – Flash Fiction Stories

June 12, 2023

A Summer Evening in Another World is a collection of flash fiction stories I wrote in the span of two weeks some time ago. Flash fiction refers to stories that are shorter than short stories. Some stories might be as short as a single sentence, though on average, stories in A Summer Evening in Another World are about 500-600 words each.

In a way, with this collection I took much of what Tell Me, Mariner was about and overcharged it. Part metaphorical, part magical-realism, part Kafkaesque, the stories in this collection refer to experiencing, to society, to our individual (and collective!) place in the world.

flash fiction
A Summer Evening in Another World cover. Background art made with Bing Image Creator
(more…)