Re:Show HN: Backseat Writer – write like Shakespeare and others
by trevorah on Monday April 01, 2013 @10:37AM
(#5473250)
Opinions?
[ Parent
| on HN ]
Re:Show HN: Backseat Writer – write like Shakespeare and others
by andreasvc on Monday April 01, 2013 @12:54PM
(#5474270)
What is it supposed to do? I try to type a sentence but it is immediately garbled by random words. If there were two boxes, one for input and output, things wouldn't get mixed up, or perhaps a "Shakespearize" button. Right now the edit box is not really usable because the script interferes with normal editing.
EDIT: Another note, while the references to Shannon & Markov chain are correct, in NLP this would more commonly be referred to as a character n-gram model.
Re:Show HN: Backseat Writer – write like Shakespeare and others
by trevorah on Monday April 01, 2013 @01:52PM
(#5474666)
It's meant to interfere with your writing, like a backseat driver interferes with your driving. Your idea of separation is interesting, do you see it as a kind of translator?
Re:Show HN: Backseat Writer – write like Shakespeare and others
by andreasvc on Monday April 01, 2013 @04:04PM
(#5475531)
I imagine a backseat driver shouts suggestions, but does not take over the wheel; like the way autocomplete is there without preventing you from typing something else. It doesn't have to be a translator, but there should be some distinction between user input and what comes from the model, and the user should have the final say.
Re:Show HN: Backseat Writer – write like Shakespeare and others
by fruchtose on Monday April 01, 2013 @10:59AM
(#5473423)
It seems to be buggy? There were 9 JavaScript errors in the process of typing, "How do I compare thee to a summer's day?" (I know that's not the original text of the sonnet.)
Re:Show HN: Backseat Writer – write like Shakespeare and others
by trevorah on Monday April 01, 2013 @11:04AM
(#5473461)
Yeah, only listing the top 10 chars to write next results in a few misses. Its also bit of a pain to test a recursive function that uses random numbers.
Re:Show HN: Backseat Writer – write like Shakespeare and others
by fruchtose on Monday April 01, 2013 @11:38AM
(#5473704)
I can understand that, but in a web app like yours which is meant to be very responsive, I think you would be better served by handling misses rather than letting errors throw away the stack (so to speak) every time a miss happens.
Re:Show HN: Backseat Writer – write like Shakespeare and others
by trevorah on Monday April 01, 2013 @11:58AM
(#5473838)
Very true. I've just updated it now to handle misses. Its a bit of a ugly hack, but it stops the errors for now. You can check it out here - https://github.com/trevorah/backseat-writer/commit/b749d3154...
Re:Show HN: Backseat Writer – write like Shakespeare and others
by Shish2k on Monday April 01, 2013 @10:49AM
(#5473356)
So it's a full-sentence auto-completer? Interesting; would be nice if it would wait for a whole word (or at least a second without typing) before completing though
Re:Show HN: Backseat Writer – write like Shakespeare and others
by trevorah on Monday April 01, 2013 @10:53AM
(#5473383)
Good idea. I think waiting for a second would give a little more control to the typist.
Re:Show HN: Backseat Writer – write like Shakespeare and others
by DividesByZero on Monday April 01, 2013 @12:04PM
(#5473883)
Is this intended to produce 'sounds like' gibberish or structured sentences? Just curious at the end goal.
Re:Show HN: Backseat Writer – write like Shakespeare and others
by trevorah on Monday April 01, 2013 @12:28PM
(#5474066)
Gibberish I guess. Doing a lookahead for letters was how I started, and its kinda interesting to see how it turned out as a quick project. Storing the probabilities for each letter given a string prefix is the limiting factor, and took a bit of effort to get it to reasonable size for a browser. I think using words instead of letters may result in better sentences with the same amount of space though...
Re:Show HN: Backseat Writer – write like Shakespeare and others
by DividesByZero on Monday April 01, 2013 @01:16PM
(#5474424)
I think this is a really neat side project. It's almost like a chatbot where you drive. If you can get sentence structure working by doing intelligent stuff with the tokens it could be even cooler. What do you do fulltime?