Live data from Hacker News

Twss.js

github.com

41–50 of 55 posts

Re: Twss.js

#41
We made our IRC bot respond to TWSS jokes, but ours was just a dumb match from a set of few thousand jokes that we scraped from offline. You can look at the code at: https://github.com/jfriedly/jenni

Now that I took Stanford's Machine Learning class though, I think I might just duplicate what this guy did for our bot.

Re: Twss.js

#44
post #5

Now I'm just waiting for someone to make a Twitter bot that randomly samples tweets and responds to them with this...

I tried to do this last year, but every single twss-related handle was taken. Don't believe me, look for yourself. I can't wait for the day when Twitter starts reclaiming unusued/squatted names (and have a pay for service that let's you claim it for life.)

Re: Twss.js

#46

Earlier quoted context omitted.

Sure, why not -- http://pulse.w3counter.com:8080/

It seems to be returning a lot of false positives, at least with the default options. "Good morning" = true, "How are you?" = true

Based on my linear algebra homework:

> "You need to use Gauss-Jordan elimination."

> That's what she said.

Re: Twss.js

#47

What exactly is Node.js specific about this?

Using exports, NPM package, and an executable that depends on /usr/bin/node? What's your point?

I just hate when people release JavaScript libraries that needlessly depend on specific platforms. For awhile that dependency was usually jQuery, then with the rise of server-side JavaScript it was the DOM in general, now it appears to be Node.js.

Just write "X for JavaScript", dammit.

That said, this doesn't appear to have any Node.js specific dependencies, it could be used in any CommonJS environment.

Re: Twss.js

#48
post #28

I'm still looking for a classifier that will take a phrase, determine if and what the "In Soviet Russia X Y you" response would be. Anyone?

I don't think that would be a classifier, or at least not reasonably. You could have "In Soviet Russie X Y you" for each X,Y as your classes, but that would be unreasonable.

Yakov Smirnoff is a structural joke. You would need to parse sentences, pattern match, transform it, and then do some kind of regression on the phrase to get its humor quotient.

The Stanford Parser for structural parsing, then some custom pattern matching and transforming code, might get you somewhere.

Re: Twss.js

#49

Earlier quoted context omitted.

Using exports, NPM package, and an executable that depends on /usr/bin/node? What's your point?

I just hate when people release JavaScript libraries that needlessly depend on specific platforms. For awhile that dependency was usually jQuery, then with the rise of server-side JavaScript it was the DOM in general, now it appears to be Node.js. Just write "X for JavaScript", dammit. That said, this doesn't appear to have any Node.js specific dependencies, it could be used in any CommonJS environment.

The reason I chose node over "browser-js" is because it was originally going to be a Twitter bot, but decided to simplify the GitHub repo into just a node module to make it more useful.

But you're totally correct. This could've easily be written in any language.

Re: Twss.js

#50

Earlier quoted context omitted.

Using exports, NPM package, and an executable that depends on /usr/bin/node? What's your point?

I just hate when people release JavaScript libraries that needlessly depend on specific platforms. For awhile that dependency was usually jQuery, then with the rise of server-side JavaScript it was the DOM in general, now it appears to be Node.js. Just write "X for JavaScript", dammit. That said, this doesn't appear to have any Node.js specific dependencies, it could be used in any CommonJS environment.

The source is open and it is really easy to port it to the browser, so this shouldn't warrant a complaint. Each one works with what he feels more comfortable with.
Post reply on HN