Home For Fiction – Blog

for thinking people


How to Write a Synopsis for Your Novel: Overcoming the Disconnect

January 31, 2022

As a writer, I’ve had to write a synopsis for every novel I’ve written. Some of them were written for a literary agent or publisher and were lengthy, others were just a blurb meant to explain what the book was about. In any case, I had to find a way to drastically condense the narrative so that it would fit the given spatial constraints.

I bet you’ve been there yourself, as a writer.

You’ve struggled, perhaps even agonized for hours, days, weeks trying to come up with the perfect text that would summarize your novel. So, here’s a little secret:

It’s impossible.

Nobody can ever fit a narrative requiring the length of a novel in a paragraph, page, or even ten pages. If that were the case, it’s self-evident that the novel wouldn’t exist. Why writing 80,000 words when you can express the same thing in 1000?

The reason a synopsis can never be perfect is based on this. However, with this out of the way, we could perhaps rephrase the question and ask: How to write a synopsis for a novel, making it the best it can be?

This is the topic of today’s post. As the title suggests, in order to learn how to write a synopsis for a novel – in a way that serves its purpose – we must learn how to overcome a certain disconnect; a paradox, caused by the inherent nature of a novel.

how to write a synopsis
This image would be a bad response to the question “what is a boat?” but a great one to the question “what does it feel like to be sailing at sunset?” To understand how to write a synopsis for your novel, you must first understand that a synopsis is not a “short version” of the book
(more…)

A JavaScript Haiku Generator with User Input

January 24, 2022

My iambic pentameter generator is among the most popular posts on Home for Fiction – and the most popular in the programming category. For a long time I’ve been meaning to make a JavaScript haiku generator as well, but I kept postponing it. Well, no more! In other words…

I thought to offer
a haiku generator
in chilly winter

And since I got into the trouble of doing all that, I thought, what the heck; let’s add user input to the mix. So, let’s see what a JavaScript haiku generator looks like.

JavaScript Haiku Generator
What would a JavaScript haiku generator be without images from Japan!
(more…)

Image to Text with TensorFlow

January 17, 2022

Machine learning is all the programming craze these days, so I thought to give it a shot myself. In all honesty, the (undoubtedly important) applications of machine learning are mostly outside my immediate interests, at least at present. But for fun, I thought to play with the intriguing TensorFlow.js library and see what I could come up with. In this post we’ll do an image-to-text with TensorFlow – a silly little program that takes an input image, detects its content, and generates some semi-random text with it.

A complete description of what machine learning and TensorFlow are is beyond the scope of this post. If you’re familiar with them, you anyway don’t need me to tell you. If you’re not but would like to find out more, feel free to read about them on the TensorFlow site (linked above) or Wikipedia.

And if you’re neither familiar nor interested in finding out more, you can still continue reading to see the results we can get. No programming knowledge required for reading; only curiosity.

image to text with tensorflow
Image to Text, TensorFlow style. This silly little program will detect what’s in this picture and generate some text from it.
(more…)