language_profiler

##### v1.0.0

About

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

Usage

```rust extern crate chinese_detection;

use chinesedetection::ChineseDetection; use chinesedetection::ClassificationResult;

let language_detection = ChineseDetection::new();

println!("{}", languagedetection.classify("test")); // --> ClassificationResult::EN println!("{}", languagedetection.classify("shiyan")); // --> ClassificationResult::PY println!("{}", language_detection.classify("实验")); // --> ClassificationResult::ZH ```

License

MIT