relationship

A Chinese kinship calculator that works out the right title for a relative from a chain of family relations. It accepts regional variants of terms and helps avoid confusion at family gatherings.

Share on XLicense: MIT

Overview

This is a Chinese kinship calculator. You describe a relative as a chain of family relations, and it works out the correct title to use, which helps at family gatherings when relations are distant. The input accepts regional variants of terms, and it can also look up titles in reverse. The script library runs in browsers and in Node.js and is installed from npm as relationship.js. Demo pages for desktop and mobile are linked.

Key features

  • Computes the title for a relative from a chain of relations
  • Accepts regional and informal variants of family terms
  • Reverse lookup, shortest relation and relation chain modes
  • Works in browsers and Node.js via npm relationship.js

Best for

Developers building family tree or greeting tools for Chinese kinship, and anyone unsure what to call a relative.

Upstream
mumuy/relationship
Fork on GitHub
Guo-astro/relationship
Upstream stars
3.7k
Category
Apps and everyday utilities
Language
JavaScript
License
MIT
Forked
2025-12-13
Sync status
In syncLast synced 2026-09-29