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.
Brennen Bearnes 2cfae51e7a add apache conf for future reference 1 year ago
hosting add apache conf for future reference 1 year ago
public add rendering of list results to view 1 year ago
src whitespace pedantry 1 year ago
templates add rendering of list results to view 1 year ago
tests/Functional initial commit: rough out a server-side php endpoint 1 year ago
.gitignore add npm boilerplate 1 year ago
README.md add apache conf for future reference 1 year ago
composer.json add oojs-ui to composer dependencies 1 year ago
composer.lock add oojs-ui to composer dependencies 1 year ago
package-lock.json add npm boilerplate 1 year ago
package.json add npm boilerplate 1 year ago
phpunit.xml initial commit: rough out a server-side php endpoint 1 year ago

README.md

MediaWiki Page Readability by Category

A small Slim application for returning a list of pages in a MediaWiki category, ordered by Dale-Chall readability scores.

Works in Lynx, for some reason, as well as browsers that people actually use.

Relies on Dave Child’s TextStatistics for readability scores.

Installing

First, have Composer, npm, and PHP plus some common extensions.

On a Debian system (Jessie or better):

sudo apt-get install php-cli php-xml php-mbstring php-bcmath php-curl
git clone https://gitlab.com/brennenpike/mw-category-readability.git
cd mw-category-readability
npm install
composer install
composer start

And then visit http://localhost:8080 in your browser of choice.

Hypothetical TODOs

  • Pagination
  • Page previews
  • Any hint of visual design