msime-engine 0.2.0

Input method engine for Chinese and other languages: quanpin, shuangpin, nine-key, wubi, zhuyin, Cantonese, Japanese, Korean and more, ranked over a word lattice with typo correction and learning from what the user picks. The engine of 水杉输入法 (Metasequoia IME).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! 双拼(schemes-lang.md §1,overlays.md §2):四个内置方案和用户自己的方案(`custom`),编码到音节的转换,切分和辅助码识别,方案本身,以及一个把输入解成全拼片段、复用拼音级联查询、词格和全拼模糊行的引擎。纠错只有纠错整句一条路(`typo_edges`,按当前方案的两键编码生成邻键和对调变体);按非法拼写纠错、更长的词组和备选切分仍只属于全拼。

pub mod custom;
pub mod dictionary;
pub mod engine;
pub mod hints;
pub mod mid_sentence;
pub mod profile;
pub mod query;
pub mod scheme;
#[cfg(test)]
mod tests;
pub mod typo_edges;
pub mod utils;

pub use engine::ShuangpinEngine;
pub use profile::ShuangpinProfile;
pub use scheme::ShuangpinScheme;