This assumes that if the text contains any "hiragana" or "katakana" characters, it will go to Script::Japanese
Because the text will consist solely of Mandarin characters, this only adds checks for whitelist and blacklist logic.
If no whitelist or blacklist is supplied, this what would previously have been returned: Some((Lang::Cmn, 1.0))
Fixes issue #44
This assumes that if the text contains any "hiragana" or "katakana" characters, it will go to
Script::Japanese
Because the text will consist solely of
Mandarin
characters, this only adds checks for whitelist and blacklist logic. If no whitelist or blacklist is supplied, this what would previously have been returned:Some((Lang::Cmn, 1.0))