A small Slim application for returning a list of pages in a MediaWiki category, ordered by Dale-Chall readability scores.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.1 KiB

  1. # MediaWiki Page Readability by Category
  2. A small [Slim][slim] application for returning a list of pages in a MediaWiki
  3. category, ordered by [Dale-Chall readability scores][dale-chall].
  4. Works in [Lynx][lynx], for some reason, as well as browsers that people
  5. actually use.
  6. Relies on [Dave Child's TextStatistics][textstats] for readability scores.
  7. ## Installing
  8. First, have Composer, npm, and PHP plus some common extensions.
  9. On a Debian system (Jessie or better):
  10. ```
  11. sudo apt-get install php-cli php-xml php-mbstring php-bcmath php-curl
  12. git clone https://gitlab.com/brennenpike/mw-category-readability.git
  13. cd mw-category-readability
  14. npm install
  15. composer install
  16. composer start
  17. ```
  18. And then visit [http://localhost:8080](http://localhost:8080) in your browser
  19. of choice.
  20. ## Hypothetical TODOs
  21. - Pagination
  22. - Page previews
  23. - Any hint of visual design
  24. [textstats]: https://github.com/DaveChild/Text-Statistics
  25. [lynx]: http://lynx.invisible-island.net/
  26. [slim]: https://www.slimframework.com
  27. [dale-chall]: https://en.wikipedia.org/wiki/Dale%E2%80%93Chall_readability_formula