npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

this-is-probably-ok-to-say

v1.0.100

Published

wrapper around iscool

Downloads

59

Readme

this-is-probably-ok-to-say

AKA tipots

a stern reproachful glare

TW: this module is meant to filter out problematic language, as such there may be triggering content in the source code and/or dependencies. index.js is safe, but badSequences, customList, and sensitiveWords are probably not good files to read.

TODO: make a tool that lets u add words to these lists without looking at the lists themselves

ABOUT WORD FILTERING

My main use for this module is twitter bots. I don't want my bots saying bad things, or interacting with users that are saying bad things. There are plenty of words out there and many more to be created, so filtering out vast swaths of them is not really an issue.

Some of the words are just cusses. So yeah, that might filter out awesome tweets like "FUCK CAPITALISM", but it will also mean that my bots never tweet something like "FUCK {group of people}".

On that note, some of the words are just names for groups of people! For a while I wondered whether in the course of trying to avoid saying messed up stuff I was effectively erasing these groups from the world of my bots.

INSTALL

npm install this-is-probably-ok-to-say --save

USE

var tipots = require('this-is-probably-ok-to-say')
tipots('oh wow hi this is how you use the tipots module')
=> true // this string does not seem to contain problematic language!

INFO

this module is a wrapper around iscool which is itself a wrapper around wordfilter so in turn I hope that you will write a wrapper around tipots.

in addition to running iscool/worfilter on a string, tipots also has an expanded filter list of words to avoid, as well as word sequences that might be ok when broken up but are not cool together (i.e, "electric chair"), while also running sentiment analysis and rejecting any strings that have a very negative score and also mention a sensitive word such as a religion or ethnicity.

CONTRIBUTING

If in the course of using tipots you find that it lets through a word or string that is not cool, please open an issue or make a PR so we can change that! This is the file of bad sequences of words and this is the file of just bad words though :warning: both of these files are obviously full of problematic language :< Words that are usually ok to tweet about but that might be innapropriate in a very negatively charged tweet can go in sensitive words

NPM

THANKS FOR ALL THE MODULES

iscool

wordfilter

offensive.py by Molly White