Genealogy

Util to deal with genealogical data.

Лицензия

Лицензия

Группа

Группа

com.github.rahulsom
Идентификатор

Идентификатор

genealogy
Последняя версия

Последняя версия

1.3
Дата

Дата

Тип

Тип

jar
Описание

Описание

Genealogy
Util to deal with genealogical data.
Система контроля версий

Система контроля версий

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

Скачать genealogy

Как подключить последнюю версию

<!-- 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"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

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

Версии библиотеки

Версия
1.3
1.2
1.1
1.0