Comments (8)
Did you truncate the method name on purpose? Shouldn't it be obscenity
?
Anyway yes I support this idea.
Though I (we) would have zero ability to review other languages.
Also we should keep in mind (perhaps even document) that while some words/phrases are just "bad" some are truly hateful/hurtful and that's hard to nail down (even in languages that you are familiar with).
from datafaker.
Good point, it is also a perfect case for a custom faker with their own yaml or whatever.
from datafaker.
Just a word of caution: we recently had a production issue with another faker library which was generating some offensive language which ended up in a customer demo, which was a bit of an unfortunate experience.
Also, I'd be hesitant to put words in which are too offensive, or subjective to offense such as racial references, I would prefer to keep this library as positive as possible, there's nothing from stopping people to write their own faker for cases like this.
from datafaker.
how about not only obscene words but also obscene expressions?
however yes, keeping it on a more positive side also makes sense
from datafaker.
how about not only obscene words but also obscene expressions?
What could possibly go wrong here....
I'm not sure what domains you work on, but in the domains where I work, showing these kind of results could possibly be very damaging to the business. There's nothing from stopping to build your own custom faker if you really need it, but let's keep Datafaker G or PG rated please.
from datafaker.
@snuyanzin @asolntsev if you're realllllllllly keen, you can always use Fallout quotes for the spam filtering:
datafaker/src/main/resources/en/fallout.yml
Line 109 in 5a4aa0f
from datafaker.
@bodiam Sorry, I don't understand how.
To test spam filter, I need some provider that stably generate obscene words.
Fallout quotes don't suite because only some of them contain obscene words. How can such a test stably work?
from datafaker.
Just use a custom provider with your own yaml, then there are no concerns for the project.
from datafaker.
Related Issues (20)
- Intermitted expressions failures during testing HOT 8
- Regexify method doesn't recognise "^" and "$" chars in datafaker before 2.2.0. HOT 7
- Remove public methods from `IdNumber` that are not intended to be directly called HOT 8
- How to specify country-specific setting, not language-specific? HOT 2
- Feature request: add support to generate a random PNG/SVG. HOT 1
- 2.3.0 Release HOT 13
- Password generation does not always contain a lowercase letter HOT 3
- Publishing docs works now HOT 1
- Memory leak in maps containing FakerContext as a key HOT 30
- Memory leak for seeded random use case HOT 3
- java.lang.ClassCastException for finance.credit_card provider with Enum argument in Faker expression HOT 5
- Problems with module-info.java with version 2.3.0 HOT 33
- New Project to improving tests HOT 9
- Locale specific generation performance degradation HOT 1
- Fix publishing of snapshots HOT 4
- Code coverage report is broken HOT 4
- Unable to resolve expression during build HOT 12
- Add weighted selection HOT 2
- Faker().locality().allSupportedLocales() returns empty when Datafaker is embedded in Spring Boot Uber JAR HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from datafaker.