Skip to content

specify language#22

Merged
JonPurvis merged 2 commits intomasterfrom
specify-language
Oct 6, 2024
Merged

specify language#22
JonPurvis merged 2 commits intomasterfrom
specify-language

Conversation

@JonPurvis
Copy link
Copy Markdown
Collaborator

@JonPurvis JonPurvis commented Oct 6, 2024

This PR adds the ability to be able to specify a language. By default, the check will loop over any files with the profanities directory, but personally, I really only care about words in the en.php file. I've had a couple of instances where words within words are picked up within other language files. By specifying en as the language, I can be sure that my codebase is only getting scanned against the correct file.

My use case is one of my applications references "Customer". The word "Customer" contains "Cu" which is listed as profane in the pt_BR.php file because in Portuguese, it means "ass".

@JonPurvis JonPurvis merged commit d661049 into master Oct 6, 2024
@JonPurvis JonPurvis deleted the specify-language branch October 6, 2024 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant