Calm.js
Check if person is calm or not in javascript.
Inspired By:
Loud irate people everywhere!
Usage:
Include script and call isCalm(text, threshold);
Parameters are text
and threshold
Threshold sets how strict you want to be with people's execessive use of FUCKING CAPS.
Default threshold
is 5
// AHHHHHHHHHHHHHHHHHHHHHHHH ; // returns false // threshold of 2 all caps words in a row ; // returns false; // this person is calm enough ; // returns true; // real world example: var isNegativeNancy = ; ifisNegativeNancy ;