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

Reading multiple files #6

Open
danesinoo opened this issue Jan 7, 2023 · 2 comments
Open

Reading multiple files #6

danesinoo opened this issue Jan 7, 2023 · 2 comments
Labels
feature New feature

Comments

@danesinoo
Copy link

I have to say it wasn't hard at all to get, roughly, what the code was doing, and I appreciate it very much.
I have a suggestion, I find it interesting to have a function which reads a file and it assigns all the words in itself to a specific Type. It actually is what you're doing. My suggestion is to implement a specific funcition which does it, so you can easly add many new words. I am devoloping an app which will come out in Italy, that is the reson why I needed to add new words ;)

@finnbear
Copy link
Owner

finnbear commented Jan 7, 2023

Hi 👋

I do want to add more customization options. Right now, it is technically possible to use the customize feature flag and use the add_word function that it enables. Did you want to use the exact same format I use i.e. in src/profanity.csv?

@danesinoo
Copy link
Author

Yes, precisely, tough I would prefer the src/safe.txt over the src/profanity format. Then you can add one file at the time and for each file you assign a different Type, here I mean the class you find in src/typ. Otherwise you would need to specify all the values of each word one by one

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

No branches or pull requests

2 participants