chinese_detection

v2.0.0

About

Classify a string as either English, Chinese, or Pinyin.

Usage

```rust extern crate chinese_detection;

use chinese_detection::{ClassificationResult, classify};

asserteq!(ClassificationResult::EN, classify("test")); asserteq!(ClassificationResult::PY, classify("shiyan")); assert_eq!(ClassificationResult::ZH, classify("实验")); ```

License

MIT