forrestedw / spellchecker
为 tigitz/php-spellchecker 提供方便的链式包装器
1.0.0
2020-05-06 11:21 UTC
Requires
- tigitz/php-spellchecker: ^0.1.1
This package is auto-updated.
Last update: 2024-09-09 01:38:51 UTC
README
为 tigitz/php-spellchecker
提供方便的链式包装器
使用方法
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');