Faker.js: Coherency of generated data

Created on 17 Feb 2014  路  7Comments  路  Source: Marak/faker.js

using var randomCard = Faker.Helpers.createCard();, I get

{ name: 'Idell Raynor IV',
  username: 'Domenica',
  email: '[email protected]',
  ...

Since all generated data is taken from a pool of parts, wouldn't it be nice to have moderately coherent data, like '[email protected]' for Idell Raynor ?

Feature Request

Most helpful comment

Would also be good if

  • the card generated indicates if the person is a male or female
  • had the option to first_name / last_name as separate properties

All 7 comments

more information.

Yeah, would be great to have some simple way of getting an email based on the name. Maybe this could even be an additional parameter to the email function.

@Offirmo -

I agree.

Adding a coherency / seed to generate believable contact cards is great feature.

If you can provide any code or algorithm to implement this change I will gladly review and help merge into faker. I currently don't have any ideas for a working solution.

@Offirmo -

I have added the ability to pass in arguments to faker.internet.userName, faker.internet.email, and faker.name.findName.

This grants basic ability for contextual user data. More improvements could be made for address / location.

Leaving open for now.

Would also be good if

  • the card generated indicates if the person is a male or female
  • had the option to first_name / last_name as separate properties

Closing for inactivity

male/female would be really nice for coherency.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

HoustonBass picture HoustonBass  路  6Comments

kevinburke picture kevinburke  路  5Comments

developdeez picture developdeez  路  5Comments

Aleyasen picture Aleyasen  路  6Comments

ghost picture ghost  路  4Comments