https://github.com/brucewlee/textreader

Readability Formulas and Reading Time Statistics

https://github.com/brucewlee/textreader

Science Score: 23.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    1 of 2 committers (50.0%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.0%) to scientific vocabulary

Keywords

readability readability-formulas readability-metrics readability-scores reading-time
Last synced: 5 months ago · JSON representation

Repository

Readability Formulas and Reading Time Statistics

Basic Info
  • Host: GitHub
  • Owner: brucewlee
  • License: other
  • Language: Python
  • Default Branch: master
  • Homepage:
  • Size: 40.1 MB
Statistics
  • Stars: 1
  • Watchers: 1
  • Forks: 1
  • Open Issues: 0
  • Releases: 2
Topics
readability readability-formulas readability-metrics readability-scores reading-time
Created about 4 years ago · Last pushed about 4 years ago
Metadata Files
Readme License

readme.md

cc-by-nc-sa-4.0 spaCy PyPI textreader Dev Status

TextReader

TextReader is a research-based library to calculate readability statistics from an English text input. It is an easy and proven method to see readability and reading time.

To Note

This library uses recalibrated versions of the below readability formulas (by default). Recalibration was made for equation to output US-based school grade (K1-12). To use original versions, see Usage

Research paper is currently under peer-review.

Usage

```python

import textreader

input_text = "Here we go again. We were all standing in line waiting for breakfast when one of the caseworkers came in and taptap-tapped down the line. Uh-oh, this meant bad news, either they’d found a foster home for somebody or somebody was about to get paddled. All the kids watched the woman as she moved along the line, her high-heeled shoes sounding like little fire-crackers going off on the wooden floor.Shoot! She stopped at me and said, “Are you Buddy Caldwell?”I said, “It’s Bud, not Buddy, ma’am.”She put her hand on my shoulder and took me out of the line. Then she pulled Jerry, one of the littler boys, over."

TextReader = textreader.request(input_text)

""" - below equations are recalibrated to output US-based school grade (K1-12) for easy use - pass in adjusted = False to use original formulas """

print(TextReader.fleschkincaidgradelevel()) #or .FKGL() print(TextReader.fogindex()) #or .FOGI() print(TextReader.smogindex())) #or .SMOG() print(TextReader.colemanliauindex()) #or .COLE() print(TextReader.automatedreadability_index()) #or .AUTO()

""" - pass in speed = slow for slow reader - speed = fast for fast readers - speed = average for general uses (default) """

print(TextReader.read_time()) #or .RT() ```

Install

Install using pip

shell pip install textreader

Owner

  • Name: Bruce W. Lee (이웅성)
  • Login: brucewlee
  • Kind: user
  • Location: Philadelphia, PA
  • Company: University of Pennsylvania

Research Scientist - NLP

GitHub Events

Total
Last Year

Committers

Last synced: over 1 year ago

All Time
  • Total Commits: 13
  • Total Committers: 2
  • Avg Commits per committer: 6.5
  • Development Distribution Score (DDS): 0.154
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
root w****e@g****m 11
Bruce W. Lee (이웅성) b****s@s****u 2
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Dependencies

setup.py pypi
  • get *
  • nltk *
  • pandas *
  • spacy *
  • supar *
  • wget *