Greek Isopsephy¶
A Greek isopsephy engine that deterministically sums the Milesian/Ionic alphabetic numeral values of a Greek word (units, tens, hundreds, including the archaic signs digamma=6, qoppa=90, sampi=900). Diacritics are stripped and final sigma is normalized to sigma by default; the raw total is stamped over a single structural result symbol.
from fortune_telling_core import Querent, ReadingRequest
from fortune_telling_core.traditions.greek_isopsephy import (
GREEK_ISOPSEPHY_DECK,
GREEK_ISOPSEPHY_SPREAD,
build_engine,
)
request = ReadingRequest(
deck_id=GREEK_ISOPSEPHY_DECK.id,
spread_id=GREEK_ISOPSEPHY_SPREAD.id,
querent=Querent(id="sample", display_name="Sample", attributes={"name": "λόγος"}),
)
reading = build_engine().cast(request)
# reading.summary -> "Isopsephy total 373."
greek_isopsephy ¶
GREEK_ISOPSEPHY_DECK
module-attribute
¶
GREEK_ISOPSEPHY_DECK = Deck(
id="greek_isopsephy.deck.total.v1",
symbols=(
Symbol(
id=GREEK_ISOPSEPHY_RESULT_SYMBOL,
name="Isopsephy Total",
attributes={"kind": "raw_total"},
),
),
)
GREEK_ISOPSEPHY_SPREAD
module-attribute
¶
GREEK_ISOPSEPHY_SPREAD = Spread(
id="greek_isopsephy.spread.name.v1",
name="Greek Isopsephy Total",
positions=(
Position(
"total",
"Total",
"The summed isopsephy value of the name.",
),
),
)
DiacriticsMode ¶
Bases: StrEnum
How Greek diacritics are handled.
Era ¶
Bases: StrEnum
Supported Greek isopsephy tables.
SigmaMode ¶
GreekIsopsephyEngine ¶
GreekIsopsephyEngine(
*,
era: Era = Era.CLASSICAL,
diacritics: DiacriticsMode = DiacriticsMode.STRIPPED,
sigma_mode: SigmaMode = SigmaMode.FINAL_TO_SIGMA,
)
Bases: AbstractEngine
Greek isopsephy engine.
Source code in src/fortune_telling_core/traditions/greek_isopsephy/engine.py
deck ¶
Return the Greek isopsephy deck.
Source code in src/fortune_telling_core/traditions/greek_isopsephy/engine.py
spread ¶
Return the Greek isopsephy spread.
Source code in src/fortune_telling_core/traditions/greek_isopsephy/engine.py
draw ¶
Compute the isopsephy total as a deterministic draw.
Source code in src/fortune_telling_core/traditions/greek_isopsephy/engine.py
cast ¶
Compute a Greek isopsephy reading without a caller RNG.
build_engine ¶
build_engine(
*,
era: Era = Era.CLASSICAL,
diacritics: DiacriticsMode = DiacriticsMode.STRIPPED,
sigma_mode: SigmaMode = SigmaMode.FINAL_TO_SIGMA,
) -> GreekIsopsephyEngine
Create a Greek isopsephy engine.