A node.js module that checks a sentence to see if you can reply 'that's what she said'

The title says it all. This node.js module by Daniel Rapp takes a sentence and, using either a Naive Bayes classifier (the default option) or a K-nearest neighbors algorithm, determines whether you can say ‘that’s what she said’ in response.

A word of caution: this module hasn’t been touched for at least 8 years and, according to some of the issues, there are biases towards shorter sentences. But that’s all the more reason to make it better if you have nothing better to do. It can’t be that hard, right…

(That’s what she said?)

(via Kottke.org)

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.