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

Generate a word from English dictionary instead of lorem list of words #143

Open
LordNoteworthy opened this issue Jun 15, 2023 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@LordNoteworthy
Copy link

LordNoteworthy commented Jun 15, 2023

Is your feature request related to a problem? Please describe.
I need to generate real words from a dictionary to use inside a security project. The problem with the hard-coded list in `Lorem().Text()`` that it can be easy identified as fake data

I can understand that faker's point is to generate fake data, though it will be useful to also give an option to generate more realistic fake data when it comes to strings.

Describe the solution you'd like
fake.Lorem().Word(min-length?) -> "apple"

Describe alternatives you've considered
Completely random slice of letters or a ransom elements of lorem texts array is not suitable for my use case.

Check out this: https://raw.githubusercontent.com/tjarratt/babble/master/babble_windows.go

We don't need to grab the whole words from the dictionary as it will increase significantly the package size, for example words under 4 letters can be dropped.

@LordNoteworthy LordNoteworthy added the enhancement New feature or request label Jun 15, 2023
@dhfherna
Copy link

I have an idea using external APIs and I want to work on this issue, can you assign me?

@jaswdr
Copy link
Owner

jaswdr commented Oct 25, 2023

@dhfherna sure, go ahead

@dhfherna
Copy link

Hi @jaswdr, I was reviewing the PR with my proposal to solve this issue, however, upon review I see that it did not pass the deepsource review, I identified some solutions that apply in recent versions of Go, that means that for older versions the compilation fails. In this case what can I do?

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

3 participants