Skip to main content

Calculate Readability for Japanese Document using Tateishi Index

Project description

概要

建石らが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

論文

  • 建石由佳,小野芳彦,山田尚勇:日本文の読みやすさの評価式

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tateishi-readability-0.1.0.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tateishi_readability-0.1.0-py2-none-any.whl (3.2 kB view details)

Uploaded Python 2

File details

Details for the file tateishi-readability-0.1.0.tar.gz.

File metadata

  • Download URL: tateishi-readability-0.1.0.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.15

File hashes

Hashes for tateishi-readability-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f0a91e0a03d22082ded436c8f4fee25eb0a8536322051ae8f90b29b8483d112d
MD5 96d3ebcda57af057c845118f071779ab
BLAKE2b-256 f2a4a4f8ebedc271a4e3a0c37808d8e7436192a655d3d9fec76ceb8a1dfa4e38

See more details on using hashes here.

File details

Details for the file tateishi_readability-0.1.0-py2-none-any.whl.

File metadata

File hashes

Hashes for tateishi_readability-0.1.0-py2-none-any.whl
Algorithm Hash digest
SHA256 562a91537756f3dd0fb3557533a5526d9c3521506e611f24667549faa438c056
MD5 ab02644d5c12aea30fb6733ea305c2e5
BLAKE2b-256 cb67a6ec783aa330a79d2cd0ffece1b5fd568b0f7e6485ec3996cf5a267c8e9c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page