"""English glossary for the PL9 bilingual AI-density export. The yoga/dosha engines emit `effects` as Chinese short phrases and `combination` as mixed Chinese/English strings. The English renderer must translate these instead of deleting CJK and emitting a placeholder. This module holds the Chinese -> English vocabulary used for that translation. 词汇来源:references/yoga_rules.json 的 effects 字段词频统计(高频词优先), 覆盖 yoga/dosha 解释层最常出现的短句;低频词若未命中则按省略处理,不输出占位符。 """ from __future__ import annotations # 瑜伽/宫位 effects 中文短句 -> 英文。按词频从高到低整理。 EFFECTS_EN: dict[str, str] = { "领域受限": "domain constrained", "需要额外努力": "requires additional effort", "充足": "adequate", "转化困境为机遇": "turns hardship into opportunity", "不讨喜": "not widely liked", "事业通过智慧实现": "career achieved through wisdom", "享受丰富": "enjoys abundance", "人缘好": "well liked", "命运力量在角宫": "destiny power in angular houses", "命运助力明显": "strong support from destiny", "善于辞令": "eloquent speech", "基础发展稳定": "stable foundational development", "多元才华": "versatile talents", "子女受其庇护": "children receive protection", "待补充": "to be supplemented", "心地善良": "kind-hearted", "心智有背景支持": "mind supported by background conditions", "心智稳定性增强": "increased mental stability", "性情愉快": "pleasant temperament", "性格坚定": "steadfast character", "持续收入": "steady income", "政治才华": "political talent", "月亮前后均有支撑": "Moon supported on both sides", "物质充裕": "material abundance", "独处中成长": "growth through solitude", "生活舒适": "comfortable life", "盈利丰厚": "substantial profits", "真诚待人": "sincere dealings", "祖先福报影响子女": "ancestral blessings affect children", "经济稳定": "financial stability", "自我、财富、努力、根基彼此支撑": "self, wealth, effort, and foundations support one another", "自我表达": "self-expression", "言辞刻薄": "harsh speech", "贵人带来社会地位": "benefactors bring social status", "贵人或隐性资源": "benefactors or hidden resources", "资源与适应力较强": "strong resources and adaptability", # 才能 / 事业 / 地位(高频) "卓越才能": "exceptional talent", "领域领军": "leading in one's field", "人格魅力": "personal magnetism", "受人尊敬": "widely respected", "命运眷顾": "favored by destiny", "智慧": "wisdom", "事业成功": "career success", "长寿": "longevity", "财富": "wealth", "艺术才华": "artistic talent", "社会地位": "social standing", "品德高尚": "noble character", "逆境崛起": "rises from adversity", "因祸得福": "turns misfortune into fortune", "权力": "power", "权力地位": "power and status", "社会地位高": "high social status", "智慧卓越": "outstanding wisdom", "财富积累": "wealth accumulation", "物质成功": "material success", "财富充裕": "abundant wealth", "自力更生": "self-reliant", "学识渊博": "profound learning", "婚姻美满": "happy marriage", "审美卓越": "refined aesthetic sense", "健康需注意": "watch health", "稳定": "stability", "领导力": "leadership", "贵人运强": "strong benefactor luck", "口才出众": "eloquent", "受人爱戴": "beloved", "精力充沛": "energetic", "困境中成长": "grows through hardship", "受人敬仰": "admired", "精神修养": "spiritual cultivation", "领导能力": "leadership ability", "精神力量": "spiritual strength", "财务困难": "financial difficulty", "行动力": "initiative", "权威地位": "authority", "精神成就": "spiritual attainment", "物质享受": "material comfort", "婚姻幸福": "marital happiness", "学术成就": "academic achievement", "创造力": "creativity", "高位": "high position", "身体健康": "good health", "社会影响力": "social influence", "精神导师": "spiritual mentor", "克服困难": "overcomes obstacles", "转化能力": "transformative ability", "逆境中崛起": "rises in adversity", "投资收益": "investment returns", "财运亨通": "thriving fortune", "生活幸福": "happy life", "生活富足": "prosperous life", "名声良好": "good reputation", "精神挑战": "spiritual challenge", "行动力强": "strong initiative", "商业头脑": "business acumen", "意志坚定": "strong will", "领导才能": "leadership talent", "领导气质": "leadership quality", "事业辉煌": "brilliant career", "智慧与行动力兼备": "wisdom with drive", "正义感强": "strong sense of justice", "智力超群": "exceptional intelligence", "智慧通达": "penetrating wisdom", "多才多艺": "versatile", "生活稳定": "stable life", "有依靠": "well-supported", "精神成长": "spiritual growth", "家庭幸福": "happy family", "影响力": "influence", "自我实现": "self-realization", "子女运好": "good fortune with children", "王者气质": "regal bearing", "艺术气质": "artistic temperament", "家庭问题": "family issues", "精神压力": "mental stress", "精神领导力": "spiritual leadership", "情感丰富": "emotionally rich", "全面成功": "all-round success", "子女有成就": "accomplished children", "子女智慧": "wise children", "婚姻和谐": "harmonious marriage", "配偶有魅力": "attractive spouse", "婚姻延迟": "delayed marriage", "名声显赫": "great renown", "名声": "reputation", "社交网络强大": "strong social network", "政治权力": "political power", "战胜对手": "overcomes rivals", "祖先庇佑": "ancestral blessings", "宗教权威": "religious authority", "收入不稳定": "unstable income", "家庭和谐": "family harmony", "子孙兴旺": "flourishing descendants", "后代繁荣": "prosperous descendants", "后代有成就": "accomplished descendants", "家族延续": "family continuity", "学识": "learning", "内在平静": "inner peace", "慈悲": "compassion", "保护": "protection", "保守": "conservative", "旅行": "travel", "变动": "change", "海外": "overseas", "不稳定": "instability", "传统": "tradition", "孤独": "solitude", "人际关系差": "poor relationships", "兄弟和睦": "harmony with siblings", "勇气": "courage", "竞争力": "competitiveness", # 事业 / 财富 补充 "事业有成": "career achievement", "事业顺利": "smooth career", "事业巅峰": "career peak", "事业成就": "career accomplishment", "职业使命感强": "strong sense of vocation", "政府高层职位": "senior government post", "人脉资源强": "strong network resources", "收入与社会地位同步提升": "rising income and status", "慢而稳的事业成功": "slow but steady career success", "专业化": "specialization", "军事/体育/工程领域成功": "success in military, sports or engineering", "竞争意识强": "strong competitive drive", "敌人变朋友": "enemies become friends", "竞争中获利": "profits through competition", "愿望实现": "wishes fulfilled", "愿望通过智慧实现": "wishes fulfilled through wisdom", "愿望通过地位实现": "wishes fulfilled through status", "才华变事业": "talent turned into career", "创造力变现": "creativity monetized", "商业成功": "business success", "物质丰裕": "material abundance", "收入稳定": "stable income", "家庭资产": "family assets", "财富自主": "financial independence", "自力更生致富": "self-made wealth", "独立创业": "independent entrepreneurship", "财富增长": "wealth growth", "财富丰厚": "substantial wealth", "稳定财富": "stable wealth", "巨量财富": "great wealth", "持续财富积累": "sustained wealth accumulation", "投资回报": "investment returns", "投资成功": "successful investment", "通过才华/运气致富": "wealth through talent or luck", "祖先财富": "ancestral wealth", "储蓄丰厚": "ample savings", "理财能力": "financial acumen", "谨慎理财": "prudent money management", # 婚姻 / 家庭 "婚姻稳定": "stable marriage", "优质婚姻": "quality marriage", "婚姻显赫": "prestigious marriage", "婚姻挑战": "marital challenges", "配偶杰出": "outstanding spouse", "配偶贤良": "virtuous spouse", "配偶支持": "supportive spouse", "配偶互相支持": "mutually supportive spouses", "配偶有成就": "accomplished spouse", "配偶有社会地位": "spouse with social standing", "配偶带来财富": "spouse brings wealth", "配偶带来好运": "spouse brings good fortune", "配偶关系紧张": "tense spousal relationship", "家庭和睦": "family harmony", "后代昌盛": "prosperous descendants", "子女有出息": "promising children", "子女缘厚": "strong bond with children", "多子多福": "many children, many blessings", "子女贤良": "virtuous children", "子女众多": "many children", "独生子女": "only child", "子女少但优秀": "few but accomplished children", "子女带来财富": "children bring wealth", "子女带来名声": "children bring renown", # 健康 / 身心 "健康良好": "good health", "健康问题": "health concerns", "慢性疾病": "chronic illness", "慢性病倾向": "tendency to chronic illness", "少病少灾": "few illnesses", "活力充沛": "full of vitality", "生命力强": "strong vitality", "体质较弱": "weak constitution", "疾病": "illness", "延寿": "extended longevity", "长寿健康": "long and healthy life", "智慧长寿": "wisdom and longevity", "寿命稳定": "stable lifespan", "疾病抵抗力": "disease resistance", "免疫系统": "immune system", # 心智 / 灵性 "智慧超群": "outstanding wisdom", "辩才无碍": "unimpeded eloquence", "沟通能力": "communication ability", "学业有成": "academic success", "知识渊博": "vast knowledge", "教育成功": "educational success", "意志力": "willpower", "苦行": "austerity", "精神修行": "spiritual practice", "内在力量": "inner strength", "家庭导向": "family-oriented", "安全感": "sense of security", "勤劳": "diligent", "节俭": "frugal", "积累": "accumulation", "务实": "pragmatic", "家庭": "family", "自由": "freedom", "社交": "social", "起伏": "ups and downs", "财务波动": "financial fluctuation", "严厉": "strict", "批评": "criticism", "精神痛苦": "mental anguish", "宗教": "religion", "祭祀": "ritual", "精神追求": "spiritual pursuit", "灵性成长": "spiritual growth", "灵性觉醒": "spiritual awakening", "灵性智慧": "spiritual wisdom", "终极解脱": "final liberation", "解脱": "liberation", "解脱智慧": "wisdom of liberation", "超越生死": "beyond birth and death", "灵性洞察": "spiritual insight", "精神探索": "spiritual exploration", "精神圆满": "spiritual fulfillment", "宇宙和谐": "cosmic harmony", "终极智慧": "ultimate wisdom", "天才级智力": "genius-level intellect", "超强记忆力": "exceptional memory", "高等教育": "higher education", "哲学洞察": "philosophical insight", "艺术天赋": "artistic gift", "艺术创造力": "artistic creativity", "音乐天赋": "musical gift", "浪漫魅力": "romantic charm", "美貌": "beauty", "非传统思想": "unconventional thinking", # 负向 / 挑战(少量关键词,避免占位) "欺诈": "deceit", "不诚实": "dishonesty", "阴谋": "intrigue", "信任危机": "trust issues", "债务问题": "debt problems", "财务不稳定": "financial instability", "储蓄困难": "difficulty saving", "人脉关系淡薄": "weak personal network", "健康挑战": "health challenges", "情感孤立": "emotional isolation", "社交困难": "social difficulty", "名声受损": "reputation damaged", "意外事故": "accidents", "身体虚弱": "physical frailty", "视力问题": "vision problems", "判断失误": "errors of judgment", "需要努力": "requires effort", "需要努力突破": "requires effort to break through", "需要韧性": "requires resilience", "需要节约": "requires thrift", "需节俭": "needs thrift", "挑战多": "many challenges", "人生有挑战": "life has challenges", "人生挑战": "life challenges", "不安定": "unsettled", "漂泊": "wandering", "不安于室": "restless", # 婚恋 / 家庭 / 健康补充(2026-09 全量导出缺词补齐) "性格坚毅": "resolute character", "口才与财富兼备": "eloquence with wealth", "充满活力": "full of vigor", "权力权威": "power and authority", "个人魅力": "personal charm", "需努力积累": "requires diligent accumulation", "财务压力": "financial pressure", "家庭纠纷": "family disputes", "需节俭持家": "needs frugal household management", "人生顺遂": "smooth and favorable life", "灵性提升": "spiritual elevation", "财富地位": "wealth and status", "极高地位": "extremely high status", "名声远扬": "far-reaching renown", "道德致富": "wealth through integrity", "慷慨大方": "generous", "艺术财富": "artistic wealth", "奢侈品": "luxury goods", "财富波动": "wealth fluctuation", "严重财务困难": "severe financial difficulty", "需要极度节俭": "requires extreme thrift", "需要匹配化解": "requires matching remedies", "月亮受保护": "Moon protected", "情感稳定": "emotional stability", "全方位成功": "all-around success", "四通八达": "well-connected in all directions", "坚不可摧的成功": "unshakeable success", "强大意志力": "strong willpower", "星盘力量翻倍": "doubled chart strength", "命运高度一致": "highly aligned destiny", "宗教政治地位": "religious and political standing", "太阳后方有行星支持": "planets following the Sun", "表达力与行动力增强": "enhanced expression and drive", "自我驱动力较强": "strong self-drive", "太阳前方有行星铺垫": "planets preceding the Sun", "内在准备力强": "strong inner preparation", "重视计划与隐性资源": "values planning and hidden resources", "太阳前后均有行星支撑": "planets supporting the Sun on both sides", "自我表达较完整": "relatively complete self-expression", "行动前后资源较足": "sufficient resources before and after action", "资源积累能力": "resource accumulation ability", "心智有后续支撑": "mind has follow-up support", "配偶品德高尚": "virtuous spouse", "经常旅行": "frequent travel", "被亲属遗弃": "abandoned by relatives", "缺乏家庭支持": "lack of family support", "家庭关系疏远": "distant family relations", "母亲健康不佳": "poor maternal health", "与母亲缘薄": "weak bond with mother", "母亲早逝": "early loss of mother", "心动/感情激活观察": "romantic-activation observation", "承诺掂量": "commitment weighing", "不等于法律婚姻": "does not equal legal marriage", } # 英文星座名集合(用于 combination 黏连修复,避免与 dignity 词黏连)。 SIGNS_EN: frozenset[str] = frozenset({ "Aries", "Taurus", "Gemini", "Cancer", "Leo", "Virgo", "Libra", "Scorpio", "Sagittarius", "Capricorn", "Aquarius", "Pisces", }) # 英文行星名集合。 PLANETS_EN: frozenset[str] = frozenset({ "Sun", "Moon", "Mars", "Mercury", "Jupiter", "Venus", "Saturn", "Rahu", "Ketu", }) # dignity / 强度词(用于黏连修复)。 DIGNITY_EN: frozenset[str] = frozenset({ "exalted", "debilitated", "strong", "weak", "moderate", "medium", "own", "moolatrikona", "friendly", "neutral", "enemy", "combust", }) # 中文行星名 / 星座名 / 结构词 -> 英文。用于 combination 混排串的逐词替换, # 使删 CJK 后不产生黏连或残片。 CN_TERMS_EN: dict[str, str] = { "自我": "self", "表现为": "expressed as", "节律": "rhythm", "学习": "learning", "写作": "writing", "沟通": "communication", "移动": "movement", "自主行动": "independent action", "居住": "residence", "家庭": "family", "内在安全感": "inner security", "资产基础": "asset foundation", "先稳住根基再发挥": "stabilize foundations before expression", "祖先祭拜": "ancestral rites", "捐赠黑芝麻和铁器": "donate black sesame and iron items", "供养婆罗门": "support Brahmins", "相邻": "adjacent", "指标": "indicators", "内在": "inner", "星": "planet", "1-4宫主形成命宫基础链": "1st-4th house lords form the ascendant foundational chain", "4宫/4宫主受凶星、Rahu、Maandi/Mandi 等严重影响": "house 4/its lord severely affected by malefics, Rahu, and Maandi/Mandi", "Dharidhra:财帛/收益主落凶宫或Lagna/Maraka/Dusthana组合": "Dharidhra: wealth/gains lord in a difficult house or Lagna/Maraka/Dusthana combination", "Rahu在5且非土星Navamsa,或7宫主关联行星的Navamsa主落1/2/5": "Rahu in house 5 and not Saturn Navamsa, or Navamsa lord of a planet associated with the 7th lord falls in 1/2/5", "月亮受凶星夹制/合相/相位,或4宫主Navamsa链最终落6/8/12": "Moon hemmed/conjunct/aspected by malefics, or the 4th lord's Navamsa chain ultimately falls in 6/8/12", "第4宫有天然吉星/强星/吉性星座,或上升主入4宫且受吉星影响": "house 4 has natural benefic/strong planets or a benefic sign, or the ascendant lord enters house 4 and is influenced by benefics", "行星集中在角宫(Chakra 轮盘)": "planets concentrated in angular houses (Chakra wheel)", "中强": "medium-strong", "基础链": "foundational chain", "形成": "forms", "分布在": "distributed across", "六个星座": "six signs", "位于": "located in", "入": "enters", "受凶星": "affected by malefics", "凶星": "malefic", "天然吉星": "natural benefic", "吉性星座": "benefic sign", "关联": "associated with", "相位": "aspected", "合相": "conjunct", "夹制": "hemmed", "最终落": "ultimately falls in", "处于": "is in", "不利状态": "an unfavorable state", "严重影响": "severely affected", "非": "not ", "角宫主": "angular house lord", "三方宫主": "trinal house lord", "财帛": "wealth", "收益": "gains", "基础": "foundation", "自定义条件满足": "custom condition met", "检测器未返回组合文本": "detector returned no combination text", "未返回": "not returned", "候选组合": "Candidate combination", "条件未齐,暂不作结果判断。": "Required conditions are incomplete; no outcome inference is made.", "缺少条件输入": "Missing condition inputs", "待评估": "pending evaluation", "七曜": "seven planets", "星座": "sign", "行星": "planet", "不利": "unfavorable", "影响": "influence", "的": "'s", "上升主": "ascendant lord", "宫主": "house lord", "互为": "mutual", "合于": "conjunct", "变动星座": "mutable sign", "且": "and", "或": "or", "强": "strong", "弱": "weak", "第": "house ", "宫": "", "火星在第4宫(从月亮的2/12宫)": "Mars in house 4 (2nd/12th from Moon)", "充足": "adequate", "转化困境为机遇": "turns hardship into opportunity", "不讨喜": "not widely liked", "事业通过智慧实现": "career achieved through wisdom", "享受丰富": "enjoys abundance", "人缘好": "well liked", "命运力量在角宫": "destiny power in angular houses", "命运助力明显": "strong support from destiny", "善于辞令": "eloquent speech", "基础发展稳定": "stable foundational development", "多元才华": "versatile talents", "子女受其庇护": "children receive protection", "待补充": "to be supplemented", "心地善良": "kind-hearted", "心智有背景支持": "mind supported by background conditions", "心智稳定性增强": "increased mental stability", "性情愉快": "pleasant temperament", "性格坚定": "steadfast character", "持续收入": "steady income", "政治才华": "political talent", "月亮前后均有支撑": "Moon supported on both sides", "物质充裕": "material abundance", "独处中成长": "growth through solitude", "生活舒适": "comfortable life", "盈利丰厚": "substantial profits", "真诚待人": "sincere dealings", "祖先福报影响子女": "ancestral blessings affect children", "经济稳定": "financial stability", "自我、财富、努力、根基彼此支撑": "self, wealth, effort, and foundations support one another", "自我表达": "self-expression", "言辞刻薄": "harsh speech", "贵人带来社会地位": "benefactors bring social status", "贵人或隐性资源": "benefactors or hidden resources", "资源与适应力较强": "strong resources and adaptability", "太阳": "Sun", "月亮": "Moon", "水星": "Mercury", "金星": "Venus", "火星": "Mars", "木星": "Jupiter", "土星": "Saturn", "罗睺": "Rahu", "计都": "Ketu", "白羊座": "Aries", "金牛座": "Taurus", "双子座": "Gemini", "巨蟹座": "Cancer", "狮子座": "Leo", "处女座": "Virgo", "天秤座": "Libra", "天蝎座": "Scorpio", "射手座": "Sagittarius", "摩羯座": "Capricorn", "宝瓶座": "Aquarius", "水瓶座": "Aquarius", "双鱼座": "Pisces", "与": " and ", "同在第": " together in house ", "同处": " together in ", "在第": " in house ", "第": " house ", "宫": " ", "两侧均有行星": " planets on both sides ", "一侧有行星": " planet on one side ", "前后均有行星": " planets on both sides ", # 结构词(宫主 / 落点 / 相位等),供 combination 逐词替换;按长度降序替换避免互相覆盖。 "宫主": " house lord", "上升主": "lagna lord", "命主": "lagna lord", "凶宫": " dusthana", "角宫": " kendra", "吉星": " benefic", "凶星": " malefic", "落入": " in ", "落陷": " debilitated", "北交点": " Rahu", "南交点": " Ketu", "变动星座": " mutable sign", "奇数星座": " odd signs", "本命盘": " natal chart", "合相": " conjunct", "相位": " aspect", "互照": " mutual aspect", "夹制": " hemmed", "关联": " aspected by ", "有力": " strong", "主": " lord", "在": " in ", "或": " or ", "被": " by ", "受": " by ", } # 组合条件整句 -> 英文(在逐词替换之前做全串精确匹配,避免整句被逐字拆坏)。 # 仅收录不含盘主专属行星/星座名的通用句,跨盘可复用。 COMBINATION_EN: dict[str, str] = { "有Pitra Dosha迹象:Sun(1宫)与Rahu(2宫)合相/相邻": "Pitra Dosha indication: Sun (house 1) and Rahu (house 2) conjunct/adjacent", "中性(Neutral)": "neutral (Neutral)", "1-4宫主形成命宫基础链": "1st-4th house lords form the ascendant foundational chain", "4宫/4宫主受凶星、Rahu、Maandi/Mandi 等严重影响": "house 4/its lord severely affected by malefics, Rahu, and Maandi/Mandi", "Dharidhra:财帛/收益主落凶宫或Lagna/Maraka/Dusthana组合": "Dharidhra: wealth/gains lord in a difficult house or Lagna/Maraka/Dusthana combination", "Rahu在5且非土星Navamsa,或7宫主关联行星的Navamsa主落1/2/5": "Rahu in house 5 and not Saturn Navamsa, or Navamsa lord of a planet associated with the 7th lord falls in 1/2/5", "月亮受凶星夹制/合相/相位,或4宫主Navamsa链最终落6/8/12": "Moon hemmed/conjunct/aspected by malefics, or the 4th lord's Navamsa chain ultimately falls in 6/8/12", "第4宫有天然吉星/强星/吉性星座,或上升主入4宫且受吉星影响": "house 4 has natural benefic/strong planets or a benefic sign, or the ascendant lord enters house 4 and is influenced by benefics", "行星集中在角宫(Chakra 轮盘)": "planets concentrated in angular houses (Chakra wheel)", "自定义条件满足": "custom condition satisfied", "落陷取消格局": "cancellation of debilitation", "上升主星有力+其他行星有力": "strong lagna lord and other strong planets", "凶宫主在角宫": "dusthana lord in a kendra", "命主在本命盘强(分盘瑜伽近似判断)": "lagna lord strong in natal chart (approximate varga-yoga judgment)", }