Skip to content
forked from PhpWndb/PhpWndb

WordNet PHP API

Notifications You must be signed in to change notification settings

sourcetoad/PhpWndb

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP API for WordNet database

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.

Getting Started

Prerequisites

The code needs PHP 8.1 or greater.

Installing

composer require phpwndb/phpwndb

Basic usage

$wordNet = (new PhpWndb\Dataset\WordNetProvider())->getWordNet();
$synsets = $wordNet->search('word');

foreach ($synsets as $synset) {
    echo $synset->getGloss() . "\n";
}

Running the tests

composer install
composer phpstan
composer tests

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%