sentence-type-classifier icon indicating copy to clipboard operation
sentence-type-classifier copied to clipboard

Classify English sentences into assertive, negative, interrogative, imperative and exclamatory based on grammar.

Sentence-type-classifier

Classify English sentences into assertive, negative, interrogative, imperative and exclamatory based on grammar.

How to install

$ npm install sentence-type-classifier

Usage:

var SentenceTypeClassifier = require("sentence-type-classifier");

var classifier = new SentenceTypeClassifier();

var type = classifier.classify("I am a Javascript Developer.");
console.log(type);