axisofstevil/stop-words

A library for managing and filtering text with stop words

Fund package maintenance!
stevenmaguire

1.0.0 2022-08-17 02:06 UTC

This package is auto-updated.

Last update: 2024-10-09 02:32:43 UTC


README

Latest Version on Packagist Tests Total Downloads

Installation

You can install the package via composer:

composer require axisofstevil/stop-words

Usage

$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'); // ''

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.