readability-scores is a simple flask service built to provide text statistics and readability scores for use with ReaSE.
This is built with simple /get and /set.
Text has to be sent as arg 'text' in a POST request. Text statistics will be made available at /get/stats as json dictionary.
/set : text= < text > POST request Args not form
/get/stats : returns JSON of stats
/get/< stat-name > : returns value of the specific stat
- letter_count
- word_count
- syllable_count
- sentence_count
- complex_words
- fk_index
- gf_index
- cl_index
- dc_index
- as_index
Requires:
- Flask
- NLTK - tokenize
It may not be that user friendly now, but will try to make it so in time.
Enjoy. Please ping me at [email protected] for further info.