Show HN: Grumbles.js – Detects when your users swear out loud
knpw.rs
knpw.rs
https://github.com/knpwrs/grumbles.js/blob/master/src/grumbl...
It's also interesting to see which words Google determines is bad, and which they mysteriously don't. The API does real time processing of sentence structure and will return "<three asterisks> on me" and "cum to the park" correctly, based on intent. (Sorry for the offensive speech!)
For a side project I needed to find every single English word/phrase the API would filter. Stumbled upon that in amazement.
(Side note: speaking a long list of bad words into a microphone very slowly was the most fun QA I've done)
Depending on what you use it on, this could render the service useless. Imagine using it to, I don't know, trying to identify Pulp Fiction sentences against a corpus of scripts. It would fail spectacularly.
Another example context on where this could fail very quickly is when considering people from other languages, e.g., if I'm not wrong, saying "Jesus!" might be impolite in (some contexts of) the US. In Spain, we say "Jesus!" when you sneeze, instead of "Bless you!" (and, in general, we are outrageously foul-mouthed compared to the US).
> In Spain, we say "Jesus!" when you sneeze, instead of "Bless you!" (and, in general, we are outrageously foul-mouthed compared to the US).
..it may sound as if "¡Jesús!" ("Bless you!") is foulmouthed - when in fact is something a four-year-old would typically say.
> My original idea was going to involve a dependency on one of the bad words lists available on npm, but then I saw the API censors said words and thought, "Oh, that's easy."
Reminds me of those rumors that swearing at an automated phone system will usually cause it to direct you to a human operator. I've never given it a try myself to see if it's true.
HURRAY! And, it never shall.
See for example George Carlin's "Seven dirty words" as returned by the SpeechRecognition demo https://cl.ly/3A1F0r3U1H1D/Screen%20Shot%202016-09-03%20at%2...
(The anti-feature being the enforcement of American prudity onto what should be an indifferent API.)
We work with a decent number of older, non technical people, and our product team would love to be a fly on the wall to hear where they're frustrated in the product. Obviously due to security concerns we could never implement something like this, but in a perfect world this would be a killer feature.
(Just kidding, for those who can't detect sarcasm. That's a killer idea - build an app that detects sarcasm in text, deploy on HN, have a happier community.)
Cool tech. Uncool use.
Any links are appreciated
Is there a southern grandma setting?
You only need to per-visit when it's an insecure localhost endpoint or something similar IIRC. (or if you have an extension which clears that setting every page load)