-
-
Notifications
You must be signed in to change notification settings - Fork 950
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
Make internet.avatar()
sex or gender aware
#2173
Comments
Thank you for your feature proposal. We marked it as "waiting for user interest" for now to gather some feedback from our community:
We would also like to hear about other community members' use cases for the feature to give us a better understanding of their potential implicit or explicit requirements. We will start the implementation based on:
We do this because:
|
see also discussion at #465 |
interner.avatar()
sex or gender awareinternet.avatar()
sex or gender aware
It would been good to have both
or introduce real types rather than enumerated types ?
and for
Then to have a |
Bear in mind locales (we want "male" and "female" in different languages) and the need for this to work easily when using vanilla JavaScript as well as typescript. |
Gender pronouns would be too. |
We do have an open issue for pronouns, if that interests you you can upvote #1248 |
Gender from |
The code you are showing only works for English. For that reason we have introduced a method |
Note this can now be achieved by using |
Clear and concise description of the problem
I am using Faker to generate fake user profiles. I really appreciate the fact that I can give it a
sex
attribute to theperson.firstName()
so that it would give me feminine or masculine name.However, one issue I have is I got a user who's name is John Franken but the avatar that was attached to this person is a young blonde lol. There isn't a way to make a wholistic "fake profile" without a semi-consistent image-to-name connection.
Suggested solution
Pass in
sex
an an argument to theavatar()
method.I understand some images can fit anything, but there are some obvious candidates as well. (see: https://cloudflare-ipfs.com/ipfs/Qmd3W5DuhgHirLHGVixi6V76LhCkZUz6pnFt5AJBiyvHye/avatar/1183.jpg)
Alternative
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: