A library for managing and filtering text with stop words
This library is intended to help filter your text with common stop words. It includes a list of built-in basic and strict stop words. It also includes functionality that lets you merge or overwrite with your own list of words.
$ composer require axisofstevil/stop-words
$filter = new Axisofstevil\StopWords\Filter(); echo $filter->cleanText('A Walk to Remember'); // 'Walk Remember' $filter->setWords(array('a','walk','to')); echo $filter->cleanText('A Walk to Remember'); // 'Remember' $filter->mergeWords(array('remember')); echo $filter->cleanText('A Walk to Remember'); // ''
Please see CONTRIBUTING for details.
The MIT License (MIT). Please see License File for more information.