WordNet database provides kind of semantic of words stored in files. This project is PHP API for easy reading of these files. See examples/wordNet.php.
The code needs PHP 8.1 or greater.
composer require phpwndb/phpwndb
$wordNet = (new PhpWndb\Dataset\WordNetProvider())->getWordNet();
$synsets = $wordNet->search('word');
foreach ($synsets as $synset) {
echo $synset->getGloss() . "\n";
}
composer install
composer phpstan
composer tests
We use SemVer for versioning. For the versions available, see the tags on this repository.