matecat / language-tools
Language Tools
v1.0.5
2020-05-20 08:59 UTC
Requires
- php: >=5.6
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.15
- phpstan/phpstan: ^0.11.12
- phpunit/phpunit: ^8.2
- symfony/console: ^3.4.17 || ^4.1.6
This package is not auto-updated.
Last update: 2024-11-01 05:21:59 UTC
README
This library can be used to apply the correct language styling to a string.
Supported languages
- ja-JP (Japanese)
- zh-TW (Traditional Chinese)
Examples
Take a look at these few examples:
$wrong = "商号は「株式会社」等を省略せず記載してください (例:株式会社XXX) 。"; $pipeline = new Pipeline("ja-JP"); // this will return the string with the correct language style // 商号は「株式会社」等を省略せず記載してください(例:株式会社XXX)。 $correct = $pipeline->process($wrong);
In case of non-supported language, the Pipeline will return the original string.
Commands
If you have an application which uses Symfony Console, you have some commands available:
mlt:process
Process a string.
Support
If you found an issue or had an idea please refer to this section.
Authors
- Mauro Cassani - github
License
This project is licensed under the MIT License - see the LICENSE.md file for details