Apparently it's going to be awhile before computers can channel the J.K. Rowling magic.
Max Deutsch, a product manager at software company Intuit, fed a computer the first four Harry Potter books, and asked it to churn out a similar portion. You can reproduce the results at home by carefully cutting each word out of a Potter book, flinging them around your living room, and randomly taping them together.
While the algorithm's chapters put together sentences (somewhat) properly, the content reads as if Rowling was under the influence of some seriously hallucinogenic basilisk venom.
It's tough to pick a favorite phrase from all the loopiness. "Harry collected fingers once more, with Malfoy," makes it sound as if the Potter clan has fallen into a "Hostel" sequel. "Shall I bad stuff I'd need it there and I've been caught after next to us..." is something Draco might slurringly deliver after a late night at a north London hotel bar.
And we don't even want to know what was going on with "Ron didn't even upset her little ingredients on the toilet."