usama-ashraf / wordranker
Ranks words according to a given criteria
Installs: 2 136
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 1
Requires
- php: >=5.5.9
This package is not auto-updated.
Last update: 2025-07-06 01:04:58 UTC
README
PHP Word Ranker
composer require usama-ashraf/wordranker
use Wordranker\Clients\WordRankerClient;
$text = 'a quick brown fox jump over the';
$blacklist = ['a' , 'over', 'the'];
$ranker = new WordRankerClient($text, $blacklist, '/[a-z]/');
$words = $ranker->rank();
/**
[
'quick' => 0.0,
'brown' => 0.0,
'fox' => 0.0,
'jump' => 0.0
]
**/