Genealogy

Util to deal with genealogical data.

License

License

GroupId

GroupId

com.github.rahulsom
ArtifactId

ArtifactId

genealogy
Last Version

Last Version

1.3
Release Date

Release Date

Type

Type

jar
Description

Description

Genealogy
Util to deal with genealogical data.
Source Code Management

Source Code Management

https://github.com/rahulsom/genealogy.git

Download genealogy

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.rahulsom/genealogy/ -->
<dependency>
    <groupId>com.github.rahulsom</groupId>
    <artifactId>genealogy</artifactId>
    <version>1.3</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.rahulsom/genealogy/
implementation 'com.github.rahulsom:genealogy:1.3'
// https://jarcasting.com/artifacts/com.github.rahulsom/genealogy/
implementation ("com.github.rahulsom:genealogy:1.3")
'com.github.rahulsom:genealogy:jar:1.3'
<dependency org="com.github.rahulsom" name="genealogy" rev="1.3">
  <artifact name="genealogy" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.rahulsom', module='genealogy', version='1.3')
)
libraryDependencies += "com.github.rahulsom" % "genealogy" % "1.3"
[com.github.rahulsom/genealogy "1.3"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

Genealogy

Java library to generate names for people based on distributions inferred from US Census data for 1990 and 2000.

Sources

The first names are gathered from the 1990 census. The last names are gathered from the 2000 census.

Usage

This is the old API, low level but (slightly) faster. It has no support for race.

NameDbUsa instance = NameDbUsa.getInstance();
String firstName = instance.getMaleName();
String lastName = instance.getLastName();

String welcome = "Hello " + firstName + " " + lastName;

System.out.println (welcome);

This is the new API, high level but with great support for race.

NameDbUsa instance = NameDbUsa.getInstance();
Person person = instance.getPerson();
String description = person.getFirstName() + " " +
        person.getLastName() + " is of race '" +
        person.getRace() + "' and gender '" +
        person.getGender() + "'.";
System.out.println (description);

If you want consistent names, this is an option

long l = 42;
Person person = instance.getPerson(l);

If you want to download the library from Sonatype, add this to your dependencies section:

com.github.rahulsom:genealogy:1.3

To browse the latest builds, you can see MavenRepository. It also has instructions for Maven, Gradle, Ivy, sbt, etc.

And add this to your repositories section:

https://oss.sonatype.org/content/groups/public

You can browse latest snapshots on:

http://oss.sonatype.org/content/repositories/snapshots/com/github/rahulsom/genealogy/

Builds

This project is being built on travis. See https://travis-ci.org/rahulsom/genealogy It gets automatically deployed to Sonatype OSS.

Build Status Dependabot Status

Versions

Version
1.3
1.2
1.1
1.0