{ "$schema": "http://json-schema.org/draft-07/schema#", "$id": "https://raw.githubusercontent.com/zczlei/japan-character-count-baseline-2026/main/schema.json", "title": "日本語 文字数基準データ 2026(mojicheck)", "description": "原稿用紙・A4 1枚の上限・スピーチの読む速さなど、日本語の「文字数」換算基準を機械可読で公開するデータセット(data/baseline-2026.json)のスキーマ。この分野に公的規格は存在しないため officialStandard は常に false とする。", "$comment": "capacity は lineChars × lines の積(例:40 × 36 = 1,440)。この関係は JSON Schema では検査できないため、改版時に目視で確認する。未知のフィールドは校验を失敗させない(additionalProperties を閉じていない)。改版で項目を増やしても、既存の利用側のコードを壊さないため。", "type": "object", "required": [ "meta", "countingRules", "manuscriptPaper", "a4Page", "speechPace", "slide", "safetyMargin" ], "definitions": { "certainty": { "type": "string", "enum": [ "convention", "measured", "derived" ], "description": "convention=業界・慣例として広く使われている目安/measured=当サイトがWordの画面([ページ設定]→[文字数と行数])で実測した値/derived=他の値から算出した値" }, "officialStandard": { "const": false, "description": "この分野に公的規格はない。常に false。true を入れてはならない。条目側は省略し、meta.officialStandard で一括宣言する。" }, "unit": { "type": "string", "enum": [ "字/枚", "字/分", "字", "秒", "秒/枚", "枚" ], "description": "capacity などの値の単位" }, "source": { "type": "object", "description": "根拠にしている当サイトのページ。計算ツール付きの本体ページを指す", "required": [ "url" ], "properties": { "url": { "type": "string", "format": "uri", "pattern": "^https://mojicheck\\.com(/[a-z0-9\\-]*)?$", "description": "必ず https://mojicheck.com/ 配下のページ" }, "title": { "type": "string", "maxLength": 200, "description": "参照先のH1(人が読む用)" }, "asOf": { "type": "string", "format": "date", "pattern": "^\\d{4}-\\d{2}-\\d{2}$", "description": "その値を最終確認した日" } } }, "dateString": { "type": "string", "format": "date", "pattern": "^\\d{4}-\\d{2}-\\d{2}$" }, "entry": { "type": "object", "description": "換算の1項目(原稿用紙・A4の組み方など)", "required": [ "id", "label", "capacity", "unit", "certainty", "source" ], "properties": { "id": { "type": "string", "pattern": "^[a-z0-9\\-]+$", "maxLength": 60, "description": "安定した識別子。改版しても変えない(利用側がこれをキーに参照するため)" }, "label": { "type": "string", "maxLength": 120, "description": "人向けの呼び名(例:Wordの標準設定)" }, "lineChars": { "type": "integer", "minimum": 1, "maximum": 100, "description": "1行の字数" }, "lines": { "type": "integer", "minimum": 1, "maximum": 120, "description": "1ページ(1枚)の行数" }, "capacity": { "type": "integer", "minimum": 1, "description": "1枚の上限文字数 = lineChars × lines" }, "practical": { "type": [ "integer", "null" ], "minimum": 1, "description": "実用の目安(meta.practicalRatio の8割)。指定なしは null" }, "unit": { "$ref": "#/definitions/unit" }, "certainty": { "$ref": "#/definitions/certainty" }, "officialStandard": { "$ref": "#/definitions/officialStandard" }, "approximate": { "type": "boolean", "description": "true の場合、既定の余白・フォントサイズで前後する近似値(B5・B4など)" }, "basis": { "type": "string", "maxLength": 500, "description": "その数字が「何と言われているか」の説明" }, "origin": { "type": "string", "maxLength": 500, "description": "由来(歴史的背景。諸説ある場合はその旨を明記)" }, "usedFor": { "type": "array", "items": { "type": "string", "maxLength": 80 }, "maxItems": 8, "description": "主な使われ方(小説の公募・大学のレポートなど)" }, "source": { "$ref": "#/definitions/source" } } }, "pace": { "type": "object", "description": "スピーチ・朗読の速さの1段階", "required": [ "id", "label", "charsPerMinute", "certainty" ], "properties": { "id": { "type": "string", "pattern": "^[a-z0-9\\-]+$", "maxLength": 40, "description": "slow / standard / fast / very-fast のいずれか(既存のidは固定)" }, "label": { "type": "string", "maxLength": 120 }, "charsPerMinute": { "type": "integer", "minimum": 100, "maximum": 600, "description": "1分の読み上げ文字数" }, "certainty": { "$ref": "#/definitions/certainty" }, "basis": { "type": "string", "maxLength": 500 }, "source": { "$ref": "#/definitions/source" } } } }, "properties": { "meta": { "type": "object", "required": [ "dataset", "version", "asOf", "language", "unitOfCount", "officialStandard", "practicalRatio", "rounding", "certaintyLevels", "publisher" ], "properties": { "dataset": { "const": "japan-character-count-baseline" }, "version": { "type": "string", "pattern": "^\\d+\\.\\d+\\.\\d+$", "description": "SemVer。基準値そのものは改訂しない(major は出さない想定)" }, "asOf": { "$ref": "#/definitions/dateString", "description": "値を最終確認した日" }, "language": { "const": "ja" }, "unitOfCount": { "type": "string", "maxLength": 200, "description": "数え方の宣言(例:全角1文字=1字、句読点を含む)" }, "officialStandard": { "$ref": "#/definitions/officialStandard" }, "practicalRatio": { "type": "number", "minimum": 0, "maximum": 1, "description": "実用の目安=上限のこの倍率(当サイトは 0.8)" }, "rounding": { "type": "string", "enum": [ "ceil", "round", "floor" ], "description": "枚数の求め方。当サイトは ceil(端数切り上げ)" }, "certaintyLevels": { "type": "object", "required": [ "convention", "measured", "derived" ], "additionalProperties": false, "properties": { "convention": { "type": "string", "maxLength": 200 }, "measured": { "type": "string", "maxLength": 200 }, "derived": { "type": "string", "maxLength": 200 } }, "description": "certainty の値の定義(利用側が読み解くための凡例)" }, "publisher": { "type": "object", "required": [ "name", "url", "repository", "license" ], "properties": { "name": { "type": "string", "maxLength": 100 }, "url": { "type": "string", "format": "uri", "pattern": "^https://mojicheck\\.com/$" }, "repository": { "type": "string", "format": "uri", "pattern": "^https://github\\.com/zczlei/japan-character-count-baseline-2026$" }, "license": { "const": "CC-BY-4.0" } }, "description": "出典情報。CC BY 4.0 により利用時はこのどちらかへのクレジット表記が必要" }, "disclaimer": { "type": "string", "maxLength": 1000, "description": "自己責任である旨・提出先指示優先の注記" } } }, "countingRules": { "type": "object", "description": "文字数の数え方(空白・改行・句読点の扱い)", "required": [ "punctuationCounts", "whitespaceCounts", "lineBreakCounts", "source" ], "properties": { "punctuationCounts": { "type": "boolean", "description": "句読点「、。」を1字として数えるか(当サイトは true)" }, "punctuationNote": { "type": "string", "maxLength": 300 }, "whitespaceCounts": { "type": "boolean", "description": "空白を数えるか(当サイトは false)" }, "lineBreakCounts": { "type": "boolean", "description": "改行を数えるか(当サイトは false)" }, "lineBreakNote": { "type": "string", "maxLength": 500 }, "submissionDefault": { "type": "string", "maxLength": 500, "description": "公募・課題の「○字以内」がどちらの数え方になりがちかの注記" }, "source": { "$ref": "#/definitions/source" } } }, "manuscriptPaper": { "type": "array", "minItems": 1, "maxItems": 10, "items": { "$ref": "#/definitions/entry" }, "description": "原稿用紙(400字詰め・200字詰め)" }, "a4Page": { "type": "array", "minItems": 1, "maxItems": 20, "items": { "$ref": "#/definitions/entry" }, "description": "A4 1枚の上限(組み方別)。id: word-standard / report-practical / a4-genkoyoshi / loose-40x25 / custom-45x40 / b5 / b4" }, "speechPace": { "type": "object", "required": [ "unit", "paces", "customRange", "source" ], "properties": { "unit": { "const": "字/分" }, "paces": { "type": "array", "minItems": 3, "maxItems": 10, "items": { "$ref": "#/definitions/pace" } }, "customRange": { "type": "object", "required": [ "min", "max" ], "additionalProperties": false, "properties": { "min": { "type": "integer", "minimum": 1, "maximum": 600 }, "max": { "type": "integer", "minimum": 100, "maximum": 1200 } }, "description": "当サイトで自由に設定できる範囲(100〜600字/分)" }, "certainty": { "$ref": "#/definitions/certainty" }, "basis": { "type": "string", "maxLength": 500 }, "source": { "$ref": "#/definitions/source" } } }, "slide": { "type": "object", "description": "プレゼン1スライド分の分量と時間", "required": [ "perSlideChars", "readSeconds", "rhythmSeconds", "certainty", "source" ], "properties": { "perSlideChars": { "type": "integer", "minimum": 1, "maximum": 1000, "description": "スライド1枚の文字数目安(当サイトは 200字)" }, "readSeconds": { "type": "integer", "minimum": 1, "description": "その枚を読み上げるだけの実時間(約40秒)" }, "rhythmSeconds": { "type": "integer", "minimum": 1, "description": "間・スライド切替込みの進行リズム(約1分=60秒)" }, "certainty": { "$ref": "#/definitions/certainty" }, "basis": { "type": "string", "maxLength": 500 }, "source": { "$ref": "#/definitions/source" } } }, "safetyMargin": { "type": "object", "description": "本番向けの余裕の取り方", "required": [ "ratio", "structure" ], "properties": { "ratio": { "type": "number", "minimum": 0.5, "maximum": 1, "description": "制限時間(または文字数上限)に対し原稿をこの割合に収める(当サイトは 0.9)" }, "structure": { "type": "object", "required": [ "intro", "body", "conclusion" ], "additionalProperties": false, "properties": { "intro": { "type": "number", "minimum": 0, "maximum": 1 }, "body": { "type": "number", "minimum": 0, "maximum": 1 }, "conclusion": { "type": "number", "minimum": 0, "maximum": 1 } }, "description": "導入・本論・結論の配分(3つの合計は 1.0 になること:0.1 + 0.8 + 0.1)" }, "note": { "type": "string", "maxLength": 500 }, "source": { "$ref": "#/definitions/source" } } }, "changelog": { "type": "array", "maxItems": 50, "items": { "type": "object", "required": [ "date", "change" ], "properties": { "date": { "$ref": "#/definitions/dateString" }, "version": { "type": "string", "pattern": "^\\d+\\.\\d+\\.\\d+$" }, "change": { "type": "string", "maxLength": 300, "description": "その改訂で何を変えたか(例:「B5の行数をWord 2024で再実測」)" } } }, "description": "改訂履歴(任意)。基準値を変えたら必ず1行足す" }, "sources": { "type": "array", "maxItems": 20, "items": { "$ref": "#/definitions/source" }, "description": "データセット全体の参照ページ(任意。各条目の source で足りるなら省略してよい)" } } }