Jukilum / ahnen.js

A set of javascript functions for interpreting Ahnentafel numbers for genealogy. Compatible with, but does not require Node.js.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ahnen.js

A set of javascript functions for interpreting ahnentafel numbers for genealogy. Try it out here.

Works with node.js. A standalone version of the code is available in the Standalone folder.

Functions

ahnen.sex(int)

Returns string Male or Female associated with the Ahnen number int.

ahnen.line(int)

Returns string 'rootPerson', 'fathersLine', 'mothersLine', or 'undetermined'.

ahnen.fullLine(int)

IMPORTANT! In this function M means Mother and F means Father, NOT male and female.

Returns an array of the relationship between ahnen number int and ahnen number 1. For example, the ahnen number 10 would return the array [M, F, M], meaning the root person's mother's father's mother.

About

A set of javascript functions for interpreting Ahnentafel numbers for genealogy. Compatible with, but does not require Node.js.

License:MIT License


Languages

Language:JavaScript 100.0%