The last time Hackerfall tried to access this page, it returned a not found error. A cached version of the page is below, or click here to continue anyway

Grumbles.js by knpwrs


Grumbles.js is a very simple library which can be used to determine when your user is upset by listening for when they grumble (read: shout swear words). It works via the experimental SpeechRecognition api currently available in the latest version of Chrome.



npm i -S grumbles


<script src=""></script>


const stop = grumbles(({ word, context, time }) => {
  console.log(time);    // The time the grumble was grumbled.
  console.log(word);    // The word which was grumbled.
  console.log(context); // The full phrase containing the grumble.
}, 'en'); // Language is optional and defaults to 'en'
stop(); // Call this if you ever want to stop listening.

Demo: Grumble Log

Grumble detected on {{grumble.time | moment "MMMM Do YYYY [at] h:mm:ss a"}}

Grumble: {{grumble.word}}


No Grumbles Detected

Note: your computer tries very hard to believe you're not grumbling at it. Try using a grumble in a sentence. For example, "Oi, what the f*** is this s***?" instead of just "F***!"

Your browser does not support the SpeechRecognition API. :(

Continue reading on