Skip to content

CJK name strokes datasets

interpretation

CJK name-stroke (five-grid) onomancy interpretation datasets across locales.

Two composing registries:

  • :data:CJK_NAME_STROKES_REGISTRY - the per-grid axis meaning (what each of the five grids signifies), one entry per deck symbol from locales/meanings/.
  • :data:CJK_NAME_STROKES_STROKE_COUNT_REGISTRY - the luck reading for each grid's resolved stroke count (1-81), from locales/stroke_count/. This is the default rating scheme; :data:STROKE_COUNT_REGISTRIES holds one registry per selectable scheme (e.g. "kumazaki", "chinese_wuge").

interpret merges them, so a grid's text is its axis sentence followed by the reading for its actual stroke count. The symbols come from core's CJK_NAME_STROKES_DECK. See :mod:fortune_telling_core._symbol_interpretation and :mod:fortune_telling_core._interpretation_bundle.

CJK_NAME_STROKES_STROKE_COUNT_EN_GB module-attribute

CJK_NAME_STROKES_STROKE_COUNT_EN_GB = datasets['en-GB']

CJK_NAME_STROKES_STROKE_COUNT_EN_US module-attribute

CJK_NAME_STROKES_STROKE_COUNT_EN_US = datasets['en-US']

CJK_NAME_STROKES_STROKE_COUNT_JA_JP module-attribute

CJK_NAME_STROKES_STROKE_COUNT_JA_JP = datasets['ja-JP']

CJK_NAME_STROKES_STROKE_COUNT_REGISTRY module-attribute

CJK_NAME_STROKES_STROKE_COUNT_REGISTRY = STROKE_COUNT_REGISTRIES[DEFAULT_SCHEME]

DEFAULT_SCHEME module-attribute

DEFAULT_SCHEME = 'kumazaki'

SCHEMES module-attribute

SCHEMES: dict[str, tuple[Mapping[int, str], str]] = {'kumazaki': (_KUMAZAKI, 'fortune-telling-core cjk_name_strokes stroke-count, kumazaki five-tier v1'), 'chinese_wuge': (_CHINESE_WUGE, 'fortune-telling-core cjk_name_strokes stroke-count, chinese wuge three-tier v1')}

STROKE_COUNT_RATINGS module-attribute

STROKE_COUNT_RATINGS: Mapping[int, str] = SCHEMES[DEFAULT_SCHEME][0]

STROKE_COUNT_REGISTRIES module-attribute

STROKE_COUNT_REGISTRIES: dict[str, InterpretationRegistry] = {name: (_scheme_registry(name, ratings_map, source)) for name, (ratings_map, source) in (items())}

CJK_NAME_STROKES_REGISTRY module-attribute

CJK_NAME_STROKES_REGISTRY = symbol_registry(_ANCHOR, 'meanings', 'cjk_name_strokes.meanings', symbols, _SOURCE)