Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decide how to handle swear word list #6

Open
gmemstr opened this issue Oct 8, 2018 · 3 comments
Open

Decide how to handle swear word list #6

gmemstr opened this issue Oct 8, 2018 · 3 comments

Comments

@gmemstr
Copy link
Owner

gmemstr commented Oct 8, 2018

Currently all the words are committed in the repository as swearwords.txt, I want to find a better solution for removing the need to have this committed - either downloading on the fly wordlists from somewhere (which could allow for updating) or something else.

Just want to get the conversation going and see what people think is the best solution.

@wenzelmkay
Copy link

So as of right now, if someone wants an updated swearlist, they have to update the NPM package? Are you wanting them to be able to have access to an updated list without having to update the NPM package?

I guess my question would be what is the use case for the no-swears package. I have some ideas but would like more info so I can help you brainstorm!

@gmemstr
Copy link
Owner Author

gmemstr commented Oct 9, 2018

Yeah, currently the only way to update it would be updating the npm package. I'd rather have it behave somewhat like an adblocker where it can update the list on it's own - plus we'd also have an open wordlist for anyone else to use.

@InSertCod3
Copy link

InSertCod3 commented Oct 9, 2018

You can host on a external server but instead of using a plain (.txt) file you can use a json structure and make GET requests like "https://someserver.com?q=swearword"

which can return like:
{
"status": "ok",
"is_swear": "false",
"word": "swearword"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants