comment-analyz-spp
v1.0.0
Published
Analyz your Text Comment for stop Bad comment text
Downloads
2
Readme
Comment-analyz
This is a JavaScript package that examines comments through an API and returns values that I will explain in more detail below.
Installation
Use the package manager npm to install Comment-analyz.
npm install Comment-analyz
Usage
for add to project use:
const AnalyzeCommentText =require('./');
or
import AnalyzeCommentText from "Comment-analyz";
in the index.js file you can find displayresult(), you can change the result massage in:
switch (data.label) {
case 'pos':
resultText = 'Posetiv Comment';
return resultText;
case 'neg':
resultText = 'negativ comment';
return resultText;
case 'neutral':
resultText = 'meutral coment';
return resultText;
default:
resultText = 'Hmmm, cant understand your comment';
return resultText;
}
Contribution
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.