Zi Wei concepts

Stars

What each of the three star groups holds, the eight star types, how to read brightness and mutagen marks, the four groups of twelve gods, and a star-name table.

For: everyone. Code and the key tables are at the end of the page

Stars on a palace are stored in three groups, and four further groups of "twelve gods" hang off each palace as single values.

Major stars

The fourteen major stars are the skeleton of a reading. They are placed by the rules of two series, Ziwei's and Tianfu's. Some palaces end up with two of them, some with none at all — the latter is an empty palace.

Ziwei series (six)Tianfu series (eight)
ZiweiTianfu
TianjiTaiyin
TaiyangTanlang
WuquJumen
TiantongTianxiang
LianzhenTianliang
Qisha
Pojun

The empty-palace predicate is asking whether exactly this group is empty.

Minor stars

Fourteen minor stars, in four classes by character:

ClassMembers
Soft (the six auspicious)Zuofu, Youbi, Wenchang, Wenqu, Tiankui, Tianyue
Tough (the six malefics)Qingyang, Tuoluo, Huoxing, Lingxing, Dikong, Dijie
LucunLucun
TianmaTianma

Why Lucun and Tianma get classes of their own

In the traditional division they are neither purely auspicious nor purely malefic: Lucun governs wealth but fears the void stars, Tianma governs movement and change but wants Lucun in sight. Predicates often need to handle them separately from the six soft and six tough stars, so each takes a class of its own — filter by class and you never have to hard-code a star name.

Adjective stars

Dozens of auxiliary stars, grouped by origin into year-stem, year-branch, month, day and hour families, each placed by a different rule. They split into three types:

TypeCountMembers
Peach-blossom stars4Hongluan hongluan, Tianxi tianxi, Tianyao tianyao, Xianchi xianchi
Helper stars2Jieshen jieshen, Nianjie nianjie
All other adjective stars32See below

The 32 remaining adjective stars of the default school, grouped by character:

GroupMembers
Rank and supportSantai santai, Bazuo bazuo, Enguang engguang, Tiangui tiangui, Taifu taifu, Fenggao fenggao, Longchi longchi, Fengge fengge, Tianguan tianguan, Tianfu tianfu
Talent and shelterTiancai tiancai, Tianshou tianshou, Tianwu tianwu, Tianchu tianchu, Tiande tiande, Yuede yuede, Huagai huagai
The void familyTiankong tiankong, Xunkong xunkong, Jielu jielu, Kongwang kongwang
Punishment and isolationTianxing tianxing, Guchen guchen, Guasu guasu, Posui posui, Feilian feilian, Yinsha yinsha, Tianku tianku, Tianxu tianxu, Tianyue tianyue
Injury and messengerTianshang tianshang, Tianshi tianshi

What peach-blossom stars are

"Peach blossom" (桃花) is the traditional metaphor for romance and attraction. These four stars bear on romance, appeal to the opposite sex and personal magnetism, and they are the first group a reader looks at for relationships. Within the four, Hongluan and Tianxi lean towards committed romance and celebration; Tianyao and Xianchi lean towards desire and socialising.

Jielu and Kongwang are two stars, not one

The default school places Jielu (截路) and Kongwang (空亡) as two separate stars; do not collapse them into one "Jiekong". The Zhongzhou school (algorithm = zhongzhou) instead places Jiekong (截空), Jiesha (劫煞), Dahao (大耗) and Longde (龙德), and does not place Jielu or Kongwang — taking the adjective-star total from 32 to 34. See Config in depth.

Mutagen predicates only look at major and minor stars

When you ask whether a palace holds a given mutagen, only the major and minor stars are examined — adjective stars are not — matching iztro's behaviour.

Stars come in eight types

The three groups above together cover every type exactly once:

Type keyWhich group it appears inIn one line
majorMajor starsThe fourteen major stars; the skeleton of the chart
softMinor starsThe six auspicious
toughMinor starsThe six malefics
lucunMinor starsLucun, a class of its own
tianmaMinor starsTianma, a class of its own
flowerAdjective starsPeach-blossom stars
helperAdjective starsHelper stars
adjectiveAdjective starsEverything else

For a question like "does this palace see a malefic?", filtering by type is the sturdy way — star names change with the chart language, types do not.

Brightness

Brightness describes how strong a star is in the branch position it landed on, on a seven-step scale:

en-US outputzh-CN outputFull nameStrength
[+3]miaowang (temple-flourishing)Strongest
[+2]wangxiang (flourishing)
[+1]dedi (well-placed)
[0]liyi (advantaged)
[-1]pinghe (neutral)Neutral
[-2]budedi (poorly placed)
[-3]luoxian (fallen)Weakest

The same star has different brightness in different palaces, fixed by a star-against-branch lookup table. Adjective stars usually have no brightness at all.

Brightness in a non-Chinese chart is a mark, not a word

The English, Korean and other non-Chinese vocabularies have no brightness translations, so the output is the mark [+3] (miaowang) through [-3] (luoxian) shown above. Predicate on brightnessKey (miao, wang, de, li, ping, bu, xian), never on the text — see Multilingual output.

The four groups of twelve gods

Besides the three star groups, every palace carries four single-valued fields, each coming from its own cycle of twelve gods. Each group's twelve members fill the twelve palaces, exactly one per palace.

The Python enums and Go constants for these four are listed on the enum listings.

The twelve Changsheng gods

Placed from the Five Elements class together with gender and year-branch polarity. They describe the twelve stages of a thing coming into being, declining and starting over.

KeyChineseen-US
changsheng长生born
muyu沐浴infancy
guandai冠带adolescence
linguan临官adulthood
diwang帝旺prime
shuaiweak
bingsick
sidead
muburied
juedissipated
taiembryo
yangmolding

The twelve Boshi gods

Placed from Lucun's position together with gender and year-branch polarity. Weighted towards talent, wealth and disputes.

KeyChineseen-US
boshi博士doctor
lishi力士sumo
qinglong青龙dragon
xiaohao小耗consumer
jiangjun将军general
zhoushu奏书book
faylian飞廉gossip
xishen喜神happiness
bingfu病符illness
dahao大耗wastrel
fubing伏兵ambush
guanfu官府government

The twelve Sui-qian gods

Sui-qian (岁前, "ahead of the year") is placed from the year branch, always running forward. Weighted towards the auspicious and inauspicious events of a single year.

KeyChineseen-US
suijian岁建initial
huiqi晦气unlucky
sangmen丧门downcast
guansuo贯索tied
gwanfu官符official
xiaohao小耗consumer
dahao大耗wastrel
longde龙德virtuous
baihu白虎sinister
tiande天德blessed
diaoke吊客sorrowing
bingfu病符illness

The Zhongzhou school replaces Dahao in this group with Suipo (suipo, 岁破), which shares the English rendering wastrel.

The twelve Jiang-qian gods

Jiang-qian (将前, "ahead of the general") is placed from the year branch's trine group, always running forward. Weighted towards movement, travel and obstruction by other people.

KeyChineseen-US
jiangxing将星capable
panan攀鞍admired
suiyi岁驿varied
xiishen息神listless
huagai华盖religious
jiesha劫煞robbed
zhaisha灾煞disastery
tiansha天煞condemned
zhibei指背insidious
xianchi咸池passionate
yuesha月煞hapless
wangshen亡神perished

Keys are not always pinyin

faylian (飞廉), gwanfu (官符), xiishen (息神) and zhaisha (灾煞) do not match their pinyin. They keep iztro's original vocabulary keys, which exist to separate them from the homophonous feilian (蜚廉, an adjective star), guanfu (官府, a Boshi god) and xishen (喜神, a Boshi god). Copy the keys; do not spell them out from pinyin yourself.

Some en-US renderings are not English words

disastery and considery are not words. They come verbatim from iztro's en-US vocabulary and x-iztro reproduces them exactly, because matching iztro field for field outranks fixing its spelling. Treat name as display text only and never parse it.

Horoscope levels carry their own Sui-qian and Jiang-qian gods, placed afresh from that level's year branch. They are a different thing from the four groups on the natal chart. See Horoscopes.

In code

Walking the stars of one palace

chart = Astro().by_solar("2000-8-16", 2, "female", language="en-US")
soul = chart.palace("soulPalace")

for s in soul.major_stars + soul.minor_stars + soul.adjective_stars:
    print(s.key, s.name, s.type, s.brightness, s.mutagen)
ziweiMaj emperor major [+3] None
wenquMin artist soft [-3] None
fengge refined adjective None None
tianfu lucky adjective None None
jielu intercepted adjective None None
feilian instigated adjective None None
nianjie considery(Y) helper None None

The (Y) on nianjie is part of the name

nianjie's en-US rendering is literally considery(Y), and it appears that way on the natal chart too, where scope is origin. The suffix is not a scope marker — iztro's vocabulary bakes it into the string to distinguish 年解 (nianjie) from 解神 (jieshen, considery), and x-iztro copies the vocabulary verbatim. One more reason to branch on key, never on name.

Fields on a single star:

FieldMeaning
nameStar name, translated into the chart language
keyLanguage-independent key, e.g. ziweiMaj
typeOne of the eight types
scopeWhich level it belongs to: origin natal, decadal, yearly, …
brightness / brightnessKeyBrightness; only some stars have one
mutagen / mutagenKeyMutagen mark; only stars that were mutated have one

The four groups of twelve gods

for p in chart.palaces:
    print(p.name, p.changsheng12, p.boshi12, p.suiqian12, p.jiangqian12)

Each field also has a *_key variant (changsheng12_key and so on); predicate on that.

Finding where a star is

if let Some(star) = astrolabe.star(StarKey::ZiweiMaj) {
    // StarRef derefs to Star, and can also give the palace it sits in
    println!("{:?} {:?}", star.brightness, star.palace().name);
}

The lookup walks all three groups, so major, minor and adjective stars are all findable; a miss returns an empty value.

Star-name table

The same star reads differently in each chart language while the key stays put. The English vocabulary comes from iztro's own word list: it is interpretive rather than transliterated, and it is not the rendering conventional in English-language Zi Wei writing. It is for display only — always predicate on the key.

PinyinKeyzh-CNen-US
ZiweiziweiMaj紫微emperor
TianjitianjiMaj天机advisor
TaiyangtaiyangMaj太阳sun
WuquwuquMaj武曲general
TiantongtiantongMaj天同fortunate
LianzhenlianzhenMaj廉贞judge
TianfutianfuMaj天府empress
TaiyintaiyinMaj太阴moon
TanlangtanlangMaj贪狼wolf
JumenjumenMaj巨门advocator
TianxiangtianxiangMaj天相minister
TianliangtianliangMaj天梁sage
QishaqishaMaj七杀marshal
PojunpojunMaj破军rebel
ZuofuzuofuMin左辅officer
YoubiyoubiMin右弼helper
WenchangwenchangMin文昌scholar
WenquwenquMin文曲artist
TiankuitiankuiMin天魁assistant
TianyuetianyueMin天钺aide
QingyangqingyangMin擎羊driven
TuoluotuoluoMin陀罗tangled
HuoxinghuoxingMin火星impulsive
LingxinglingxingMin铃星spark
DikongdikongMin地空ideologue
DijiedijieMin地劫fickle
LucunlucunMin禄存money
TianmatianmaMin天马horse

Note the collision helper: it is the en-US name of the star Youbi (右弼) and the name of the helper star type. They are unrelated — one is a name, the other a type.

Keys for the adjective stars and the twelve gods are in the sections above. To convert between any key and any language, use the translation and reverse-lookup functions — see Multilingual output.

On this page