{ "tool": "scripts/validate_mora.py", "generated_at": "2026-09-03T16:16:51+0900", "elapsed_seconds": 19.26, "environment": { "python": "3.13.5", "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O" }, "tokenizer": { "module": "downstep.mora", "fold_small_counters": true, "strict": false, "rules": { "small_kana_fuse_with_the_preceding_kana": [ "ァ", "ィ", "ゥ", "ェ", "ォ", "ャ", "ュ", "ョ", "ヮ" ], "own_mora": [ "ッ", "ン", "ー" ], "small_counters_folded_to_full": { "ヵ": "カ", "ヶ": "ケ" } } }, "documented_examples": { "note": "definitions taken from downstep/mora.py's own docstring plus mechanical applications of the four rules it states; not a measurement", "n": 29, "passed": 29, "failed": 0, "failures": [] }, "losslessness": { "checked": 788331, "lossless": 788331, "n_failures": 0, "failures_shown": [] }, "naist": { "source": "NAIST Japanese Dictionary (naist-jdic), as shipped with Open JTalk", "check": "direct: tokenizer mora count vs the dictionary's own accmora denominator", "devoicing_marks_stripped": [ "’", "'" ], "entries_read": 788331, "entries_without_recorded_count": 0, "entries_with_recorded_count": 788331, "agree": 788190, "disagree": 141, "agreement_rate": 0.9998211411196566, "delta_histogram": { "1": 138, "2": 1, "3": 2 }, "attribution": { "rule": "a kana pair the tokenizer fuses into one mora is blamed only if it occurs in zero agreeing entries; the dictionary then evidently counts it as two. Completeness is verified by recounting every disagreeing entry under that assumption.", "explained": 141, "unexplained": 0, "unexplained_rows": [], "n_pairs": 33, "pairs": [ { "mora": "フュ", "mechanism": "palatalisation_on_a_non_standard_base", "disagreeing_rows_containing_it": 67, "agreeing_rows_containing_it": 0, "examples": [ { "surface": "ふゅーじょん", "reading": "フュージョン", "dict_moras": 5, "tokenizer_moras": 4 }, { "surface": "アフュス", "reading": "アフュス", "dict_moras": 4, "tokenizer_moras": 3 }, { "surface": "アフュティス", "reading": "アフュティス", "dict_moras": 5, "tokenizer_moras": 4 }, { "surface": "インフューザー", "reading": "インフューザー", "dict_moras": 7, "tokenizer_moras": 6 } ] }, { "mora": "イュ", "mechanism": "palatalisation_on_a_non_standard_base", "disagreeing_rows_containing_it": 12, "agreeing_rows_containing_it": 0, "examples": [ { "surface": "かいい", "reading": "カイュー", "dict_moras": 4, "tokenizer_moras": 3 }, { "surface": "かっわいい", "reading": "カッワイュー", "dict_moras": 6, "tokenizer_moras": 5 }, { "surface": "かわいい", "reading": "カワイュウ", "dict_moras": 5, "tokenizer_moras": 4 }, { "surface": "かわいい", "reading": "カワイュウ", "dict_moras": 5, "tokenizer_moras": 4 } ] }, { "mora": "クォ", "mechanism": "small_vowel_after_a_full_kana", "disagreeing_rows_containing_it": 5, "agreeing_rows_containing_it": 0, "examples": [ { "surface": "クォータリー", "reading": "クォータリー", "dict_moras": 6, "tokenizer_moras": 5 }, { "surface": "クォーター", "reading": "クォーター", "dict_moras": 5, "tokenizer_moras": 4 }, { "surface": "クォーテーション", "reading": "クォーテーション", "dict_moras": 7, "tokenizer_moras": 6 }, { "surface": "クォート", "reading": "クォート", "dict_moras": 4, "tokenizer_moras": 3 } ] }, { "mora": "シィ", "mechanism": "small_vowel_after_a_full_kana", "disagreeing_rows_containing_it": 5, "agreeing_rows_containing_it": 0, "examples": [ { "surface": "アイディシィソリューションズ", "reading": "アイディシィソリューションズ", "dict_moras": 11, "tokenizer_moras": 10 }, { "surface": "エフ・ディ・シィ・プロダクツ", "reading": "エフディシィプロダクツ", "dict_moras": 10, "tokenizer_moras": 9 }, { "surface": "ルートフィッシィング", "reading": "ルートフィッシィング", "dict_moras": 9, "tokenizer_moras": 8 }, { "surface": "レガシィ", "reading": "レガシィ", "dict_moras": 4, "tokenizer_moras": 3 } ] }, { "mora": "ヂャ", "mechanism": "youon_written_on_the_di_row_historical_orthography", "disagreeing_rows_containing_it": 5, "agreeing_rows_containing_it": 0, "examples": [ { "surface": "ぢゃぢゅぢょ", "reading": "ヂャヂュヂョ", "dict_moras": 6, "tokenizer_moras": 3 }, { "surface": "ヂャヂュヂョ", "reading": "ヂャヂュヂョ", "dict_moras": 6, "tokenizer_moras": 3 }, { "surface": "茶", "reading": "ヂャ", "dict_moras": 2, "tokenizer_moras": 1 }, { "surface": "茶屋", "reading": "ヂャヤ", "dict_moras": 3, "tokenizer_moras": 2 } ] }, { "mora": "ヂョ", "mechanism": "youon_written_on_the_di_row_historical_orthography", "disagreeing_rows_containing_it": 5, "agreeing_rows_containing_it": 0, "examples": [ { "surface": "ぢゃぢゅぢょ", "reading": "ヂャヂュヂョ", "dict_moras": 6, "tokenizer_moras": 3 }, { "surface": "ヂャヂュヂョ", "reading": "ヂャヂュヂョ", "dict_moras": 6, "tokenizer_moras": 3 }, { "surface": "提灯", "reading": "ヂョウチン", "dict_moras": 5, "tokenizer_moras": 4 }, { "surface": "提灯", "reading": "ヂョウチン", "dict_moras": 5, "tokenizer_moras": 4 } ] }, { "mora": "クィ", "mechanism": "small_vowel_after_a_full_kana", "disagreeing_rows_containing_it": 4, "agreeing_rows_containing_it": 0, "examples": [ { "surface": "クィック", "reading": "クィック", "dict_moras": 4, "tokenizer_moras": 3 }, { "surface": "クィックソート", "reading": "クィックソート", "dict_moras": 7, "tokenizer_moras": 6 }, { "surface": "クィンテット", "reading": "クィンテット", "dict_moras": 6, "tokenizer_moras": 5 }, { "surface": "ラブリークィーン", "reading": "ラブリークィーン", "dict_moras": 8, "tokenizer_moras": 7 } ] }, { "mora": "ナュ", "mechanism": "palatalisation_on_a_non_standard_base", "disagreeing_rows_containing_it": 4, "agreeing_rows_containing_it": 0, "examples": [ { "surface": "とんでもない", "reading": "トンデモナュウ", "dict_moras": 7, "tokenizer_moras": 6 }, { "surface": "とんでもない", "reading": "トンデモナュウ", "dict_moras": 7, "tokenizer_moras": 6 }, { "surface": "無い", "reading": "ナュー", "dict_moras": 3, "tokenizer_moras": 2 }, { "surface": "無い", "reading": "ナュー", "dict_moras": 3, "tokenizer_moras": 2 } ] }, { "mora": "クァ", "mechanism": "small_vowel_after_a_full_kana", "disagreeing_rows_containing_it": 3, "agreeing_rows_containing_it": 0, "examples": [ { "surface": "クァルテット", "reading": "クァルテット", "dict_moras": 6, "tokenizer_moras": 5 }, { "surface": "クァンジュ", "reading": "クァンジュ", "dict_moras": 4, "tokenizer_moras": 3 }, { "surface": "高広鎮", "reading": "コークァンジン", "dict_moras": 7, "tokenizer_moras": 6 } ] }, { "mora": "クェ", "mechanism": "small_vowel_after_a_full_kana", "disagreeing_rows_containing_it": 3, "agreeing_rows_containing_it": 0, "examples": [ { "surface": "クェスチョン", "reading": "クェスチョン", "dict_moras": 5, "tokenizer_moras": 4 }, { "surface": "クェッション", "reading": "クェッション", "dict_moras": 5, "tokenizer_moras": 4 }, { "surface": "AFLACスクェア", "reading": "アフラックスクェア", "dict_moras": 9, "tokenizer_moras": 8 } ] }, { "mora": "グァ", "mechanism": "small_vowel_after_a_full_kana", "disagreeing_rows_containing_it": 3, "agreeing_rows_containing_it": 0, "examples": [ { "surface": "グァラニ", "reading": "グァラニ", "dict_moras": 4, "tokenizer_moras": 3 }, { "surface": "グァラニ", "reading": "グァラニ", "dict_moras": 4, "tokenizer_moras": 3 }, { "surface": "パラグアイグァラニ", "reading": "パラグアイグァラニ", "dict_moras": 9, "tokenizer_moras": 8 } ] }, { "mora": "ジァ", "mechanism": "small_vowel_after_a_full_kana", "disagreeing_rows_containing_it": 3, "agreeing_rows_containing_it": 0, "examples": [ { "surface": "ジァン", "reading": "ジァン", "dict_moras": 3, "tokenizer_moras": 2 }, { "surface": "ジァン・ジァン", "reading": "ジァンジァン", "dict_moras": 6, "tokenizer_moras": 4 } ] }, { "mora": "ビィ", "mechanism": "small_vowel_after_a_full_kana", "disagreeing_rows_containing_it": 3, "agreeing_rows_containing_it": 0, "examples": [ { "surface": "カービィ", "reading": "カービィ", "dict_moras": 4, "tokenizer_moras": 3 }, { "surface": "ギャツビィゴルフクラブ", "reading": "ギャツビィゴルフクラブ", "dict_moras": 10, "tokenizer_moras": 9 }, { "surface": "シューメーカー・レビィ", "reading": "シューメーカーレビィ", "dict_moras": 9, "tokenizer_moras": 8 } ] }, { "mora": "ケュ", "mechanism": "palatalisation_on_a_non_standard_base", "disagreeing_rows_containing_it": 2, "agreeing_rows_containing_it": 0, "examples": [ { "surface": "寒けい", "reading": "サムケュー", "dict_moras": 5, "tokenizer_moras": 4 }, { "surface": "鮮らけい", "reading": "アザラケュー", "dict_moras": 6, "tokenizer_moras": 5 } ] }, { "mora": "ジィ", "mechanism": "small_vowel_after_a_full_kana", "disagreeing_rows_containing_it": 2, "agreeing_rows_containing_it": 0, "examples": [ { "surface": "パンジィ", "reading": "パンジィ", "dict_moras": 4, "tokenizer_moras": 3 }, { "surface": "ファジィ", "reading": "ファジィ", "dict_moras": 3, "tokenizer_moras": 2 } ] }, { "mora": "ヂュ", "mechanism": "youon_written_on_the_di_row_historical_orthography", "disagreeing_rows_containing_it": 2, "agreeing_rows_containing_it": 0, "examples": [ { "surface": "ぢゃぢゅぢょ", "reading": "ヂャヂュヂョ", "dict_moras": 6, "tokenizer_moras": 3 }, { "surface": "ヂャヂュヂョ", "reading": "ヂャヂュヂョ", "dict_moras": 6, "tokenizer_moras": 3 } ] }, { "mora": "デェ", "mechanism": "small_vowel_after_a_full_kana", "disagreeing_rows_containing_it": 2, "agreeing_rows_containing_it": 0, "examples": [ { "surface": "でぇ", "reading": "デェ", "dict_moras": 2, "tokenizer_moras": 1 }, { "surface": "デェ", "reading": "デェ", "dict_moras": 2, "tokenizer_moras": 1 } ] }, { "mora": "エィ", "mechanism": "small_vowel_after_a_full_kana", "disagreeing_rows_containing_it": 1, "agreeing_rows_containing_it": 0, "examples": [ { "surface": "エィンデン", "reading": "エィンデン", "dict_moras": 5, "tokenizer_moras": 4 } ] }, { "mora": "ガュ", "mechanism": "palatalisation_on_a_non_standard_base", "disagreeing_rows_containing_it": 1, "agreeing_rows_containing_it": 0, "examples": [ { "surface": "凶い", "reading": "マガュー", "dict_moras": 4, "tokenizer_moras": 3 } ] }, { "mora": "キィ", "mechanism": "small_vowel_after_a_full_kana", "disagreeing_rows_containing_it": 1, "agreeing_rows_containing_it": 0, "examples": [ { "surface": "ラッキィ池田", "reading": "ラッキィイケダ", "dict_moras": 7, "tokenizer_moras": 6 } ] }, { "mora": "グゥ", "mechanism": "small_vowel_after_a_full_kana", "disagreeing_rows_containing_it": 1, "agreeing_rows_containing_it": 0, "examples": [ { "surface": "アウグゥストゥス", "reading": "アウグゥストゥス", "dict_moras": 7, "tokenizer_moras": 6 } ] }, { "mora": "ゲュ", "mechanism": "palatalisation_on_a_non_standard_base", "disagreeing_rows_containing_it": 1, "agreeing_rows_containing_it": 0, "examples": [ { "surface": "繁い", "reading": "シゲュー", "dict_moras": 4, "tokenizer_moras": 3 } ] }, { "mora": "コァ", "mechanism": "small_vowel_after_a_full_kana", "disagreeing_rows_containing_it": 1, "agreeing_rows_containing_it": 0, "examples": [ { "surface": "黄家駒", "reading": "コァンジャジュ", "dict_moras": 5, "tokenizer_moras": 4 } ] }, { "mora": "ゴォ", "mechanism": "small_vowel_after_a_full_kana", "disagreeing_rows_containing_it": 1, "agreeing_rows_containing_it": 0, "examples": [ { "surface": "ゴォォール", "reading": "ゴォォール", "dict_moras": 5, "tokenizer_moras": 4 } ] }, { "mora": "スェ", "mechanism": "small_vowel_after_a_full_kana", "disagreeing_rows_containing_it": 1, "agreeing_rows_containing_it": 0, "examples": [ { "surface": "スェーター", "reading": "スェーター", "dict_moras": 5, "tokenizer_moras": 4 } ] }, { "mora": "セュ", "mechanism": "palatalisation_on_a_non_standard_base", "disagreeing_rows_containing_it": 1, "agreeing_rows_containing_it": 0, "examples": [ { "surface": "狭い", "reading": "セュー", "dict_moras": 3, "tokenizer_moras": 2 } ] }, { "mora": "チァ", "mechanism": "small_vowel_after_a_full_kana", "disagreeing_rows_containing_it": 1, "agreeing_rows_containing_it": 0, "examples": [ { "surface": "江蘇", "reading": "チァンスー", "dict_moras": 5, "tokenizer_moras": 4 } ] }, { "mora": "テェ", "mechanism": "small_vowel_after_a_full_kana", "disagreeing_rows_containing_it": 1, "agreeing_rows_containing_it": 0, "examples": [ { "surface": "いたい", "reading": "イテェ", "dict_moras": 3, "tokenizer_moras": 2 } ] }, { "mora": "ネュ", "mechanism": "palatalisation_on_a_non_standard_base", "disagreeing_rows_containing_it": 1, "agreeing_rows_containing_it": 0, "examples": [ { "surface": "おっかねい", "reading": "オッカネュー", "dict_moras": 6, "tokenizer_moras": 5 } ] }, { "mora": "フョ", "mechanism": "palatalisation_on_a_non_standard_base", "disagreeing_rows_containing_it": 1, "agreeing_rows_containing_it": 0, "examples": [ { "surface": "フョードロフ", "reading": "フョードロフ", "dict_moras": 6, "tokenizer_moras": 5 } ] }, { "mora": "ムュ", "mechanism": "palatalisation_on_a_non_standard_base", "disagreeing_rows_containing_it": 1, "agreeing_rows_containing_it": 0, "examples": [ { "surface": "薄ら眠い", "reading": "ウスラネムュー", "dict_moras": 7, "tokenizer_moras": 6 } ] }, { "mora": "モュ", "mechanism": "palatalisation_on_a_non_standard_base", "disagreeing_rows_containing_it": 1, "agreeing_rows_containing_it": 0, "examples": [ { "surface": "パンケモュウパロ川", "reading": "パンケモュウパロガワ", "dict_moras": 10, "tokenizer_moras": 9 } ] }, { "mora": "ルュ", "mechanism": "palatalisation_on_a_non_standard_base", "disagreeing_rows_containing_it": 1, "agreeing_rows_containing_it": 0, "examples": [ { "surface": "アルュメ", "reading": "アルュメ", "dict_moras": 4, "tokenizer_moras": 3 } ] } ], "mechanism_groups": { "palatalisation_on_a_non_standard_base": { "pairs": [ "イュ", "ガュ", "ケュ", "ゲュ", "セュ", "ナュ", "ネュ", "フュ", "フョ", "ムュ", "モュ", "ルュ" ], "mismatch_rows_touched": 93 }, "small_vowel_after_a_full_kana": { "pairs": [ "エィ", "キィ", "クァ", "クィ", "クェ", "クォ", "グァ", "グゥ", "コァ", "ゴォ", "シィ", "ジァ", "ジィ", "スェ", "チァ", "テェ", "デェ", "ビィ" ], "mismatch_rows_touched": 41 }, "youon_written_on_the_di_row_historical_orthography": { "pairs": [ "ヂャ", "ヂュ", "ヂョ" ], "mismatch_rows_touched": 12 } }, "surface_script_of_disagreeing_entries": { "kana_only": 110, "contains_kanji": 27, "contains_latin": 4 } }, "nucleus_within_tokenizer_mora_count": { "note": "sanity check only; NAIST accmora is self-consistent by construction", "n": 788331, "in_range": 788331, "rate": 1.0 } }, "unidic": { "mode": "sys.dic", "source": "UniDic 2.1.2 (unidic-mecab)", "check": "indirect BOUND, not an equality: UniDic records no mora count, so the test is 0 <= aType <= mora_count(reading). It detects under-counting and is blind to over-counting.", "devoicing_marks_stripped": [ "’", "'" ], "entries_with_accent": 751705, "accent_annotations": 901116, "within_bound_using_surface_reading": 900945, "within_bound_rate_surface_reading": 0.9998102353082178, "out_of_bound_using_surface_reading": 171, "explained_by_lemma_length": { "note": "UniDic states aType for the lemma; an inflected surface form is shorter than its own lemma. Re-checking against pronBase absorbs these.", "count": 95, "by_pos": { "動詞-一般": 93, "形容詞-一般": 2 } }, "residual_not_attributable_to_the_tokenizer": { "note": "the recorded aType exceeds the mora count of BOTH reading fields in the same row, so no segmentation of that row's own text can satisfy it; these are annotation slips in the source dictionary", "count": 76, "rate_of_all_annotations": 8.43398630143067e-05, "by_pos": { "動詞-一般": 39, "名詞-普通名詞": 19, "名詞-固有名詞": 11, "名詞-数詞": 4, "副詞-*": 3 }, "examples": [ { "orth": "すま", "pron": "スマ", "pron_base": "スマ", "recorded_aType": 4, "tokenizer_moras_pron": 2, "tokenizer_moras_lemma": 2, "pos": "名詞-普通名詞" }, { "orth": "ひ", "pron": "ヒ", "pron_base": "ヒ", "recorded_aType": 2, "tokenizer_moras_pron": 1, "tokenizer_moras_lemma": 1, "pos": "名詞-数詞" }, { "orth": "ふ", "pron": "フ", "pron_base": "フ", "recorded_aType": 2, "tokenizer_moras_pron": 1, "tokenizer_moras_lemma": 1, "pos": "名詞-数詞" }, { "orth": "ぽおん", "pron": "ポーン", "pron_base": "ポーン", "recorded_aType": 4, "tokenizer_moras_pron": 3, "tokenizer_moras_lemma": 3, "pos": "副詞-*" }, { "orth": "ぽーん", "pron": "ポーン", "pron_base": "ポーン", "recorded_aType": 4, "tokenizer_moras_pron": 3, "tokenizer_moras_lemma": 3, "pos": "副詞-*" }, { "orth": "アテュス", "pron": "アチュス", "pron_base": "アチュス", "recorded_aType": 10, "tokenizer_moras_pron": 3, "tokenizer_moras_lemma": 3, "pos": "名詞-固有名詞" }, { "orth": "ウヂノワキ", "pron": "ウジノワキ", "pron_base": "ウジノワキ", "recorded_aType": 7, "tokenizer_moras_pron": 5, "tokenizer_moras_lemma": 5, "pos": "名詞-固有名詞" }, { "orth": "エレクトロ", "pron": "エレクトロ", "pron_base": "エレクトロ", "recorded_aType": 8, "tokenizer_moras_pron": 5, "tokenizer_moras_lemma": 5, "pos": "名詞-普通名詞" }, { "orth": "サラン", "pron": "サラン", "pron_base": "サラン", "recorded_aType": 4, "tokenizer_moras_pron": 3, "tokenizer_moras_lemma": 3, "pos": "名詞-固有名詞" }, { "orth": "スマ", "pron": "スマ", "pron_base": "スマ", "recorded_aType": 4, "tokenizer_moras_pron": 2, "tokenizer_moras_lemma": 2, "pos": "名詞-普通名詞" }, { "orth": "スルホ", "pron": "スルホ", "pron_base": "スルホ", "recorded_aType": 4, "tokenizer_moras_pron": 3, "tokenizer_moras_lemma": 3, "pos": "名詞-普通名詞" }, { "orth": "トム", "pron": "トム", "pron_base": "トム", "recorded_aType": 6, "tokenizer_moras_pron": 2, "tokenizer_moras_lemma": 2, "pos": "名詞-普通名詞" }, { "orth": "ドゥバイ", "pron": "ドゥバイ", "pron_base": "ドゥバイ", "recorded_aType": 10, "tokenizer_moras_pron": 3, "tokenizer_moras_lemma": 3, "pos": "名詞-固有名詞" }, { "orth": "バンデグラフ", "pron": "バンデグラフ", "pron_base": "バンデグラフ", "recorded_aType": 7, "tokenizer_moras_pron": 6, "tokenizer_moras_lemma": 6, "pos": "名詞-普通名詞" }, { "orth": "フェデラル", "pron": "フェデラル", "pron_base": "フェデラル", "recorded_aType": 5, "tokenizer_moras_pron": 4, "tokenizer_moras_lemma": 4, "pos": "名詞-普通名詞" }, { "orth": "プレスト", "pron": "プレスト", "pron_base": "プレスト", "recorded_aType": 5, "tokenizer_moras_pron": 4, "tokenizer_moras_lemma": 4, "pos": "名詞-普通名詞" }, { "orth": "ペブル", "pron": "ペブル", "pron_base": "ペブル", "recorded_aType": 4, "tokenizer_moras_pron": 3, "tokenizer_moras_lemma": 3, "pos": "名詞-固有名詞" }, { "orth": "ペント", "pron": "ペント", "pron_base": "ペント", "recorded_aType": 4, "tokenizer_moras_pron": 3, "tokenizer_moras_lemma": 3, "pos": "名詞-普通名詞" }, { "orth": "ポーン", "pron": "ポーン", "pron_base": "ポーン", "recorded_aType": 4, "tokenizer_moras_pron": 3, "tokenizer_moras_lemma": 3, "pos": "副詞-*" }, { "orth": "マーシュ", "pron": "マーシュ", "pron_base": "マーシュ", "recorded_aType": 11, "tokenizer_moras_pron": 3, "tokenizer_moras_lemma": 3, "pos": "名詞-固有名詞" }, { "orth": "ミクー", "pron": "ミクー", "pron_base": "ミクー", "recorded_aType": 10, "tokenizer_moras_pron": 3, "tokenizer_moras_lemma": 3, "pos": "名詞-固有名詞" }, { "orth": "ラオアグ", "pron": "ラオアグ", "pron_base": "ラオアグ", "recorded_aType": 7, "tokenizer_moras_pron": 4, "tokenizer_moras_lemma": 4, "pos": "名詞-固有名詞" }, { "orth": "リンチ", "pron": "リンチ", "pron_base": "リンチ", "recorded_aType": 4, "tokenizer_moras_pron": 3, "tokenizer_moras_lemma": 3, "pos": "名詞-固有名詞" }, { "orth": "レッセ", "pron": "レッセ", "pron_base": "レッセ", "recorded_aType": 4, "tokenizer_moras_pron": 3, "tokenizer_moras_lemma": 3, "pos": "名詞-普通名詞" }, { "orth": "ワクスマン", "pron": "ワクスマン", "pron_base": "ワクスマン", "recorded_aType": 11, "tokenizer_moras_pron": 5, "tokenizer_moras_lemma": 5, "pos": "名詞-固有名詞" } ] } } }