English 中文(简体)
Fantasy names database
原标题:

I am building a demo dataset for my webapp. I would like thousands of "real looking" names. They should not be names of famous people or fiction heroes or names that will evoke associations. They should all have various and different sounding but realistic male and female names and surnames.

Birth dates and other data can be randomly generated, but right now I am stuck with the names issue. Do you have any creative ideas for this?


UPDATE: Dave is the Winner

Sample data using the tool he suggested, identitygenerator.com (very user friendly and powerful tool):



mysql> select name, sex, dob from Customer order by rand() limit 30;
+-------------------+---------+------------+
| name              | sex     | dob        |
+-------------------+---------+------------+
| Seth Copeland     | male    | 1958-03-02 | 
| Nomlanga Short    | female  | 1993-09-15 | 
| Cheryl Kerr       | female  | 1962-05-14 | 
| Ralph Murphy      | male    | 1984-07-14 | 
| Whilemina Sparks  | female  | 1975-08-07 | 
| Bernard Atkins    | male    | 1953-02-23 | 
| Kane Lowery       | male    | 1964-02-24 | 
| Victor Johnson    | unknown | 1993-05-31 | 
| Lawrence Powers   | male    | 1965-12-24 | 
| Arsenio Caldwell  | male    | 1965-06-29 | 
| Beatrice Espinoza | female  | 1976-01-09 | 
| Gil Herring       | unknown | 1992-10-09 | 
| Nelle Rocha       | female  | 1956-02-29 | 
| Chantale Benson   | female  | 1969-04-27 | 
| Katell Harris     | female  | 1976-03-14 | 
| Rajah Kline       | unknown | 1974-01-19 | 
| Quynn Pennington  | unknown | 1950-06-22 | 
| Abraham Clemons   | male    | 1982-07-14 | 
| Coby Bird         | male    | 1989-03-14 | 
| Caryn Buckner     | unknown | 1979-12-01 | 
| Kenyon Sheppard   | male    | 1963-02-19 | 
| Dana Chandler     | female  | 1958-05-25 | 
| Dara Hogan        | female  | 1983-10-22 | 
| April Carroll     | unknown | 1954-03-10 | 
| Joan Stone        | female  | 1964-01-31 | 
| Ella Combs        | female  | 1993-11-19 | 
| Sacha Becker      | unknown | 1964-01-06 | 
| Gray Palmer       | male    | 1981-08-06 | 
| Marny Rivers      | female  | 1953-06-02 | 
| Dawn Hull         | female  | 1989-10-05 | 
+-------------------+---------+------------+
30 rows in set (0.02 sec)

最佳回答

There are websites which will generate fake names for you. I usually use fakenamegenerator.com but I think that only does one person at a time. identitygenerator.com has a tool which which will generate a large number of random names - and other personal information - downloadable in various formats.

问题回答

http://www.generatedata.com/ Can generate pretty good looking data for a variety of column types. Exports to a variety of formats, including SQL Insert Scripts.

Here s what I did for a similar situation.

I made an array with 50-60 firstnames. I just used the firstnames of people I know, people I work with, etc.

I made another array of syllabes from last names (again from people I know, people I work with).

Then to create a name I would randomly pick a firstname from the first array, then randomly pick and concat 2 syllabes from the second. That s it.

You could do some tricks with grep and extract names from one of the baby names websites. It would require some hacking on your part but at least the names will sound real.

You can generate fictional names for any given country code with https://parser.name. They offer a free API that return JSON object that you can use. I ve used it to create a development databases with fictional usernames.





相关问题
what is wrong with this mysql code

$db_user="root"; $db_host="localhost"; $db_password="root"; $db_name = "fayer"; $conn = mysqli_connect($db_host,$db_user,$db_password,$db_name) or die ("couldn t connect to server"); // perform query ...

Users asking for denormalized database

I am in the early stages of developing a database-driven system and the largest part of the system revolves around an inheritance type of relationship. There is a parent entity with about 10 columns ...

Easiest way to deal with sample data in Java web apps?

I m writing a Java web app in my free time to learn more about development. I m using the Stripes framework and eventually intend to use hibernate and MySQL For the moment, whilst creating the pages ...

join across databases with nhibernate

I am trying to join two tables that reside in two different databases. Every time, I try to join I get the following error: An association from the table xxx refers to an unmapped class. If the ...

How can I know if such value exists in database? (ADO.NET)

For example, I have a table, and there is a column named Tags . I want to know if value programming exists in this column. How can I do this in ADO.NET? I did this: OleDbCommand cmd = new ...

Convert date to string upon saving a doctrine record

I m trying to migrate one of my PHP projects to Doctrine. I ve never used it before so there are a few things I don t understand. In my current code, I have a class similar to this: class ...

热门标签