Skip to content

A node.js "that's what she said" classifier

Notifications You must be signed in to change notification settings

rwaldron/twss.js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TWSS

This is a node.js module that classifies if a sentence can be replied with "that's what she said".

Installation

npm install twss

Usage

var twss = require('twss');

twss.is("Nice weather we're having today") // > false
twss.is("Can you make it harder?")         // > true
twss.is("You're not going fast enough!")   // > true

You can also change algorithm from the default naive bayes classifier (nbc) to a k-nearest neighbor algorithm (knn)

twss.algo = 'nbc';
twss.algo = 'knn';

About

A node.js "that's what she said" classifier

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published