This is an example using a set of different libraries to preform some basic analysis on text.
To get started run npm install
to install the needed dependency. After that you can run node index.js
.
Output
-------------------------------------
I'm selfish, impatient and a little insecure. I make mistakes, I am out of control and at times hard to handle. But if you can't handle me at my worst, then you sure as hell don't deserve me at my best.
--- Marilyn Monroe
Word count: 44
Sentence count: 3
Syllable count: 55
Sentiment....
score: -14 comparative: -0.34146341463414637
Flesch score: 86.19833333333335
Flesch-Kincaid score: 4.879999999999999
-------------------------------------
Below are a list of packages this example relies on.