概要
建石らが1988年に提案した線形式モデルの日本語リーダビリティ指標を計算するツールです。
建石らの指標は、平均が50、標準偏差が10になるよう調整されており、値が高いほど読みやすいとする指標です。値に対する具体的な評価基準は定められていませんが、FREと同じような0〜100程度の評価基準が想定されていると考えられます。
※論文の内容を基に開発しているため、論文に記載のない部分、誤植と見受けられる部分は適宜補っているため、多少誤差があるかもしれない点はご了承ください。
評価式
RS = 0.05*pa+0.25*ph-0.19*pc-0.61*pk-1.34*ls-1.35*la+7.52*lh-22.1*lc-5.3*lk-3.87*cp+109.1
RS' = -0.12*ls-1.37*la+7.4*lh-23.18*lc-5.4*lk-4.67*cp+115.79
pa:アルファベット連の連全体に対する頻度(%)
ph:ひらがな連の連全体に対する頻度(%)
pc:漢字連の連全体に対する頻度(%)
pk:カタカナ連の連全体に対する頻度(%)
ls:文の平均長さ(文字)
la:アルファベット連の平均長さ(文字)
lh:ひらがな連の平均長さ(文字)
lc:漢字連の平均長さ(文字)
lk:カタカナ連の平均長さ(文字)
cp:句点あたり読点の数
セットアップ
pip install tateishi-readability
使い方
>>> from tateishi_readability import *
>>> tateishi_readability("今日の天気は、晴れです。")
78.72666666666666
>>> tateishi_readability2("今日の天気は、晴れです。")
84.62
ライセンス
- divide-char-type
- Python Software Foundation License
- Copyright (C) 2023- Shinya Akagi
- tateishi-readability
- Python Software Foundation License
- Copyright (C) 2025- Shinya Akagi
論文
- 建石由佳,小野芳彦,山田尚勇:日本文の読みやすさの評価式
- 情報処理学会研究報告ヒューマンコンピュータインタラクション(HCI),Vol.25,pp.1-8,1988
- https://ipsj.ixsq.nii.ac.jp/records/37773
Metadata
Release files for tateishi-readability 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| tateishi-readability-0.1.0.tar.gz | 2.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tateishi_readability-0.1.0-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 5.9 kB
Release files / tateishi-readability-0.1.0.tar.gz
| Download URL | tateishi-readability-0.1.0.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f0a91e0a03d22082ded436c8f4fee25eb0a8536322051ae8f90b29b8483d112d
|
|
BLAKE2b-256 checksum How to use checksums |
f2a4a4f8ebedc271a4e3a0c37808d8e7436192a655d3d9fec76ceb8a1dfa4e38
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.15
|
Release files / tateishi_readability-0.1.0-py2-none-any.whl
| Download URL | tateishi_readability-0.1.0-py2-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
562a91537756f3dd0fb3557533a5526d9c3521506e611f24667549faa438c056
|
|
BLAKE2b-256 checksum How to use checksums |
cb67a6ec783aa330a79d2cd0ffece1b5fd568b0f7e6485ec3996cf5a267c8e9c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.15
|
Security for tateishi-readability 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.