13/03
2017
PHP Synonym Utilities
This librairy allows one to get english and french synonyms, (*1)
Install package with composer, (*4)
composer require hugsbrugs/php-synonym
In your PHP code, load librairy, (*5)
require_once __DIR__ . '/../vendor/autoload.php'; use Hug\Synonym\Synonym as Synonym;
Find Synonym, (*6)
Synonym::find($word, $lang = 'en');
To add other languages Download your thesaurus synonym dictionnary Use one of these scripts mysql2sqlite grfiv, (*7)
./mysql2sqlite.sh thesaurus_en.sql | sqlite3 thesaurus_en.db
composer exec phpunit
Hugo Maugey visit my website ;), (*8)