Sources & method

Every rule in this engine has a book behind it

Most calculators hand you a chart and ask you to trust it. This page does the opposite: it takes the seven rules our engine runs on, one at a time, and shows you the classical text each one comes from — the original passage, our translation, and exactly what the code does with it.

The sources run from the Eastern Han to the Qing: Wang Chong's Lunheng (c. 80 CE) for the twelve animals, Sima Qian for the year's start, the Yuanhai Ziping for luck cycles and the late-night hour, Shen Xiaozhan's Ziping Zhenquan for month-command structure, the Qiongtong Baojian for climate remedies, and the Sanming Tonghui for the supporting stars.

Two honesty markers run through every entry. A passage marked 原文 · Verbatim is quoted word for word from the classical text and was checked against the source before publishing. A passage marked 要义 · Paraphrase means we could not verify the exact wording across editions, so we state the rule in our own words and say so — the same distinction we make everywhere else on this site, including our worked celebrity charts.

And one thing this page is not: a claim that old makes it true. Provenance means you can check the reasoning, not that the reasoning is science. Readings here are offered as a cultural and reflective exercise — that disclaimer does not soften anything above it.

1 · The twelve animals, branch by branch

《论衡》 Lunheng · 王充 Wang Chong · Eastern Han, c. 80 CE — 物势 chapter, with the dragon supplied by the 言毒 chapter

寅,木也,其禽虎也。戌,土也,其禽犬也。丑、未,亦土也,丑禽牛,未禽羊也。……亥,水也,其禽豕也。巳,火也,其禽蛇也。子,亦水也,其禽鼠也。午,亦火也,其禽马也。

原文 · Verbatim — 物势篇

辰为龙,巳为蛇。辰、巳之位在东南。

原文 · Verbatim — 言毒篇 · supplies the twelfth animal

Translation: "Yin is wood; its creature is the tiger. Xu is earth; its creature is the dog. Chou and Wei are also earth — Chou's creature is the ox, Wei's is the goat… Hai is water, its creature the pig. Si is fire, its creature the snake. Zi is also water, its creature the rat. Wu is also fire, its creature the horse." The Wushu passage lists eleven animals; the dragon comes from the Yandu chapter: "Chen is the dragon, si is the snake; their positions are in the south-east." Together they are the earliest complete set on record matching today's twelve, animal for animal and branch for branch.

In the engine: the branch-to-animal table is a direct restatement of this mapping — nothing added, nothing re-derived. You see it in every card code prefix, on the twelve sign pages, and across the 120-year table on zodiac-years.html.

Wang Chong was quoting a folk scheme to argue against it — the passage is sceptical, not devotional. That suits us: we publish the mapping as arithmetic, and we keep his scepticism.

2 · The year turns at Lichun, not at the lunar new year

《史记·天官书》 Shiji, Treatise on the Celestial Offices · 司马迁 Sima Qian · c. 100 BCE, and 《渊海子平》 Yuanhai Ziping · 宋 Song dynasty

立春日,四时之始也。

原文 · Verbatim — 天官书

正月建丙寅,初一日立春后一日生男,顺数至二月节惊蛰……

原文 · Verbatim — 渊海子平·论起大运法 · the worked examples count time from Lichun

Translation: "The day of Lichun is the beginning of the four seasons." And in the Yuanhai Ziping's own worked examples, a birth in the first month is counted from Lichun, the first of the month, forward to the next term — the year and the month both pivot on the solar term, not on the moon.

In the engine: the year pillar switches at the exact moment of Lichun (solar longitude 315°), computed per year — not on 1 January, not at the lunar new year. Folk tradition often uses the lunar date instead, which is why roughly one person in twelve, born near the boundary in January or February, carries the wrong animal on their paperwork. The zodiac-years table gives the exact Lichun time for every year from 1926 to 2045, so you can check your own.

Both boundary conventions exist in the wild. Ours follows the solar-term line, which is what the chart arithmetic is built on — and we say which one we use, in the open.

3 · The month commands the pattern

《子平真诠》 Ziping Zhenquan · 沈孝瞻 Shen Xiaozhan · Qing, Qianlong era

八字用神,专求月令,以日干配月令地支,而生克不同,格局分焉。

原文 · Verbatim — 论用神

Translation: "The useful god of an eight-character chart is sought in the month command alone: match the day stem against the branch of the month, and as the generating and overcoming differ, the pattern divides." In plain terms: the month branch — set by the solar term in force at birth, not by the calendar page — is the organising centre of the whole chart.

In the engine: the structure step reads the month branch first, exactly as this line directs: it decides which pattern a chart forms (or fails to form), and every downstream judgement inherits from it. This is also why a missing birth hour does less damage than people fear — the month command survives it, which is the basis of our three-pillar celebrity charts.

4 · Luck cycles: three days to a year

《渊海子平》 Yuanhai Ziping · 宋 Song dynasty — 论起大运法, On Setting the Luck Cycle

凡起大运,俱从所生之日,阳男阴女顺行,数至未来节。阳女阴男逆行,数已过去节,但折除三日为一岁。

原文 · Verbatim — 论起大运法

Translation: "To set the luck cycle, always count from the day of birth. A yang-year male or a yin-year female counts forward to the coming term; a yin-year male or a yang-year female counts back to the term just past. Reckon three days as one year."

In the engine: the distance from the birth moment to the nearest solar term is measured in days and divided by three — the remainder becomes months, not a rounded-up year. Direction follows the year stem's polarity and the native's, per the rule above. The result is the nine-step rhythm diagram in every full report: each decade marked from its exact starting age.

5 · The late-night hour has two answers

《渊海子平》 Yuanhai Ziping · 宋 Song dynasty — manuscript marginal note on 论起大运法

如正月初一子时生,上四刻仍作上年十二月,夜子时生下四刻方作正月初一子时推正,谓神仙难断夜子时。

原文 · Verbatim — 眉批

Translation: "Take a birth in the zi hour of the first day of the first month: in the earlier quarter of that hour it is still reckoned as the twelfth month of the previous year; only the later quarter counts as the new year. Hence the saying — even an immortal cannot settle the night zi hour." The 23:00–01:00 window straddles two days, and the classical tradition itself flagged it as unsettled, a thousand years before anyone typed a birth time into a form.

In the engine: the day turns at midnight (00:00) in the main computation. For a birth between 23:00 and 23:59 we do not silently pick a side: the reading carries a lateNight block with the alternative day pillar, its hour pillar, and the day master it yields — both versions shown, side by side, in the same report.

The warning label 「神仙难断」 is the classical source for our rule of showing both. When the tradition says a question is hard, the honest move is to display the difficulty, not to hide it.

6 · Climate remedies, month by month

《穷通宝鉴》 Qiongtong Baojian · Qing (also circulated as 《栏江网》 Lanjiang Wang)

三月甲木,木气相竭。先取庚金,次用壬水。

原文 · Verbatim — 论木

Translation: "Third-month jia wood: the wood's qi is running low. Take geng metal first, then ren water." One day stem, one solar term, one ranked remedy — the book does this for all ten stems across the twelve months, a grid of 120 cells. It treats a chart the way a farmer treats a season: what this crop lacks right now, and in what order.

In the engine: the climate (调候) table follows this 120-cell scheme — ten stems × twelve month commands, each with its ranked remedy. It is the source of the "climate" line in every full report, and of the seasonal remedy in the twelve sign pages.

7 · The Noble Helper star, stem by stem

《三命通会》 Sanming Tonghui · 万民英 Wan Minying · Ming, 1577-ish compilation

甲戊庚牛羊,乙己鼠猴乡,丙丁猪鸡位,壬癸兔蛇藏,六辛逢马虎,此是贵人方。

原文 · Verbatim — 论天乙贵人

Translation: "For jia, wu and geng: ox and goat. For yi and ji: rat and monkey. For bing and ding: pig and rooster. For ren and gui: rabbit and snake — and for the six xin stems, horse and tiger. These are the positions of the Noble Helper." A lookup rhyme: match the day stem, read off two branches, scan the chart for them.

In the engine: the Noble Helper (天乙贵人) is looked up exactly by this rhyme — day stem to branch pair, checked across the four pillars — and reported as a supporting star with its position named, never as a promise about who will help you or when.

Editions differ on one cell (some give 「庚辛逢虎马」 for geng). We follow the Sanming Tonghui reading printed above; the variant is noted here rather than smoothed over, because that is what a source page is for.

What this page does not claim

A quotation proves what a text said, not that the text was right. Classical provenance means every rule here can be checked against its book — chapter names are given so you can do it — and it means we say plainly when wording could not be verified or when editions disagree. It does not turn a chart into medicine, law or financial advice, and no outcome is promised anywhere on this site.

Where a rule is genuinely contested — the late-night hour, the year boundary — we show the contest instead of picking a quiet side. That is the whole method: computed properly, and citable all the way down.