Need help? Reach out on gitter
- Install deps
pip install .
python -m nltk.downloader punkt
- Fork the repo
- Make a change
- Create and/or update tests
- Run tests and ensure they pass
python -m unittest discover -v
- Submit a PR
All scorers follow a very similar implementation pattern: The following use ARI as an example
- each scorer lives in the scorers directory
- each scorer has a constructor that takes
statistics
and is registered here. - each scorer implements a method
score
and returns aResult
. See ARI for an example - each scorer provides a test(s) in test/test_readability
Prequisites:
- Install Sphinx
pip install -U sphinx m2r
Modify Documentation
-
Fork the repo
-
Navigate to
docs
-
Make a change
-
Rebuild docs
make html open build/html/index.html # open index.html for review in browser
Contributors should ignore the steps below.
- Login to https://readthedocs.org/
- Run build
Contributors should ignore the steps below.
Prerequisites:
pip install twine
publish
rm -rf build dist py_readability_metrics.egg-info && python setup.py sdist bdist_wheel
twine upload dist/*