https://github.com/brucewlee/textreader
Readability Formulas and Reading Time Statistics
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
Repository
Readability Formulas and Reading Time Statistics
Basic Info
Statistics
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
- Releases: 2
Topics
Metadata Files
readme.md
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
- Website: brucewlee.github.io
- Repositories: 3
- Profile: https://github.com/brucewlee
Research Scientist - NLP
GitHub Events
Total
Last Year
Committers
Last synced: over 1 year ago
Top Committers
| Name | 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
- get *
- nltk *
- pandas *
- spacy *
- supar *
- wget *