LIX is short for the Swedish word "Läsbarhetsindex", in English that means this is a Swedish readability calculator based on LIX, it is used for measuring how easy or hard a section of text is to read.
$text = 'your text here'; // The text you want to measure.
$lix = new LIX( $text ); // Make it happen.
echo $lix->val; // This will output your text readability score
Score | Type |
---|---|
0-25 | Childrens book |
26-30 | Easy reading |
31-40 | Normal text |
41-50 | Factual text |
51-60 | Advanced nonfiction |
61-100 | Advanced scientific |
Anyone is welcome to contribute to this script. There are various ways you can contribute:
- Raise an Issue
- Send a Pull Request with your bug fixes and/or new features
- Provide feedback and suggestions