position string, required- Which of the four pillars this is. One of year, month, day, hour. The year pillar reads ancestry and early life, the month career and parents, the day the self and the partner, the hour later life and children.
id string, required- Pillar identifier, the stem id and the branch id joined by a hyphen. Always English pinyin, whatever the lang parameter says.
number number, required- Position of this pillar in the sexagenary cycle, 1 to 60, where jia-zi is 1. The cycle runs stems and branches together, which is why only 60 of the 120 possible pairings occur.
stem object, required- The Heavenly Stem of this pillar.
stem.id string, required- Heavenly Stem identifier. One of jia, yi, bing, ding, wu, ji, geng, xin, ren, gui. Always English pinyin, whatever the lang parameter says, so it stays safe to compare against in code and to key a glyph table on.
stem.chinese string, required- The stem in hanzi. Data rather than display copy, so it is identical under every lang.
stem.pinyin string, required- Tone-marked pinyin for the stem. Identical under every lang.
stem.element string, required- Five-phase element of the stem. One of Wood, Fire, Earth, Metal, Water. Always English, whatever the lang parameter says. Use elementLocalized for anything a reader sees.
stem.elementLocalized string- Element name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
stem.polarity string, required- Polarity of the stem, yang or yin. The five odd stems are yang and the five even ones are yin, and this is half of what decides every Ten God relation in the chart.
branch object, required- The Earthly Branch of this pillar.
branch.id string, required- Earthly Branch identifier. One of zi, chou, yin, mao, chen, si, wu, wei, shen, you, xu, hai. Always English pinyin, whatever the lang parameter says. Note that "wu" is also a stem identifier: they never share a field, so a branch id is only ever read out of a branch position.
branch.chinese string, required- The branch in hanzi. Identical under every lang.
branch.pinyin string, required- Tone-marked pinyin for the branch. Identical under every lang.
branch.animal string, required- Zodiac animal of the branch. One of rat, ox, tiger, rabbit, dragon, snake, horse, goat, monkey, rooster, dog, pig. Always English, whatever the lang parameter says. Use animalLocalized for anything a reader sees.
branch.animalLocalized string- Zodiac animal name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
branch.element string, required- Five-phase element of the branch. Always English, whatever the lang parameter says. Use elementLocalized for anything a reader sees.
branch.elementLocalized string- Element name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
branch.polarity string, required- Polarity of the branch, yang or yin.
tenGod object, required- Relation the pillar STEM holds to the Day Master. The day pillar carries day-master instead, because the day stem is the reference point every other position is measured from rather than a relation to itself.
tenGod.id string, required- Ten God identifier. One of friend, rob-wealth, eating-god, hurting-officer, indirect-wealth, direct-wealth, seven-killings, direct-officer, indirect-resource, direct-resource, plus day-master in the day-stem position. Always English, whatever the lang parameter says.
tenGod.name string, required- Display name of the relation. Always English, whatever the lang parameter says. Use nameLocalized for anything a reader sees.
tenGod.nameLocalized string- Ten God name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
tenGod.chinese string, required- The relation in traditional hanzi. Identical under every lang.
tenGod.pinyin string, required- Tone-marked pinyin for the relation. Identical under every lang.
tenGod.category string, required- Which of the five cycle relations this belongs to. peer is the same element as the Day Master, output is what the Day Master generates, wealth is what it controls, influence is what controls it, resource is what generates it, and self marks the Day Master itself. Always English, whatever the lang parameter says.
tenGod.keynote string, required- One-line summary of what this relation contributes, for a compact rendering that has no room for the full meaning.
hiddenStems array of object, required- Stems stored inside the branch, principal first. These carry the qi a branch holds without showing it, and they are where a Day Master finds a root.
hiddenStems[].stem object, required- The stem stored in the branch.
hiddenStems[].stem.id string, required- Heavenly Stem identifier. One of jia, yi, bing, ding, wu, ji, geng, xin, ren, gui. Always English pinyin, whatever the lang parameter says, so it stays safe to compare against in code and to key a glyph table on.
hiddenStems[].stem.chinese string, required- The stem in hanzi. Data rather than display copy, so it is identical under every lang.
hiddenStems[].stem.pinyin string, required- Tone-marked pinyin for the stem. Identical under every lang.
hiddenStems[].stem.element string, required- Five-phase element of the stem. One of Wood, Fire, Earth, Metal, Water. Always English, whatever the lang parameter says. Use elementLocalized for anything a reader sees.
hiddenStems[].stem.elementLocalized string- Element name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
hiddenStems[].stem.polarity string, required- Polarity of the stem, yang or yin. The five odd stems are yang and the five even ones are yin, and this is half of what decides every Ten God relation in the chart.
hiddenStems[].role string, required- Rank of this stem inside the branch, by the classical day-count that divides a thirty-day month 18, 9 and 3 days between the stems a branch holds. principal is the first-ranked stem and always matches the branch element; middle is the second-ranked; residual is the third. A branch holds one to three, always returned in rank order. What each rank CONTAINS depends on the branch family: on a storage branch the second-ranked stem is the seasonal carryover from the month before and the third is the stem that branch stores as the close of its trine, while on a growth branch the second-ranked stem is the one beginning its long-life phase there and the third is the carryover. Some schools name the same three positions by that function rather than by rank, which swaps the second and third labels on the four storage branches, so compare on rank rather than assuming a name.
hiddenStems[].tenGod object, required- Relation this hidden stem holds to the Day Master.
hiddenStems[].tenGod.id string, required- Ten God identifier. One of friend, rob-wealth, eating-god, hurting-officer, indirect-wealth, direct-wealth, seven-killings, direct-officer, indirect-resource, direct-resource, plus day-master in the day-stem position. Always English, whatever the lang parameter says.
hiddenStems[].tenGod.name string, required- Display name of the relation. Always English, whatever the lang parameter says. Use nameLocalized for anything a reader sees.
hiddenStems[].tenGod.nameLocalized string- Ten God name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.
hiddenStems[].tenGod.chinese string, required- The relation in traditional hanzi. Identical under every lang.
hiddenStems[].tenGod.pinyin string, required- Tone-marked pinyin for the relation. Identical under every lang.
hiddenStems[].tenGod.category string, required- Which of the five cycle relations this belongs to. peer is the same element as the Day Master, output is what the Day Master generates, wealth is what it controls, influence is what controls it, resource is what generates it, and self marks the Day Master itself. Always English, whatever the lang parameter says.
hiddenStems[].tenGod.keynote string, required- One-line summary of what this relation contributes, for a compact rendering that has no room for the full meaning.
naYin string, required- Na Yin sound element of the pillar, an older elemental reading assigned to each of the 30 stem-and-branch pairs. The hanzi name sits beside it in naYinChinese.
naYinChinese string, required- The Na Yin name in hanzi. Identical under every lang.
naYinElement string, required- Element the Na Yin resolves to. Independent of the stem element and often different from it, which is why it is reported separately rather than folded in. Always English, whatever the lang parameter says. Use naYinElementLocalized for anything a reader sees.
naYinElementLocalized string- Na Yin element name in the requested language, for display only. Present only when lang is set to a language other than English, since in English it would repeat its canonical partner field exactly. Never compare against this value, compare against the canonical field beside it.