Text Grader determines the readability of a given text using Flesch-Kincaid readability tests and provides stats about the text.
NOTE: The web app is deployed on a free server which goes into sleep mode and takes about 10s for boot up, once loaded the bot will work as expected.
When user inputs a text, backend performs to following.
Test 1: The Flesch Reading Ease
In the Flesch reading-ease test, higher scores indicate material that is easier to read; lower numbers mark passages that are more difficult to read.
Flesch reading-ease score (FRES):
Test 2: The Flesch Grade Level
This test presents a score as a U.S. grade level, making it easier for teachers, parents, librarians, and others to judge the readability level of various books and texts.
Flesch Grade Level test score:
Readability Tests on Wikipedia link
-
Clone/Fork this repo
-
Navigate to cloned path.
-
Setup virtual envinorment.
pip install virtualenv
virtualenv myenv
-
Activate it by running & Install project requirements.
myenv/Scripts/activate
pip install -r requirements.txt
-
Start Fastapi Development Server
uvicorn main:app --debug
or
uvicorn main:app --reload