[][src]Function pretty_grammar::translate

pub fn translate(lang: &'static str, msg: String) -> String

Correct the string to match the grammar.

Examples

use pretty_grammar::*;

let result = translate("kr", "철수<은> 영희<를> 좋아합니다.".to_owned());
assert_eq!("철수는 영희를 좋아합니다.", result);

Panics

You should not use unsupported langs.