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