This website works better with JavaScript.
Home
Explore
Help
Sign In
brennen
/
mw-category-readability
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
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.
8
Commits
1
Branch
236 KiB
Branch:
master
master
Branches
Tags
${ item.name }
Create branch
${ searchTerm }
from 'master'
${ noResults }
mw-category-readability
/
src
/
middleware.php
4 lines
74 B
Raw
Permalink
Normal View
History
initial commit: rough out a server-side php endpoint This is mostly just Composer & Slim framework boilerplate. There's a bit of actual code in src/routes.php which uses davechild/textstatistics to assign Dale-Chall readability scores to page intro extracts. The need for a framework here at all is, of course, pretty questionable, but then maybe we already know the initial use case is going to elaborate rapidly.
6 years ago
<
?
php
// Application middleware
// e.g: $app->add(new \Slim\Csrf\Guard);