spellchecker
所属分类:数值算法/人工智能
开发工具:PHP
文件大小:2KB
下载次数:0
上传日期:2020-05-08 15:17:36
上 传 者:
sh-1993
说明: 拼写检查器,一个方便的tigitz-php拼写检查器的可链接包装器
(spellchecker,A convenient chainable wrapper for tigitz php-spellchecker)
文件列表:
composer.json (358, 2020-05-08)
src (0, 2020-05-08)
src\SpellChecker.php (6022, 2020-05-08)
# Spellchecker
A convenient chainable wrapper for `tigitz/php-spellchecker`
## Usage
```php
use Forrestedw\SpellChecker\SpellChecker;
//Initiate the SpellChecker
$spellChecker = (new SpellChecker);
//Whitelist words. Optional.
$spellChecker->whiteList(['Lett','theese','spellins','goo']);
//Set preferred words to select from corrctions. Optional.
$spellChecker->prefer(['These','Words','Are','Most','Important','To','Me']);
$correction = $spellChecker->check('A word or sentence');
```
近期下载者:
相关文件:
收藏者: