[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 902 Bytes

index.rst

File metadata and controls

35 lines (26 loc) · 902 Bytes

Textstat

Python package to calculate statistics from text to determine readability, complexity and grade level of a particular corpus.

Usage

>>> import textstat

>>> test_data = (
  "Playing games has always been thought to be important to "
  "the development of well-balanced and creative children; "
  "however, what part, if any, they should play in the lives "
  "of adults has never been researched that deeply. I believe "
  "that playing games is every bit as important for adults "
  "as for children. Not only is taking time out to play games "
  "with our children and other adults valuable to building "
  "interpersonal relationships but is also a wonderful way "
  "to release built up tension."
)

>>> textstat.text_standard(test_data)
'12th and 13th grade'
.. toctree::
    :hidden:
    :glob:

    *