matecat/language-tools

v1.0.5 2020-05-20 08:59 UTC

This package is not auto-updated.

Last update: 2024-05-17 03:06: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

License

This project is licensed under the MIT License - see the LICENSE.md file for details