PHP code example of matecat / language-tools
1. Go to this page and download the library: Download matecat/language-tools library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
matecat / language-tools example snippets
$wrong = "商号は「株式会社」等を省略せず記載してください (例:株式会社XXX) 。";
$pipeline = new Pipeline("ja-JP");
// this will return the string with the correct language style
// 商号は「株式会社」等を省略せず記載してください(例:株式会社XXX)。
$correct = $pipeline->process($wrong);