Hacker News new | ask | show | jobs
by donohoe 5266 days ago
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?

2 comments

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.

A first approximation might just taking the simple permutation's such as

You can X Y <-> Y X you

and find the probability that it is an english sentence