Skip to main content
← Back to home

Methodology

AskStar Methodology

This page documents how AskStar produces charts and readings: the deterministic computation engines underneath (including the actual open-source components and rules in use), the classical sources we draw from, the role of AI and human review in the pipeline, and the disclaimer covering what this content is and is not. Every technical detail on this page corresponds to code we actually run.

1. Deterministic Computation: Overview

The core of AskStar is a three-system chart-computation engine — Western astrology, Zi Wei Dou Shu, and BaZi — not an AI fortune-telling app. The chart itself is a deterministic astronomical and calendrical calculation, fully separable from any AI output.

All three systems are fully deterministic: the same birth input run at any time produces an identical chart. There is no randomness, no model variability, and no AI involvement at this layer.

The sections below name the actual engines and rules each system uses. We only state what maps to code — we would rather claim less than overclaim.

2. Western Astrology: Swiss Ephemeris

Astronomical computation uses the Swiss Ephemeris (via the pyswisseph library), running in a dedicated Python computation service. The Swiss Ephemeris is the high-precision ephemeris standard used by professional astrology software.

The computation flow: birth date and time are converted to Universal Time (UTC) and a Julian Day, then the ecliptic longitude, zodiac sign, and house are computed for ten bodies — Sun, Moon, Mercury, Venus, Mars, Jupiter, Saturn, Uranus, Neptune, and Pluto.

Houses use the Placidus system: the twelve house cusps, the Ascendant, and the Midheaven (MC) are computed from the birthplace's coordinates. When birth coordinates are missing, only planetary positions are computed — houses are not force-guessed.

Aspects use fixed orbs: conjunction 0° (orb 8°), opposition 180° (8°), trine 120° (8°), square 90° (7°), sextile 60° (6°), and quincunx 150° (3°).

Retrograde status is derived from each body's actual computed longitudinal speed — a negative speed marks the planet retrograde — rather than from lookup-table approximations.

3. Zi Wei Dou Shu: the iztro Engine

Zi Wei Dou Shu charts are erected with the open-source iztro engine: from the solar (Gregorian) birth date and the traditional two-hour time period (時辰), it establishes the twelve palaces and places the fourteen major stars and the minor stars. Star placement follows the traditional rules as implemented by iztro — we do not modify the star-placement logic ourselves.

Star brightness is normalized to the seven traditional levels: 廟 (temple), 旺 (prosperous), 得地 (favorable), 利 (advantageous), 平 (neutral), 不得地 (unfavorable), and 落陷 (fallen). Abbreviated forms from different sources are normalized to the full level names.

The four transformations (四化 — 化祿, 化權, 化科, 化忌) are computed by the engine and pass through the same normalization layer, so every variant spelling maps to the standard transformation names.

4. BaZi: the lunar-javascript Calendrical Engine

BaZi charts use the open-source lunar-javascript calendrical library: the Gregorian birth moment is converted to the lunisolar calendar, from which the year, month, day, and hour pillars (Heavenly Stems and Earthly Branches of the sexagenary cycle) are derived, along with the zodiac animal and lunar date.

Boundary rules follow the solar-term convention (not lunar month starts): the year pillar changes at the exact instant of 立春 (Beginning of Spring), and the month pillar changes at the exact instants of the twelve 節 terms (立春, 驚蟄, 清明, and so on) — two births on the same day, before and after the term instant, get different month pillars. We verified this behavior directly against the pinned library version.

Leap months are handled explicitly per lunisolar rules: the conversion layer detects leap months (represented as negative month indices) and flags them explicitly in the chart.

5. Lunar Calendar and Solar Terms: Exact Instants, Versioned Data

AskStar's monthly sky and calendrical data — planetary sign ingresses, lunar phases, solar terms, the month pillar, and zodiac-animal/month-branch interactions — is computed month by month by a dedicated data pipeline and stored in our database. It is not hand-entered and not AI-generated.

Solar terms (節氣) use exact transition instants, expressed in China Standard Time (UTC+8) — the conventional reference clock for solar-term boundaries in Chinese metaphysics. Each year must yield exactly twenty-four terms; one missing or extra term fails the whole computation (fail-loud), and incomplete data is never published.

The month pillar is segmented precisely at the 節 boundary: each Gregorian month contains exactly one month-establishing term, and the pillar changes at that exact instant.

Every computation run is written to the database as a new, incrementally versioned row (insert-only versioning) with full engine-version provenance, so the data is auditable end to end, and a failed run can never overwrite the last good dataset. Pages across the site are progressively being wired to read from this computed dataset.

6. Classical Sources

The interpretive logic and terminology in AskStar draw on the following classical metaphysical and astrological texts:

  • Di Tian Sui (《滴天髓》) — A foundational BaZi text, traditionally attributed to Jing Tu with commentary by Liu Bowen, establishing the core principles of Five-Element interaction and pattern analysis.
  • San Ming Tong Hui (《三命通會》) — Compiled by Wan Minying in the Ming Dynasty, a comprehensive synthesis of BaZi covering year pillar, month rulers, useful gods, and stellar influences.
  • Di Tian Sui Chan Wei (《滴天髓闡微》) — Qing Dynasty commentary by Ren Tiechao, providing line-by-line exegesis and case studies for Di Tian Sui.
  • Zi Wei Dou Shu Quan Shu (《紫微斗數全書》) — The canonical source for Zi Wei Dou Shu, traditionally transmitted from Chen Xiyi (Chen Tuan), documenting star-placement methods, palace meanings, and four-transformation analysis.
  • Tetrabiblos by Ptolemy — The foundational text of Western astrology, written in second-century Alexandria by Claudius Ptolemy, establishing the framework of planetary signification, houses, and aspects that underpins Western astrology today.

7. AI Synthesis and Founder Review

AI is invoked only after the deterministic computation is complete, and its role is narrow: first, cross-system synthesis — cross-referencing the three independently computed charts (Western, Zi Wei, BaZi) to surface consensus signals and tensions, producing one integrated reading rather than three disjoint reports; second, personalized framing — restating metaphysical terminology in the user's own language, for the user's actual question, context, and report type.

Knowledge-base (wiki) content runs through a pipeline built on the same principle: chart and sky data is computed by the deterministic engines, independently of any AI; AI assists in drafting the interpretive text under anti-fabrication constraints — it is explicitly forbidden from asserting specific calendar dates or planetary transit timings; the founder reviews each page by hand, and only pages that pass review carry the on-page review statement (reviewer name and date).

The review statement is fail-closed by design: the moment a page's content is regenerated, its prior review stamp is voided and removed until the page is re-reviewed. Unreviewed pages show no review claim at all — we would rather show nothing than show a false "reviewed" label.

8. Scope and Accuracy Disclaimer

AskStar's content is for reflection, self-exploration, and entertainment.

It is not medical, psychological, legal, or financial advice and is not a substitute for professional consultation. Decisions about health, money, relationships, or other consequential matters should involve qualified professionals in those domains.

AskStar's interpretations are grounded in traditional metaphysical systems and classical texts. They are not scientifically validated predictions. Users should treat them as one input among many and remain solely responsible for their own decisions.

9. Calculation Corrections

When we correct a calculation rule in a way that changes what existing users see, we record it here.

  • November 2026, luck pillars (大運): the current luck pillar is now chosen by its exact start date. Each luck pillar begins on the day the luck cycle starts (起運) and the next one takes over every ten years after that. Before this change we compared a Western age with luck-pillar ranges counted in East Asian age (虛歲), so in the first year or two of a new luck pillar some users saw the previous one, which had already ended. If your first luck pillar has not started yet, reports now say so and give its start date, instead of showing an empty luck pillar.
  • November 2026, unknown birth time: when the birth time is unknown, the chart is stored at 12:00 as a placeholder. The annual report no longer uses anything derived from that placeholder (the hour pillar, Zi Wei Dou Shu palaces such as the life palace, yearly and monthly palaces and the decade palace, the Ascendant, houses and the Moon's degree) and says so at the top. Only the year, month and day pillars and the planetary positions are used; if you were born on the day of a solar-term change, the year or month pillar is also marked as uncertain. If the birth time is approximate, the report notes at the top that the hour-dependent parts may differ.
  • November 2026, time zones and daylight saving: BaZi and Zi Wei Dou Shu now use local standard time at the birthplace. The birth time is first turned into the actual instant using the birthplace's time zone, then daylight saving is removed; historical daylight-saving and standard-time rules follow the IANA time zone database. Solar terms are compared as exact instants; true solar time is not used. If you were born outside UTC+8, or during daylight saving time (e.g. Hong Kong 1941–79, Taiwan 1945–79, mainland China 1986–91, UK/US/Australian summers), your hour pillar and Zi Wei palaces may change, and near a solar term your year or month pillar too. Births in UTC+8 outside daylight saving are not affected. Where a stored time zone is incomplete (e.g. saved as UTC), the birthplace coordinates are used. New charts follow these rules; updates to existing charts will be announced separately.

10. Calculation Conventions

Schools differ on the points below. These are the conventions AskStar uses, the same for BaZi and Zi Wei Dou Shu.

  • Late Zi hour: a birth between 23:00 and 23:59 counts as the same day for the BaZi day pillar and for the Zi Wei Dou Shu date; it does not move to the next day. The hour pillar is the Zi hour.
  • Leap months: for a birth in a lunar leap month, Zi Wei Dou Shu splits the month at day 15: days 1–15 count as that month, day 16 onward as the next month.
  • Self-punishment (自刑): when the year or month branch repeats a natal 辰, 午, 酉 or 亥, it is reported as a punishment (自刑) in addition to a shared branch; other repeated branches count only as a shared branch.
  • Time basis: BaZi and Zi Wei Dou Shu use local standard time at the birthplace (daylight saving removed, per the IANA time zone database); solar terms are compared as exact instants; true solar time is not used.

For the full review process, corrections policy, and AI-assistance disclosure, see our Editorial Standards. To learn about the reviewer behind the review statements, see the founder page.

For more on AskStar's background and editorial process, see the About page. For support, visit our Support page.

Methodology | AskStar