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

Curses/profanities in dutch realText #891

Open
TomasDePomas opened this issue Jul 8, 2024 · 3 comments
Open

Curses/profanities in dutch realText #891

TomasDePomas opened this issue Jul 8, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@TomasDePomas
Copy link

Summary

The source for dutch realtext includes translations for gdamn and gdamned. Since we use the library to seed a acceptance that we wish to share with customers, this is not ok for us. For now the workaround is setting the locale to Flemish.

Versions

Version
PHP 8.2.13
fakerphp/faker 1.23.1

Self-enclosed code snippet for reproduction

return [
    'title' => fake()->realText(),
]

Expected output

Something that does not contain profanities

Actual output

[
    "title" =>  "Een man die geld kwam ophalen voor de Partijkas, dan gaf hij hun een 
sigaar op, van mij, een sigaar in z'n kamer, hardop:\"Een groot dichter zijn en dan vallen, 
Godverdomme.\" "
]
@pimjansen
Copy link

You have a proposal for something else? Thing is that is always opiniated in some sort.

You could always define your own provider foe this

@pimjansen pimjansen added the enhancement New feature or request label Jul 8, 2024
@artifex-media
Copy link

You have a proposal for something else? Thing is that is always opiniated in some sort.

You could always define your own provider foe this

I completely agree with @TomasDePomas, it's not okay - I'm not sure if the text comes from another library but if not, I would suggest something like:
realText($maxNbChars = 200, $indexSize = 2, $textType = 'formal')

Being able to have a formal (or non-cursing...) text by default and being able to switch it if a non-formal text is allowed.

@bram-pkg
Copy link
Member

It is indeed from a public domain book I believe. Do you have suggestions for any public domain book we can use that is available in plain text?

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

No branches or pull requests

4 participants