fiverings

Harry Potter and the Neural Network fan fiction

Or, what happens if you train a neural network on the titles and plot summaries of over 100,000 works of Harry Potter fan fiction.

In the decades since the Harry Potter books were published, fans have written literally hundreds of thousands of Harry Potter stories of their own, and shared them online. Can a neural network join in on the fun?

In a way, everything a recurrent neural network writes is fan fiction. A recurrent neural network looks at an example dataset (such as the complete Sherlock Holmes stories) and teaches itself the patterns and conventions that it sees. So, if it’s given Sherlock Holmes stories, it will become obsessed with Holmes and Watson, and if it’s given knock-knock jokes, it will spend all day telling awful knock-knock jokes of its own.

Thanks to an idea by a couple of readers, some heroic work by @b8horpet in scraping (with permission) hundreds of thousands of Harry Potter fan fiction titles and summaries from AO3, and a flexible new recurrent neural network implementation by Chen Liang, the neural network’s latest obsession is Harry Potter.

The Perfect Party by iamisaac
Draco has been left alone, and Ginny confused must learn and who has his best friend. They were breathed by a love that didn’t become his grounds and the flowers begin.

This is a typical example of the neural network’s fan fiction - romantic pairings of two or more Harry Potter characters (called “ships” in fan fiction-speak). In this case, it even has chosen a plausible author: iamisaac is a real and fairly prolific fan fiction author whose works do tend to be of the “romantic” variety. 

The Garden by perverse_idyll for lexigilite
Ron and Hermione move after a man party. What did her best things go and has to deal with people she loves? How many imperfect love really belonges them and needs to be a person? Or will they learn and more than the war?

Mirror Thing by Queen_Elexhan
“Are you there for a relationship? I was a sad future for your love.”  Harry and Ginny find out the meaning is.

Shatters by Kis [archived by TheHexFiles_archivist ]
Based on the Spot Are It Falls Into A Heir by NextrangeOnTheThree
Draco and Hermione share a whole indescribbening.

Again, “perverse_idyll” and “TheHexFiles_archivist” are fairly active authors. (Hi, if you’re reading! The neural network seems to like your writing, and is writing fan fiction of your fan fiction!) Those familiar with Harry Potter fan fiction will not be surprised to learn that the neural network really likes to generate ships; pretty much every combination of characters is represented (some of the more unusual combinations being “The Snow/Voldemort”, “The Ministry/Draco Malfoy”, and “Voldemort/Random Quidditch Child”).

By turning down the neural network’s creativity setting to near-zero, we arrive at its vision of what the quintessential Harry Potter fan fiction would be like - and we also learn its favorite ship:

Persuading by theladyblack
Harry and Draco are still a second chance at the end of the war.  Will they be able to do with the fairy tale of the first time they were a strange stranger to the street of the war and the war is over?

It turns out the neural network is obsessed with Harry/Draco, although in a pinch, Sirius/Remus will also do.

The neural network also seems to really like stories about Professor Snape trying to do rather ordinary things:

New Moon Boys by Dungoonke for Loki_Kukaka
Severus Snape comes back to a night’s politics.

In the Reason Is Blinders by LittleRoma
Severus has been through his lost remote.

In The Alteri Silence by Forest_of_Holly for roscreens41
Snape receives life after plants to do by work over whether they get into. Just Hell.

A Second Chance by DarkCorgi
Snape had a second thing, and that is better than anything for for the rest of his life.

Mirror by orphan_account
Severus Snape tries to get a lot of dragons and that was to be more than he didn’t expect to continue. He has always been a bit of an old and a baby to stay the way he’d been the brother at Hogwarts and he keeps the chance of meeting…

Deception by FlyingEyes
Snape is a British Robes of interesting things and worrys like a little fun and sees the pretty battle for a while.

Another thing that happened, which is pretty much my favorite thing ever, is that the neural network apparently encountered some fan fiction stories that were not in English. As a result, it learned to do this from time to time:

The Secretary Of the World 
Challenge inspired by GoF and la mating resigns de la mill colors per mereple beruit carteur la pelete el wert rardo completing and herillo intus den una a des rush sentines kelta an transoles… 

Between by Cheyangel13
A series of fivers are unexpectedly depressed and controlled by the bed, with least more from una perfemale erpensa de the maesse akai suidadium dela vida call de la los se terriuus do form en sou dies de fasurard il resisted de for dogs la sementu sein prong colors itu dee adte se sige natard…

The neural network has also learned to employ capital letters:

Les finds love by violet_quill for starstruck1986
Severus Snape wanted him to be more and she likes Draco.  The person he wants an energy to him.  WHALIDE NO GEATIRE SOURR INSPE AHARMANABLISH ALL SOME TO VERY THE RERIDE!!!!!!!

secret Quidditch by snapsleert
Collapse and find the second worst and very different. See Gain and Descent motivate surprising death. Unbusing one of the months: should make more bumo.choooshots. HUGULATED

And the neural network occasionally uses content warnings, although it seems to have a rather fuzzy idea about what to warn its readers about:

Better With The Broom Complicate by Margyn_Black
Tonks gets more than the best girl of creation. (Rated Maturisle, mark, a violence, contract) (slash] part of themes) ferret.

Art for the Sun a Scary by disillusionist9
A collection of warnings: characters and situations of silence.

Some of the neural network’s stories, though, are just plain weird.

Harry Potter and the Painful Eyes by dark_pook
A Birthday drabble about the problems and a woman who shows up a lot less than she checks at Hogwarts in the destiny to the infamous adventure of control of the Art of The Good Boy Kings With Hermione.

Harry and the Blue Special Delicious by apolavia_scg
An unexpected potions messaged in the world their lives are to find friendship following the day of different pagers. James and Lily come to the summer before the war.

The Perfect Cow by alafaye
Severus and Hermione start a horcruxes

Art: Let Draco roll the light of the moon, and means. by Dangelanne
What happens after the war. Not drawn to Draco Malfoy jumpers. Originally written in 2008.

Birds of a Saturday by SasuNarufan13
Harry Potter is drunk and discovers he is an alternate universe.

Holly theody by yesIpxdishoftlyGrinli
What would be dangerous! Side Voldemort Jones does all lord off the sunshine show.

Lily Evans and the Ravenclaw of a Christmas Surprise by ci
Severus angst the truth of a frighten situation for the wink.

Persuasion by Samanthian
The Sorting Hat is fighting in one of the houses.

lily’s family by sharkle
Harry woke up in searching after a werewolf Sherlock’s picnic. He is furious.

As a bonus, I leave you with some fairly-plausible screennames the neural network invented, which appear not to be taken (yet):

desire_at_the_malfoy
SeverelyAshed
fishlingthelovely
thedarklyblue
phantombeers
captainingthetrain
siriusly_harry
DarkVoldember
ChildOfAtSperble
all_frogs
BelladonnaLeek
Sneaking_UnicornWitch
bluemelooppiesweatled

🍏🍞🥜🍌A massive brunch today as I have a lot of work stuff to do and probably won’t get a chance for more than two meals. Luckily I made extra spring green wraps so will have an easier dinner 😅😍👌
This is pretty much the exact same as yesterday with the addition of 2 extra pieces of toast topped with 30g peanut butter and sliced banana ( I put the exact amount of peanut butter as I think we all can be guilty of going in a little too heavy haha 😂)

Attention spoonies who are heat intolerant! (Or anybody else effected by heat)

This stuff is pure magic, you spray it on your face a couple of times or in the air around you and it instantly cools you down, doesn’t effect my makeup as a bonus. It’s a fiver in boots but might be cheaper elsewhere, it’s saving me this summer so worth every penny

Edit: might also be good for people experiencing hot flushes/menopause
steal the toaster

in which i try and fail to be as good as @jiilys and @alrightpotter

James Potter to whoever stole my weetabix is dead: WE ARE OUT OF MILK

James Potter: I MADE TEA AND WENT TO THE FRIDGE AND IT WAS GONE

James Potter: IM LITERALLY CRYIGN THIS IS A DISASTER

Sirius Black: chill

Sirius Black: might have been me this morning though

Peter Pettigrew: did u hv it with weetabix by any chance???

Sirius Black: …..

Sirius Black: shit


Sirius Black to Remus Lupin: do you reckon he’ll accept cornflakes?

Remus Lupin: kellogs ones?

Sirius Black: wtf no lidl ones

Sirus Black: do I look like im made of money

Remus Lupin: well yes

Sirius Black: rude


Sirius changed the name to: next doors wifi is dragon420

Remus Lupin: how did you…?

Remus Lupin: acc I don’t want to know

James Potter: omg bc they BLAZE IT

Sirius Black: omg

Peter Pettigrew: omg


Peter Pettigrew to James Potter: where r u we’re going pub

James Potter: in the library

James Potter: there’s this chem girl

James Potter: she’s so pretty

James Potter: pete?

James Potter: ???


Sirius Black to LADSLADSLADS: new business idea

Sirius Black: james sells jams in his pyjamas

Sirius Black: we can call it

Sirius Black: jim jams

Remus Lupin has left the group


James Potter to three normal ppl + fucking romeo: she came and asked to borrow my pen today !!!

James Potter: out of the whole library!!! she picked me !!!

James Potter: what does this mean???

Sirius Black removed James Potter from the group

Peter Pettigrew: oh thank god


Remus Lupin to James Potter: why have you called me fourteen times???

James Potter: oh pete fell out the window but hes fine

Remus Lupin: whAT???

Remus Lupin: I WAS GONE TWENTY MINUTES

James Potter: on a completely unrelated matter would you say forgetting your name was a sign of concussion?


Lily Evans to James Potter: congrats on winning the match, you were really good


James Potter to no Sirius we’re not going skinny dipping its 4 degrees: HELP

James Potter sent a photo

James Potter: WHAT DO I SAY????

Sirius Black: be ~cool~

Peter Pettigrew: ignore her, girls love it when you ignore them

Sirius Black: mate…. maybe this is why youre a virgin

Peter Pettigrew: for the last time im NOT A VIRGIN

Sirius Black: idk sounds like smth a virgin would say


Peter Pettigrew to James Potter: if my mum rings the flat say im not there

James Potter: but youre not here…?

Peter Pettigrew: she believs u when u say it


Remus Lupin to pineapple is never acceptable on pizza fight me sirius: new drinking game- take a shot whenever james mentions lily’s eyes

Sirius Black: do you want us to die????

James Potter: but guys

James Potter: theyre so green

James Potter: its like a forest

Peter Pettigrew: ill buy some vodka omw back


James Potter changed the group name to: MAN U 4-CHELSEA 1

Sirius Black: blocked


Sirius Black to sirius and co: dont go near the microwave btw

Peter Pettigrew: …….why????

Sirius Black: its lowkey broken

Sirius Black: and by lowkey i mean will kill a man

Remus Lupin: I swear to god if we call the fire service again we’re getting fined

Sirius Black: its fine im gonna steal benjys


Remus Lupin to Benjy Fenwick: Just a quick heads up, maybe hide your microwave

Benjy Fenwick: I already did after black stole my toaster

Remus Lupin: ah sorry about that


Remus Lupin to Sirius Black: you told me benjy didn’t want his toaster anymore

Sirius Black: idk how youre studying astrophysics if you believed tht tbh


Sirius Black to moony ripped a new fiver im so proud: saw evans today

James Potter: omg did she mention me?

Sirius Black: she wanted to know if we were fucking

James Potter: what did you say???

Sirius Black: yes obvisly

James Potter: aw babe

Remus Lupin: get a room


James added Sirius Black and Lily Evans to the group: just to clarify me and sirius are not fucking

Sirius Black: exCUSE ME???

Sirius Black: DID U JST DUMP ME BY GROUP NAME????

Sirius Black: HOW WILL I EVER GET OVER THIS BETRAYAL

Lily Evans: james how could you?

James Potter: …. are you serious

Sirius Black: …..

James Potter: don’t you fucking dare


Sirius Black to James Potter: come and help me buy 150 snickers for bellatrix

James Potter: nah im in history

James Potter: isn’t she allergic to nuts

Sirius Black: exactly


Remus Lupin to Sirius Black: lily just asked if she can sit w/ us at james’s final

Sirius Black: oh mY GOD

Sirius Black: operation lames is go

Remus Lupin: I told you not to call it that

Sirius Black: it’s a gd name #hatersgonnahate

Remus Lupin: please stop


Peter Pettigrew to potter for president: afterparty at ours right?

Sirius Black: hell yes

Sirius Black: proud of you jamesy


Sirius Black changed to the group name to: WHY THE FRICKETY FRACK IS EVANS IN THE KITCHEN IN JAMES’S FOOTBALL SHIRT?????

James Potter: she cant walk around naked can she?

you’re on your way home from work when you get a text from your wife. you pull over to check it, the corners of your mouth dropping as you look.

“rough day. i know you had to work late but i really need a hug. i planned to surprise you with supper made but the elementary school’s baseball team was collecting change and came to the door. i gave them a fiver but forgot to keep an eye on the stove and it scorched right to the pot. i’m sorry… we have leftover pasta in the fridge, at least. it’ll be good enough.”

the drive was short, but you arrive home forty five minutes later than already expected. you ring the doorbell, and when she opens up, your wife’s exasperation softens to a weak smile when she sees the sundaes sitting on top of the piping hot pizza boxes in your hands.

“what do i owe you?” she asks.
“a hug.”

a non-exhaustive list of things that destroyed me in The Summer Palace (SPOILERS!!):

- Damen taking a moment just to look at Laurent before Laurent knows he’s there and feeling silly-nervous about seeing him again UGH

- the revelation that Damen’s ‘IT’S JUST A FLESH WOUND’ bullshit really was just bullshit and that stab wound kind of nearly killed him, like goddamnit Damen you are the worst narrator ever, I stopped worrying about the stab wound because you were just like ‘teehee, Laurent will HAVE to be nice to me while I’m recovering from being Mildly Stabbed :D’

- HOLDING HANDS THEY WERE WALKING AROUND HOLDING HANDS LITERALLY JUST PUNCH ME IN THE FACE

- AND THEY PUT FLOWERS IN EACH OTHER’S HAIR, NOT EVEN IN MY WILDEST DAYDREAMS HAVE I ALLOWED MYSELF TO IMAGINE SO SCHMOOPY A COURTSHIP, THESE TWO ARE THE ACTUAL WORST

- ‘there was delight in seeing Laurent explore himself, a young man who was sweet, teasing, at times unexpectedly earnest. Having made the decision to let Damen in, Laurent had not gone back on it. When the walls went up, it was with Damen inside them.’ can I gift CS Pacat a bouquet of roses/my undying gratitude/the deeds to my house/my firstborn/etc just for this line ALONE, I could actually cry

- Laurent pledging his love and loyalty for Damen to the statue of Damen’s mother, like how fucking Pure and Beautiful is that, and THEN saying they should visit Auguste’s statue/grave at Arles UUGGHHHHHHHHHH

- LAURENT USED TO TALK TO AUGUSTE’S GRAVE AND TELL HIM THINGS OH MY GOD MY POOR BABY COME TO MY ARMS IMMEDIATELY

- was there literally any part of the bath scene that didn’t kill me

- such a complete and utter reversal of the original bath scene in book 1

- Laurent attending Damen, doing everything he’s told, being more gentle than Damen ever thought he could be, tenderly washing the scars on Damen’s back, ‘healing something he hadn’t known needed to be healed’ HONESTLY JUST FUCK ME UP

- ‘You didn’t know how afraid I was of you?’

‘Of me? Or of yourself?’

‘Of what was happening between us.’ SCREAM

- LAURENT THROWING COLD WATER ON DAMEN, WHAT A PRECIOUS LITTLE SHIT, HE’S PLAYFUL AND MISCHIEVOUS AND HE GETS TO BE LIKE THAT WHENEVER HE WANTS NOW

- Laurent is learning wrestling!! from! Nikandros!!!!! I hope that is one of the forthcoming short stories I really do

- ‘‘The truth is you’re very sweet, aren’t you,’ said Damen’ SOBS

- they just walk around naked for a while??? amazing

- I’m not even going into the SWEET SCHMOOPY LOVEMAKING, like don’t even get me started

- DAMEN GOT LAURENT A HORSE, HE REALLY KNOWS HIS BOY

- someone knocking on the door when they are immediately post-coitus and Damen being like oH HERE WE GO because he knows exactly what Laurent is going to do 

- Damen’s retinue FINALLY showing up at the end, like how fucking far behind did he leave them, he and Laurent accomplished quite a bit in the time it took them to catch up

- it was perfect

- and I am dead

I don’t want to get in too deep with the buzzfeed unsolved les mis au except lol who am I kidding that’s what I do with everything LET ME PRESENT YOU WITH A SCENARIO:

- despite visiting many spooky scary places, joly and grantaire and whichever of their friends they drag along with them each time never find any definitive proof of ghosts or demons

- then they get a message from a fan in paris telling them there’s a reportedly haunted building on the Place Edmond Rostand, or historically the Place Saint-Michel, that they should totes check out

- they learn that this place is a burger restaurant now but that it used to be a place called the cafe musain and that a group of young revolutionaries supposedly died there during a failed uprising in 1832

- ‘lol what morons’ grantaire says as they go in after hours to investigate

- at first even joly’s having a hard time finding this place scary. it has a ball pit.

- but then. hey. hey. this place seems oddly. familiar??????

- grantaire shakes it off. ‘there’s an upper floor they use for storage, let’s go up there, it’ll be spookier and you can freak out like always’

- they head upstairs, it’s dark and kind of dusty up there and very very quiet

- joly insists he can smell gunpowder and for once grantaire doesn’t laugh at him because he’s too busy wondering why his mouth tastes like he’s been drinking too much cheap wine. both their ears are ringing, as if they’d stood too close to a gun being fired - or maybe a cannon??

- there’s an empty corner, for a moment grantaire is sure he sees the outline of a figure there, a figure or someone he knows

- in conclusion they don’t find any ghosts but UH OH FLASHBACKS and now they know definitively that reincarnation is a thing but unfortunately they can’t really say so on their show because no one will believe them

\o/