The package includes a tool for correcting typos of user-entered information using the Yandex.Speller service.
codeblog.pro/laravel-yandex-speller is a Laravel package for the package includes a tool for correcting typos of user-entered information using the yandex.speller service..
It currently has 0 GitHub stars and 63 downloads on Packagist (latest version v0.1).
Install it with composer require codeblog.pro/laravel-yandex-speller.
Discover more Laravel packages by codeblog.pro
or browse all Laravel packages to compare alternatives.
Last updated
The package includes a tool for correcting typos of user-entered information using the Yandex.Speller service.
The package contains ready-made integration with the Laravel framework. However, this package can be used with any framework or without it at all.
Via Composer
$ composer require codeblog.pro/laravel-yandex-speller-package
// Consider the example of a typo in the word "temperature" (tempirature).
// First way: using a GET request at http://<our-domain>/api/yandex-speller/tempirature
// Result: {"source_string":"tempirature","corrected_array":["temperature"]}
// Second way:
$sourceString = 'tempirature';
$yandexSpellerService = new YandexSpellerService();
$yandexSpellerAnswer = $yandexSpellerService->getAnswerByString($sourceString);
var_dump($yandexSpellerAnswer);
$ composer test
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The Apache License License. Please see License File for more information.