Giter VIP home page Giter VIP logo

profanity.dev's People

Contributors

joschan21 avatar shadabiiitnr20 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

profanity.dev's Issues

Add a README.md file at root

I am a new contributors and it would be nice to others new newcomers if they could can quickly understand the project and get started without needing to ask questions or search through code.

I think it is a key tool for a project like this. Maybe someone is already working on this, but I didn't found it in my quick tour.

Thanks!

Use form for the demo

Use form for the demo so as to enable checkProfanity mutation to be run when the user presses the enter key.

Removed <img/> element related warnings

Found below 2 warning while running on local -

  1. Using <img> could result in slower LCP and higher bandwidth. Consider using <Image /> from next/image to automatically optimize images.
  2. img elements must have an alt prop, either with meaningful text, or an empty string for decorative images.
Screenshot 2024-04-20 at 11 23 07 PM

[SUGGESTION] Allow configuration

Allow developers to configure it, such as allowing them to add custom allowed or blocked words, and disable specific categories from being flagged (as an example, allowing fuck this, but not allowing racial slurs)

here are some workarounds that should be worked on!

swear words with spaces in between them, dont work.
image

the reason for this is that they naturally score lower, as shown here:
image
image

alsowhenwordsaretogether:
image

and also ascii text isnt supported:
image
image
image
etc etc... i used https://lingojam.com/SpecialText for this

other languages:
image
^ tbf turkish is obscure but- still...

random letters? honestly i dont know what the correlation is, but if i find one ill update it:
image
image
image

theres a million ways to cheese this, i think this project would be awesome if you kept on adding to it!
if nobody plans on implimenting it, i could give it a try :p

Unclear LICENSE

https://choosealicense.com/

I was unable to find a LICENSE file at the root or in the sub project folders. I would appreciate it if the license terms for this code were clarified in a standard LICENSE file 😜

Quote from https://choosealicense.com/no-permission/

No License

When you make a creative work (which includes code), the work is under exclusive copyright by default. Unless you include a license that specifies otherwise, nobody else can copy, distribute, or modify your work without being at risk of take-downs, shake-downs, or litigation. Once the work has other contributors (each a copyright holder), “nobody” starts including you.

tldr nobody can use the code without you giving them permission via a LICENSE of some kind 🤷‍♂️ and right now there is no clear LICENSE 😭

Multi-language support

While checking out PR #11 I realized that supporting multi languages should be fairly easy to implement, however I would allow an optional langs parameter to pass a list of languages (eg eng,deu,ita) and split each language in its own training data.

If no langs param is passed, then all are checked.

Why? Well:

  1. we don't want to update/rebuild the whole vector/dataset if we add a new language or update an exisiting one
  2. we don't want to overload the server if we know that a certain site is going to use mostly one or two languages (eg, german and english)
  3. it makes the code more sustainable (not just a single huge .csv file with a bunch of commits)

Support for text symbol

When I use text symbol "f" which looks almost the same as "f" the app doesn't detect it.
Would be nice if App treat that symbol same as character f

word "suck" is flagged as highest profanity

Found a comment on the recent Youtube video that mentioned sending the input "mosquitoes suck blood" is flagged as 1.000 profanity. Tried this a few more times and noticed that the word "suck" is the culprit. Funnily enough, the word "sucks" is not flagged like this.

Should we whitelist this word along with the several others that are whitelisted right now?

Screenshot 2024-04-20 at 6 39 50 PM Screenshot 2024-04-20 at 6 39 59 PM

Feature Request: Add PDF File Input and API Support

Description
Currently, the website and API only supports text input in the form of JSON. However, it would be beneficial to have the ability to input PDF files and send them through the API for processing.

Proposed Solution

  1. PDF File Input: Add a new file input field or drag-and-drop area to allow users to upload PDF files directly into the application.

  2. API Support for PDF Files: Extend the existing API endpoints to accept PDF file uploads and process them accordingly. This could involve converting the PDF to text or images, depending on the use case.

@joschan21, I would like to work on this if you approve of this feature.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.